13 #include "generalmod.h" 53 bool time4AutoSave()
const;
54 int autoSave(
bool)
const;
55 void removeHiddenSaves();
57 void removeIOObjAndData(
IOStream*&)
const;
58 void saverDelCB(CallBacker*);
83 bool isActive()
const;
84 void setActive(
bool yn=
true);
85 bool useHiddenMode()
const;
86 void setUseHiddenMode(
bool yn=
true);
87 int nrSecondsBetweenSaves()
const;
88 void setNrSecondsBetweenSaves(
int);
91 bool restore(
IOStream&,
const char* newnm);
97 static const char* sKeyAutosaved();
115 void appExitCB(CallBacker*);
116 void svrDelCB(CallBacker*);
117 void survChgCB(CallBacker*);
120 static inline void goCB(CallBacker*);
122 void handleSurvChg();
#define mExpClass(module)
Definition: commondefs.h:157
int lastsaveclockseconds_
Definition: autosaver.h:49
Inherit from this class to be able to send and/or receive CallBacks.
Definition: callback.h:182
const Saveable * saver_
Definition: autosaver.h:42
int64_t DirtyCountType
Definition: monitorable.h:84
A lock of a type that (hopefully) suits your needs. To use it, you need the Locker class...
Definition: threadlock.h:51
AutoSaver & mgr_
Definition: autosaver.h:44
#define mODTextTranslationClass(clss)
Definition: uistring.h:37
#define mGlobal(module)
Definition: commondefs.h:160
AutoSaver & AUTOSAVE()
Definition: autosaver.h:137
Threads::Lock lock_
Definition: autosaver.h:104
bool usehiddenmode_
Definition: autosaver.h:108
bool prevSaveFailed() const
Definition: autosaver.h:35
Auto-save manager. Singleton class. Works from its own thread.
Definition: autosaver.h:79
Notifier< AutoSaver > saveFailed
Definition: autosaver.h:95
bool isactive_
Definition: autosaver.h:107
Notifier< AutoSaver > saveDone
Definition: autosaver.h:94
Object that can be saved at any time.
Definition: saveable.h:23
static AutoSaver & getInst()
Class to help setup a callback handling.
Definition: notify.h:121
Set of pointers to objects.
Definition: commontypes.h:28
Definition: autosaver.h:26
bool prevsavefailed_
Definition: autosaver.h:46
Is the base class for all threads. Start it by creating it and give it the function or CallBack to ex...
Definition: thread.h:290
Threads::Thread * thread_
Definition: autosaver.h:105
ObjectSet< AutoSaveObj > asobjs_
Definition: autosaver.h:106
Threads::Atomic< bool > appexits_
Definition: autosaver.h:111
Threads::Lock lock_
Definition: autosaver.h:43
uiRetVal messages() const
Definition: autosaver.h:36
int curclockseconds_
Definition: autosaver.h:109
int autosavenr_
Definition: autosaver.h:51
Threads::Thread & thread()
Definition: autosaver.h:132
Definition: uistring.h:299
OpendTect.
Definition: commontypes.h:25
bool isFinished(const uiRetVal &)
const Saveable * saver() const
Definition: autosaver.h:38
Threads::Atomic< bool > surveychanges_
Definition: autosaver.h:112
IOStream * lastautosaveioobj_
Definition: autosaver.h:50
DirtyCountType lastautosavedirtycount_
Definition: autosaver.h:48
uiRetVal msgs_
Definition: autosaver.h:45
int nrclocksecondsbetweensaves_
Definition: autosaver.h:110