summaryrefslogtreecommitdiff
path: root/include/svl/sharecontrolfile.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-04-14 13:47:01 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-04-15 11:36:58 +0000
commitf0461e8360e13137c29dfcc1d20ba93e7bbd3073 (patch)
treef50b6a25aeb7609f7bc11443bdb18bd2c343af66 /include/svl/sharecontrolfile.hxx
parentba9acdf799bf556c8a20b1dc27eb116e23d481db (diff)
convert LOCKFILE_ constants to scoped enum and cleanup
Change-Id: I9a2339cc953a718403b3cd0960d5d8d34abae455 Reviewed-on: https://gerrit.libreoffice.org/15304 Tested-by: Noel Grandin <noelgrandin@gmail.com> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/svl/sharecontrolfile.hxx')
-rw-r--r--include/svl/sharecontrolfile.hxx20
1 files changed, 8 insertions, 12 deletions
diff --git a/include/svl/sharecontrolfile.hxx b/include/svl/sharecontrolfile.hxx
index 04f46d7a6b7c..26ec50702e2a 100644
--- a/include/svl/sharecontrolfile.hxx
+++ b/include/svl/sharecontrolfile.hxx
@@ -29,13 +29,8 @@
#include <com/sun/star/io/XTruncate.hpp>
#include <svl/lockfilecommon.hxx>
-
-#define SHARED_OOOUSERNAME_ID LOCKFILE_OOOUSERNAME_ID
-#define SHARED_SYSUSERNAME_ID LOCKFILE_SYSUSERNAME_ID
-#define SHARED_LOCALHOST_ID LOCKFILE_LOCALHOST_ID
-#define SHARED_EDITTIME_ID LOCKFILE_EDITTIME_ID
-#define SHARED_USERURL_ID LOCKFILE_USERURL_ID
-#define SHARED_ENTRYSIZE LOCKFILE_ENTRYSIZE
+#include <o3tl/enumarray.hxx>
+#include <vector>
namespace svt {
@@ -47,7 +42,7 @@ class SVL_DLLPUBLIC ShareControlFile : public LockFileCommon
::com::sun::star::uno::Reference< ::com::sun::star::io::XSeekable > m_xSeekable;
::com::sun::star::uno::Reference< ::com::sun::star::io::XTruncate > m_xTruncate;
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< OUString > > m_aUsersData;
+ std::vector< LockFileEntry > m_aUsersData;
void OpenStream();
void Close();
@@ -62,11 +57,12 @@ public:
ShareControlFile( const OUString& aOrigURL );
~ShareControlFile();
- ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< OUString > > GetUsersData();
- void SetUsersDataAndStore( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Sequence< OUString > >& aUserNames );
- ::com::sun::star::uno::Sequence< OUString > InsertOwnEntry();
+ std::vector< LockFileEntry > GetUsersData();
+ void SetUsersDataAndStore( const std::vector< LockFileEntry >& aUserNames );
+ LockFileEntry InsertOwnEntry();
bool HasOwnEntry();
- void RemoveEntry( const ::com::sun::star::uno::Sequence< OUString >& aOptionalSpecification = ::com::sun::star::uno::Sequence< OUString >() );
+ void RemoveEntry( const LockFileEntry& aOptionalSpecification );
+ void RemoveEntry();
void RemoveFile();
};