1 /*****************************************************************
3 Copyright (c) 2000-2001 Matthias Elter <elter@kde.org>
4 Copyright (c) 2001 Richard Moore <rich@kde.org>
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 ******************************************************************/
29 #include <QtCore/QObject>
32 #include <KDE/KSharedPtr>
33 #include <KDE/KStartupInfo>
35 #include <taskmanager/taskmanager.h>
36 #include <taskmanager/taskmanager_export.h>
42 * Represents a task which is in the process of starting.
46 class TASKMANAGER_EXPORT Startup
: public QObject
, public KShared
49 Q_PROPERTY(QString text READ text
)
50 Q_PROPERTY(QString bin READ bin
)
51 Q_PROPERTY(QString icon READ icon
)
54 Startup(const KStartupInfoId
& id
, const KStartupInfoData
& data
, QObject
* parent
,
55 const char *name
= 0);
59 * The name of the starting task (if known).
64 * The name of the executable of the starting task.
69 * The name of the icon to be used for the starting task.
72 void update( const KStartupInfoData
& data
);
73 KStartupInfoId
id() const;
75 void addWindowMatch(WId window
);
76 bool matchesWindow(WId window
) const;
80 * Indicates that this startup has changed in some way.
82 void changed(::TaskManager::TaskChanges
);
89 } // TaskManager namespace