// internal flag if _exit() was called already - a hint to evtl. // not create copies of potentially not well-defined data. This // may be used in destructors of static instances - which unfortunately // get called on WNT but not on linux. Thus I thought about encapsulating // in some '#ifdefs', but it's just more safe to always do it and // allows to add a SAL_WARN when one of these destructors is called // after _exit() staticbool mbExitWasCalled;
// internal detector if SafeModeName dir exists staticbool mbSafeModeDirExists;
// get path to User's configuration directory (created on-demand) staticconst OUString& getInitialBaseURL();
// the name of the SafeMode directory for temporary processing staticconst OUString& getSafeModeName();
public: /** Constructor to handle Backups of the given file, will internally *detectconfigurationvaluesandURLtoinitialregistrymodifications *andthustheUserconfigurationdirectory
*/
BackupFileHelper();
// allow to set static global flag when app had to call _exit() staticvoid setExitWasCalled();
// This call initializes the state of the UserDirectory as needed, it may // initialize to SafeMode configuration or return from it by moving files // in that directory staticvoid reactOnSafeMode(bool bSafeMode);
/** tries to create a new backup, if there is none yet, or if the *lastdiffersfromthebasefile.Itwillthenputanewversion *onthe'stack'ofcopiesandevtl.deletetheoldestbackup. *AlsomaycleanupolderbackupswhenNumBackupsgiveninthe *constructorhaschanged. * *tryPushExtensionInfoisthespecializedversionforExtensionInfo
*/ void tryPush(); void tryPushExtensionInfo();
/** finds out if a restore is possible * *@returnbool *returnstrueifarestoretoanolderbackupispossible * *isPopPossibleExtensionInfoisthespecializedversionforExtensionInfo
*/ bool isPopPossible(); bool isPopPossibleExtensionInfo() const;
/** tries to execute a restore. Will overwrite the base file *inthatcaseandtakeoneversionoffthe'stack'ofcopies. *AlsomaycleanupolderbackupswhenNumBackupsgiveninthe *constructorhaschanged. * *tryPopExtensionInfoisthespecializedversionforExtensionInfo
*/ void tryPop(); void tryPopExtensionInfo();
/** tries to iterate the extensions and to disable all of them
*/ staticbool isTryDisableAllExtensionsPossible(); staticvoid tryDisableAllExtensions();
/** Deinstall all User Extensions (installed for User only)
*/ staticbool isTryDeinstallUserExtensionsPossible(); staticvoid tryDeinstallUserExtensions();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.