10#ifndef INCLUDED_COMPHELPER_BACKUPFILEHELPER_HXX
11#define INCLUDED_COMPHELPER_BACKUPFILEHELPER_HXX
16#include <rtl/ustring.hxx>
64 std::set< std::pair< OUString, OUString > >
maFiles;
96 static const OUString& getInitialBaseURL();
99 static const OUString& getSafeModeName();
109 static void setExitWasCalled();
110 static bool getExitWasCalled();
115 static void reactOnSafeMode(
bool bSafeMode);
126 void tryPushExtensionInfo();
135 bool isPopPossible();
136 bool isPopPossibleExtensionInfo()
const;
146 void tryPopExtensionInfo();
150 static bool isTryDisableAllExtensionsPossible();
151 static void tryDisableAllExtensions();
155 static bool isTryDeinstallUserExtensionsPossible();
156 static void tryDeinstallUserExtensions();
160 static bool isTryResetSharedExtensionsPossible();
161 static void tryResetSharedExtensions();
165 static bool isTryResetBundledExtensionsPossible();
166 static void tryResetBundledExtensions();
169 static void tryDisableHWAcceleration();
173 static bool isTryResetCustomizationsPossible();
174 static void tryResetCustomizations();
178 static void tryResetUserProfile();
181 static const OUString& getUserProfileURL();
184 static const OUString& getUserProfileWorkURL();
188 static OUString getPackURL();
189 static const std::vector< OUString >& getCustomizationDirNames();
190 static const std::vector< OUString >& getCustomizationFileNames();
193 bool tryPush_Files(
const std::set< OUString >& rDirs,
const std::set< std::pair< OUString, OUString > >& rFiles, std::u16string_view rSourceURL,
const OUString& rTargetURL);
194 bool tryPush_file(std::u16string_view rSourceURL, std::u16string_view rTargetURL, std::u16string_view rName, std::u16string_view rExt);
197 bool isPopPossible_files(
const std::set< OUString >& rDirs,
const std::set< std::pair< OUString, OUString > >& rFiles, std::u16string_view rSourceURL, std::u16string_view rTargetURL);
198 static bool isPopPossible_file(std::u16string_view rSourceURL, std::u16string_view rTargetURL, std::u16string_view rName, std::u16string_view rExt);
201 bool tryPop_files(
const std::set< OUString >& rDirs,
const std::set< std::pair< OUString, OUString > >& rFiles, std::u16string_view rSourceURL,
const OUString& rTargetURL);
202 bool tryPop_file(std::u16string_view rSourceURL, std::u16string_view rTargetURL, std::u16string_view rName, std::u16string_view rExt);
205 bool tryPush_extensionInfo(std::u16string_view rTargetURL);
206 static bool isPopPossible_extensionInfo(std::u16string_view rTargetURL);
207 bool tryPop_extensionInfo(std::u16string_view rTargetURL);
210 void fillDirFileInfo();
Helper class to backup/restore a single file.
static bool mbSafeModeDirExists
static OUString maRegModName
static OUString maUserConfigWorkURL
static OUString maUserConfigBaseURL
static bool mbExitWasCalled
std::set< std::pair< OUString, OUString > > maFiles
static sal_uInt16 mnMaxAllowedBackups
static OUString maInitialBaseURL
std::set< OUString > maDirs
#define COMPHELPER_DLLPUBLIC