~ci-train-bot/unity8/unity8-ubuntu-zesty-2291

« back to all changes in this revision

Viewing changes to plugins/Utils/windowstatestorage.h

  • Committer: Albert Astals Cid
  • Date: 2017-01-03 13:10:57 UTC
  • mfrom: (2748 unity8)
  • mto: This revision was merged to the branch mainline in revision 2757.
  • Revision ID: albert.astals@canonical.com-20170103131057-72yur6g6z8d7crye
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <QMutex>
20
20
#include <QFuture>
21
21
 
 
22
// unity-api
 
23
#include <unity/shell/application/Mir.h>
 
24
 
22
25
class WindowStateStorage: public QObject
23
26
{
24
27
    Q_OBJECT
56
59
    Q_INVOKABLE void saveStage(const QString &appId, int stage);
57
60
    Q_INVOKABLE int getStage(const QString &appId, int defaultValue) const;
58
61
 
 
62
    Q_INVOKABLE Mir::State toMirState(WindowState state) const;
 
63
 
59
64
private:
60
65
    void initdb();
61
66