Changeset View
Changeset View
Standalone View
Standalone View
liblegacytaskmanager/launcheritem.h
- This file was moved from libtaskmanager/launcheritem.h.
Show All 18 Lines | |||||
19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | 19 | AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
21 | 21 | | |||
22 | ******************************************************************/ | 22 | ******************************************************************/ | ||
23 | #ifndef LAUNCHERITEM_H | 23 | #ifndef LAUNCHERITEM_H | ||
24 | #define LAUNCHERITEM_H | 24 | #define LAUNCHERITEM_H | ||
25 | 25 | | |||
26 | #include "abstractgroupableitem.h" | 26 | #include "abstractgroupableitem.h" | ||
27 | #include "taskmanager_export.h" | 27 | #include "legacytaskmanager_export.h" | ||
28 | 28 | | |||
29 | namespace TaskManager | 29 | namespace LegacyTaskManager | ||
30 | { | 30 | { | ||
31 | 31 | | |||
32 | class LauncherItemPrivate; | 32 | class LauncherItemPrivate; | ||
33 | class GroupManager; | 33 | class GroupManager; | ||
34 | 34 | | |||
35 | /** | 35 | /** | ||
36 | * An item shown in the taskmanager, in order to use it to launch the application (or file) the launcher is linked to. | 36 | * An item shown in the taskmanager, in order to use it to launch the application (or file) the launcher is linked to. | ||
37 | * If the Application is running the launcher gets hidden, in order to not waste space. | 37 | * If the Application is running the launcher gets hidden, in order to not waste space. | ||
38 | */ | 38 | */ | ||
39 | class TASKMANAGER_EXPORT LauncherItem : public AbstractGroupableItem | 39 | class LEGACYTASKMANAGER_EXPORT LauncherItem : public AbstractGroupableItem | ||
40 | { | 40 | { | ||
41 | Q_OBJECT | 41 | Q_OBJECT | ||
42 | public: | 42 | public: | ||
43 | /** | 43 | /** | ||
44 | * Creates a LauncherItem for a executable | 44 | * Creates a LauncherItem for a executable | ||
45 | * @param url the URL to the application or file the launcher gets linked to | 45 | * @param url the URL to the application or file the launcher gets linked to | ||
46 | */ | 46 | */ | ||
47 | LauncherItem(QObject *parent, const QUrl &url); | 47 | LauncherItem(QObject *parent, const QUrl &url); | ||
48 | ~LauncherItem() override; | 48 | ~LauncherItem() override; | ||
49 | 49 | | |||
50 | /** | 50 | /** | ||
51 | * @deprecated: use itemType() instead | 51 | * @deprecated: use itemType() instead | ||
52 | **/ | 52 | **/ | ||
53 | TASKMANAGER_DEPRECATED bool isGroupItem() const override; | 53 | LEGACYTASKMANAGER_DEPRECATED bool isGroupItem() const override; | ||
54 | ItemType itemType() const override; | 54 | ItemType itemType() const override; | ||
55 | 55 | | |||
56 | bool isValid() const; | 56 | bool isValid() const; | ||
57 | QIcon icon() const override; | 57 | QIcon icon() const override; | ||
58 | QString name() const override; | 58 | QString name() const override; | ||
59 | QString genericName() const override; | 59 | QString genericName() const override; | ||
60 | QString wmClass() const; | 60 | QString wmClass() const; | ||
61 | 61 | | |||
▲ Show 20 Lines • Show All 59 Lines • ▼ Show 20 Line(s) | |||||
121 | 121 | | |||
122 | private: | 122 | private: | ||
123 | friend class LauncherItemPrivate; | 123 | friend class LauncherItemPrivate; | ||
124 | LauncherItemPrivate * const d; | 124 | LauncherItemPrivate * const d; | ||
125 | 125 | | |||
126 | Q_PRIVATE_SLOT(d, void associateDestroyed(QObject *obj)) | 126 | Q_PRIVATE_SLOT(d, void associateDestroyed(QObject *obj)) | ||
127 | }; | 127 | }; | ||
128 | 128 | | |||
129 | } // TaskManager namespace | 129 | } // LegacyTaskManager namespace | ||
130 | 130 | | |||
131 | #endif | 131 | #endif |