~ubuntu-branches/ubuntu/trusty/unity8/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Application/ApplicationManager.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Michał Sawicz, Michal Hruby, James Henstridge, Albert Astals, Mirco Müller, Michael Terry, Michael Zanetti
  • Date: 2014-04-01 22:56:52 UTC
  • mfrom: (1.1.79)
  • Revision ID: package-import@ubuntu.com-20140401225652-juhkncqjj7vbg5wz
Tags: 7.85+14.04.20140401.3-0ubuntu1
[ Michał Sawicz ]
* Bump version to ensure incompatibility with previous Unity.Application
  implementations.
* We'll only have the unity-mir and mock Ubuntu.Application plugins
  now, no need for mangling the import paths.

[ Michal Hruby ]
* Remove the albumart image provider. (LP: #1262711)
* Don't reset search string after 2 seconds. (LP: #1297246)

[ James Henstridge ]
* Remove the albumart image provider. (LP: #1262711)

[ Albert Astals ]
* Carousel: Add test to make sure we only create the needed delegates
  and not more
* LVWPH: Remove processEvents() call from updatePolish() It causes
  some reentrancy issues and in some times you end up in polishItems()
  with items that have been deleted because you called processEvents()
  This means i need a small tweak in itemGeometryChanged to not
  reposition items if we are inside a setContentHeight call and two
  small tweaks to tests since now things happen in a different order
  and numbers are different (though equivalent) (LP: #1297240)
* Card.qml binding loops are gone. hooray \o/ Also made the aspect
  properties readonly

[ Mirco Müller ]
* A potential fix for "Cannot read property 'state' of null"-failure
  on Jenkins with the VisualSnapDecisionsQueue QML-test of
  notifications.

[ Michael Terry ]
* Pass user's preference for auto-brightness on to powerd. (LP:
  #1273174)

[ Michael Zanetti ]
* Registers a dummy QObject as QTestRootObject in uqmlscene in order
  to fix make trySomething with Qt 5.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
    Q_PROPERTY(bool fake READ fake CONSTANT)
47
47
 
 
48
    // Only for testing
 
49
    // This can be used to place some controls to right, like make tryPhoneStage for example
 
50
    Q_PROPERTY(int rightMargin READ rightMargin WRITE setRightMargin)
 
51
 
48
52
 public:
49
53
    ApplicationManager(QObject *parent = NULL);
50
54
    virtual ~ApplicationManager();
87
91
    Q_INVOKABLE void move(int from, int to);
88
92
 
89
93
    // Application control methods
 
94
    Q_INVOKABLE bool requestFocusApplication(const QString &appId) override;
90
95
    Q_INVOKABLE bool focusApplication(const QString &appId) override;
91
96
    Q_INVOKABLE void unfocusCurrentApplication() override;
92
97
    Q_INVOKABLE ApplicationInfo *startApplication(const QString &appId, const QStringList &arguments = QStringList()) override;
93
98
    Q_INVOKABLE ApplicationInfo *startApplication(const QString &appId, ExecFlags flags, const QStringList &arguments = QStringList());
94
99
    Q_INVOKABLE bool stopApplication(const QString &appId) override;
 
100
    Q_INVOKABLE bool updateScreenshot(const QString &appId) override;
95
101
 
96
102
    QString focusedApplicationId() const override;
 
103
    bool suspended() const;
 
104
    void setSuspended(bool suspended);
 
105
 
 
106
    // Only for testing
 
107
    Q_INVOKABLE QStringList availableApplications();
 
108
    int rightMargin() const;
 
109
    void setRightMargin(int rightMargin);
97
110
 
98
111
 Q_SIGNALS:
99
112
    void keyboardHeightChanged();
113
126
    void createSideStage();
114
127
    int m_keyboardHeight;
115
128
    bool m_keyboardVisible;
 
129
    bool m_suspended;
116
130
    QList<ApplicationInfo*> m_runningApplications;
117
131
    QList<ApplicationInfo*> m_availableApplications;
118
132
    QQmlComponent *m_mainStageComponent;
119
133
    QQuickItem *m_mainStage;
120
134
    QQmlComponent *m_sideStageComponent;
121
135
    QQuickItem *m_sideStage;
 
136
 
 
137
    int m_rightMargin;
122
138
};
123
139
 
124
140
Q_DECLARE_OPERATORS_FOR_FLAGS(ApplicationManager::ExecFlags)