void init();
+ /**
+ * Shuts down active core sessions, saves state and emits the shutdownComplete() signal afterwards.
+ */
+ void shutdown();
+
+
/*** Storage access ***/
// These methods are threadsafe.
//! Emitted when a fatal error was encountered during async initialization
void exitRequested(int exitCode, const QString &reason);
+ //! Emitted once core shutdown is complete
+ void shutdownComplete();
+
public slots:
void initAsync();
bool changeUserPass(const QString &username);
+ void onSessionShutdown(SessionThread *session);
+
private:
SessionThread *sessionForUser(UserId userId, bool restoreState = false);
void addClientHelper(RemotePeer *peer, UserId uid);