Changeset View
Changeset View
Standalone View
Standalone View
liblegacytaskmanager/startup.cpp
- This file was moved from libtaskmanager/startup.cpp.
Show All 22 Lines | |||||
23 | ******************************************************************/ | 23 | ******************************************************************/ | ||
24 | 24 | | |||
25 | // Own | 25 | // Own | ||
26 | #include "startup.h" | 26 | #include "startup.h" | ||
27 | 27 | | |||
28 | // Qt | 28 | // Qt | ||
29 | #include <QSet> | 29 | #include <QSet> | ||
30 | 30 | | |||
31 | // libtaskmanager | 31 | // liblegacytaskmanager | ||
32 | #include "taskmanager.h" | 32 | #include "legacytaskmanager.h" | ||
33 | 33 | | |||
34 | 34 | | |||
35 | namespace TaskManager | 35 | namespace LegacyTaskManager | ||
36 | { | 36 | { | ||
37 | 37 | | |||
38 | class Startup::Private | 38 | class Startup::Private | ||
39 | { | 39 | { | ||
40 | public: | 40 | public: | ||
41 | Private(const KStartupInfoId& id, const KStartupInfoData& data) | 41 | Private(const KStartupInfoId& id, const KStartupInfoData& data) | ||
42 | : id(id), data(data) { | 42 | : id(id), data(data) { | ||
43 | } | 43 | } | ||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | 85 | { | |||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | return d->icon; | 90 | return d->icon; | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | void Startup::update(const KStartupInfoData& data) | 93 | void Startup::update(const KStartupInfoData& data) | ||
94 | { | 94 | { | ||
95 | d->data.update(data); | 95 | d->data.update(data); | ||
96 | emit changed(::TaskManager::TaskUnchanged); | 96 | emit changed(::LegacyTaskManager::TaskUnchanged); | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | KStartupInfoId Startup::id() const | 99 | KStartupInfoId Startup::id() const | ||
100 | { | 100 | { | ||
101 | return d->id; | 101 | return d->id; | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | void Startup::addWindowMatch(WId window) | 104 | void Startup::addWindowMatch(WId window) | ||
105 | { | 105 | { | ||
106 | d->windowMatches.insert(window); | 106 | d->windowMatches.insert(window); | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | bool Startup::matchesWindow(WId window) const | 109 | bool Startup::matchesWindow(WId window) const | ||
110 | { | 110 | { | ||
111 | return d->windowMatches.contains(window); | 111 | return d->windowMatches.contains(window); | ||
112 | } | 112 | } | ||
113 | 113 | | |||
114 | void Startup::clearPixmapData() | 114 | void Startup::clearPixmapData() | ||
115 | { | 115 | { | ||
116 | d->icon = QIcon(); | 116 | d->icon = QIcon(); | ||
117 | } | 117 | } | ||
118 | 118 | | |||
119 | } // TaskManager namespace | 119 | } // LegacyTaskManager namespace | ||
120 | 120 | | |||
121 | 121 | | |||
122 | 122 | |