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 <ksharedptr.h>
00033 #include <kstartupinfo.h>
00034
00035 namespace TaskManager
00036 {
00037
00038 class Startup;
00039 typedef KSharedPtr<Startup> StartupPtr;
00040 typedef QVector<StartupPtr> StartupList;
00041
00047 class KDE_EXPORT Startup: public QObject, public KShared
00048 {
00049 Q_OBJECT
00050 Q_PROPERTY(QString text READ text)
00051 Q_PROPERTY(QString bin READ bin)
00052 Q_PROPERTY(QString icon READ icon)
00053
00054 public:
00055 Startup(const KStartupInfoId& id, const KStartupInfoData& data, QObject * parent,
00056 const char *name = 0);
00057 virtual ~Startup();
00058
00062 QString text() const;
00063
00067 QString bin() const;
00068
00072 QString icon() const;
00073 void update( const KStartupInfoData& data );
00074 KStartupInfoId id() const;
00075
00076 void addWindowMatch(WId window);
00077 bool matchesWindow(WId window) const;
00078
00079 Q_SIGNALS:
00083 void changed();
00084
00085 private:
00086 class Private;
00087 Private * const d;
00088 };
00089
00090 }
00091
00092
00093 #endif