NepomukDaemons
servicestubadaptor.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 _SERVICESTUB_ADAPTOR_H_
00021 #define _SERVICESTUB_ADAPTOR_H_
00022
00023 #include <QtCore/QObject>
00024 #include <QtDBus/QtDBus>
00025
00026 #include <Nepomuk/Service>
00027
00028
00029 class ServiceControlAdaptor: public QDBusAbstractAdaptor
00030 {
00031 Q_OBJECT
00032 Q_CLASSINFO("D-Bus Interface", "org.kde.nepomuk.ServiceControl")
00033 Q_CLASSINFO("D-Bus Introspection", ""
00034 " <interface name=\"org.kde.nepomuk.ServiceControl\" >\n"
00035 " <method name=\"shutdown\" />\n"
00036 " <method name=\"isInitialized\">\n"
00037 " <arg name=\"state\" type=\"b\" direction=\"out\" />\n"
00038 " </method>\n"
00039 " <signal name=\"serviceInitialized\">\n"
00040 " <arg name=\"success\" type=\"b\" direction=\"out\" />\n"
00041 " </signal>\n"
00042 " </interface>\n"
00043 "")
00044
00045 public:
00046 ServiceControlAdaptor( Nepomuk::Service *parent );
00047 virtual ~ServiceControlAdaptor();
00048
00049 inline Nepomuk::Service *parent() const
00050 { return static_cast<Nepomuk::Service *>(QObject::parent()); }
00051
00052 public Q_SLOTS:
00053 bool isInitialized() const;
00054
00055 Q_SIGNALS:
00056 void serviceInitialized( bool success );
00057
00058 public Q_SLOTS:
00059 void shutdown();
00060 };
00061
00062 #endif