: storage(0)
{
startTime = QDateTime::currentDateTime(); // for uptime :)
+
+ connect(&_storageSyncTimer, SIGNAL(timeout()),
+ this, SLOT(syncStorage()));
+ _storageSyncTimer.start(10 * 60 * 1000); // in msecs
}
void Core::init() {
qDeleteAll(sessions);
}
+void Core::syncStorage() {
+ QMutexLocker locker(&mutex);
+ return instance()->storage->sync();
+}
+
void Core::restoreState() {
if(instance()->sessions.count()) {
qWarning() << qPrintable(tr("Calling restoreState() even though active sessions exist!"));