~ubuntu-branches/ubuntu/natty/unity-2d/natty-updates

« back to all changes in this revision

Viewing changes to spread/app/spreadcontrol.h

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2011-02-24 13:45:27 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110224134527-d2lk3qu3sxe9a8z0
Tags: 3.6.0-0ubuntu1
New Upstream version

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <QObject>
25
25
#include <QDBusContext>
26
26
#include <QtDeclarative/qdeclarative.h>
27
 
#include <time.h>
 
27
#include <QWidget>
28
28
 
29
29
class SpreadControl : public QObject, protected QDBusContext
30
30
{
36
36
 
37
37
    bool connectToBus();
38
38
 
39
 
    /* This should be removed when we find a cleaner way to bypass the
40
 
       QML Image cache. See SpreadWindow.qml and WindowImageProvider::requestImage
41
 
       for details. */
42
 
    Q_INVOKABLE QString currentTime() { return QString::number(time(NULL)); }
43
 
 
44
39
public Q_SLOTS:
45
 
    Q_NOREPLY void SpreadAllWindows();
46
 
    Q_NOREPLY void SpreadApplicationWindows(unsigned int applicationId);
47
 
    Q_NOREPLY void CancelSpread();
 
40
    Q_NOREPLY void ShowAllWorkspaces(QString applicationDesktopFile);
 
41
    Q_NOREPLY void ShowCurrentWorkspace(QString applicationDesktopFile);
 
42
    Q_NOREPLY void FilterByApplication(QString applicationDesktopFile);
 
43
    Q_NOREPLY void Hide();
 
44
    bool IsShown() { return m_isShown; }
 
45
 
 
46
private Q_SLOTS:
 
47
    void setIsShown(bool isShown) { m_isShown = isShown; }
48
48
 
49
49
Q_SIGNALS:
50
 
    void activateSpread(unsigned int applicationId);
51
 
    void cancelSpread();
 
50
    void showAllWorkspaces(QString applicationDesktopFile);
 
51
    void showCurrentWorkspace(QString applicationDesktopFile);
 
52
    void filterByApplication(QString applicationDesktopFile);
 
53
    void hide();
 
54
 
 
55
private:
 
56
    bool m_isShown;
52
57
};
53
58
 
54
59
QML_DECLARE_TYPE(SpreadControl)