libtaskmanager
startup.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef STARTUP_H
00026 #define STARTUP_H
00027
00028
00029 #include <QtCore/QObject>
00030
00031
00032 #include <KDE/KSharedPtr>
00033 #include <KDE/KStartupInfo>
00034
00035 #include <taskmanager/taskmanager.h>
00036 #include <taskmanager/taskmanager_export.h>
00037
00038 namespace TaskManager
00039 {
00040
00046 class TASKMANAGER_EXPORT Startup: public QObject, public KShared
00047 {
00048 Q_OBJECT
00049 Q_PROPERTY(QString text READ text)
00050 Q_PROPERTY(QString bin READ bin)
00051 Q_PROPERTY(QString icon READ icon)
00052
00053 public:
00054 Startup(const KStartupInfoId& id, const KStartupInfoData& data, QObject * parent,
00055 const char *name = 0);
00056 virtual ~Startup();
00057
00061 QString text() const;
00062
00066 QString bin() const;
00067
00071 QString icon() const;
00072 void update( const KStartupInfoData& data );
00073 KStartupInfoId id() const;
00074
00075 void addWindowMatch(WId window);
00076 bool matchesWindow(WId window) const;
00077
00078 Q_SIGNALS:
00082 void changed(::TaskManager::TaskChanges);
00083
00084 private:
00085 class Private;
00086 Private * const d;
00087 };
00088
00089 }
00090
00091
00092 #endif