Plasma
context.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 #ifndef PLASMA_CONTEXT_H
00021 #define PLASMA_CONTEXT_H
00022
00023 #include <QtCore/QObject>
00024 #include <QtCore/QStringList>
00025
00026 #include "plasma_export.h"
00027
00028 namespace Plasma
00029 {
00030
00031 class ContextPrivate;
00032
00033 class PLASMA_EXPORT Context : public QObject
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 explicit Context(QObject *parent = 0);
00039 ~Context();
00040
00041 void createActivity(const QString &name);
00042 QStringList listActivities() const;
00043
00044 void setCurrentActivity(const QString &name);
00045 QString currentActivity() const;
00046
00047
00048
00049 Q_SIGNALS:
00050 void changed(Plasma::Context *context);
00051 void activityChanged(Plasma::Context *context);
00052 void locationChanged(Plasma::Context *context);
00053
00054 private:
00055 ContextPrivate * const d;
00056 };
00057
00058 }
00059
00060 #endif // multiple inclusion guard
00061