Changeset View
Changeset View
Standalone View
Standalone View
sm.h
Show All 39 Lines | 39 | public: | |||
---|---|---|---|---|---|
40 | SessionManager(QObject *parent); | 40 | SessionManager(QObject *parent); | ||
41 | ~SessionManager() override; | 41 | ~SessionManager() override; | ||
42 | 42 | | |||
43 | SessionState state() const; | 43 | SessionState state() const; | ||
44 | 44 | | |||
45 | Q_SIGNALS: | 45 | Q_SIGNALS: | ||
46 | void stateChanged(); | 46 | void stateChanged(); | ||
47 | 47 | | |||
48 | void loadSessionRequested(const QString &name); | ||||
49 | void prepareSessionSaveRequested(const QString &name); | ||||
50 | void finishSessionSaveRequested(const QString &name); | ||||
51 | | ||||
48 | public Q_SLOTS: // DBus API | 52 | public Q_SLOTS: // DBus API | ||
49 | void setState(uint state); | 53 | void setState(uint state); | ||
54 | void loadSession(const QString &name); | ||||
55 | void aboutToSaveSession(const QString &name); | ||||
56 | void finishSaveSession(const QString &name); | ||||
50 | 57 | | |||
51 | private: | 58 | private: | ||
52 | void setState(SessionState state); | 59 | void setState(SessionState state); | ||
53 | SessionState m_sessionState; | 60 | SessionState m_sessionState; | ||
54 | }; | 61 | }; | ||
55 | 62 | | |||
56 | struct SessionInfo { | 63 | struct SessionInfo { | ||
57 | QByteArray sessionId; | 64 | QByteArray sessionId; | ||
Show All 40 Lines |