fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svtools / place.hxx
blobf6ca8cd7f7b0620781e9ef8edc9832268d5a58b9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef __SVTOOLS_PLACE_HXX__
11 #define __SVTOOLS_PLACE_HXX__
13 #include <tools/urlobj.hxx>
15 class Place
17 private:
18 OUString msName;
19 INetURLObject maUrl;
21 bool mbEditable;
23 public:
25 Place( OUString sName, OUString sUrl, bool bEditable = false ) :
26 msName( sName ),
27 maUrl( sUrl ),
28 mbEditable( bEditable ) {};
30 void SetName(const OUString& aName ) { msName = aName; }
31 void SetUrl(const OUString& aUrl ) { maUrl.SetURL( aUrl ); }
33 OUString& GetName( ) { return msName; }
34 OUString GetUrl( ) { return maUrl.GetMainURL( INetURLObject::NO_DECODE ); }
35 INetURLObject& GetUrlObject( ) { return maUrl; }
36 bool IsLocal( ) { return maUrl.GetProtocol() == INET_PROT_FILE; }
37 bool IsEditable( ) { return mbEditable; }
40 #endif // __SVTOOLS_PLACE_HXX__
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */