Changeset View
Changeset View
Standalone View
Standalone View
activities.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
44 | 44 | | |||
45 | bool stop(const QString &id); | 45 | bool stop(const QString &id); | ||
46 | bool start(const QString &id); | 46 | bool start(const QString &id); | ||
47 | void setCurrent(const QString &activity); | 47 | void setCurrent(const QString &activity); | ||
48 | /** | 48 | /** | ||
49 | * Adds/removes client \a c to/from \a activity. | 49 | * Adds/removes client \a c to/from \a activity. | ||
50 | * | 50 | * | ||
51 | * Takes care of transients as well. | 51 | * Takes care of transients as well. | ||
52 | */ | 52 | **/ | ||
53 | void toggleClientOnActivity(Client* c, const QString &activity, bool dont_activate); | 53 | void toggleClientOnActivity(Client* c, const QString &activity, bool dont_activate); | ||
54 | 54 | | |||
55 | QStringList running() const; | 55 | QStringList running() const; | ||
56 | QStringList all() const; | 56 | QStringList all() const; | ||
57 | const QString ¤t() const; | 57 | const QString ¤t() const; | ||
58 | const QString &previous() const; | 58 | const QString &previous() const; | ||
59 | 59 | | |||
60 | static QString nullUuid(); | 60 | static QString nullUuid(); | ||
61 | 61 | | |||
62 | KActivities::Controller::ServiceStatus serviceStatus() const; | 62 | KActivities::Controller::ServiceStatus serviceStatus() const; | ||
63 | 63 | | |||
64 | Q_SIGNALS: | 64 | Q_SIGNALS: | ||
65 | /** | 65 | /** | ||
66 | * This signal is emitted when the global | 66 | * This signal is emitted when the global | ||
67 | * activity is changed | 67 | * activity is changed | ||
68 | * @param id id of the new current activity | 68 | * @param id id of the new current activity | ||
69 | */ | 69 | **/ | ||
70 | void currentChanged(const QString &id); | 70 | void currentChanged(const QString &id); | ||
71 | /** | 71 | /** | ||
72 | * This signal is emitted when a new activity is added | 72 | * This signal is emitted when a new activity is added | ||
73 | * @param id id of the new activity | 73 | * @param id id of the new activity | ||
74 | */ | 74 | **/ | ||
75 | void added(const QString &id); | 75 | void added(const QString &id); | ||
76 | /** | 76 | /** | ||
77 | * This signal is emitted when the activity | 77 | * This signal is emitted when the activity | ||
78 | * is removed | 78 | * is removed | ||
79 | * @param id id of the removed activity | 79 | * @param id id of the removed activity | ||
80 | */ | 80 | **/ | ||
81 | void removed(const QString &id); | 81 | void removed(const QString &id); | ||
82 | 82 | | |||
83 | private Q_SLOTS: | 83 | private Q_SLOTS: | ||
84 | void slotRemoved(const QString &activity); | 84 | void slotRemoved(const QString &activity); | ||
85 | void slotCurrentChanged(const QString &newActivity); | 85 | void slotCurrentChanged(const QString &newActivity); | ||
86 | void reallyStop(const QString &id); //dbus deadlocks suck | 86 | void reallyStop(const QString &id); //dbus deadlocks suck | ||
87 | 87 | | |||
88 | private: | 88 | private: | ||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |