equal
deleted
inserted
replaced
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include <qserviceplugininterface.h> |
22 #include <qserviceplugininterface.h> |
23 |
23 |
24 QTM_USE_NAMESPACE |
24 QTM_USE_NAMESPACE |
|
25 // Start of snippet 1 |
25 class HelloWorldWidgetPlugin : public QObject, public QServicePluginInterface |
26 class HelloWorldWidgetPlugin : public QObject, public QServicePluginInterface |
26 { |
27 { |
27 Q_OBJECT |
28 Q_OBJECT |
28 Q_INTERFACES(QtMobility::QServicePluginInterface) |
29 Q_INTERFACES(QtMobility::QServicePluginInterface) |
29 |
30 |
30 public: |
31 public: |
31 QObject *createInstance(const QServiceInterfaceDescriptor &descriptor, |
32 QObject *createInstance(const QServiceInterfaceDescriptor &descriptor, |
32 QServiceContext *context, |
33 QServiceContext *context, |
33 QAbstractSecuritySession *session); |
34 QAbstractSecuritySession *session); |
34 }; |
35 }; |
|
36 // End of snippet 1 |
35 |
37 |
36 #endif // HELLOWORLDWIDGETPLUGIN_H |
38 #endif // HELLOWORLDWIDGETPLUGIN_H |