20 #include <qservicecontext.h> |
20 #include <qservicecontext.h> |
21 |
21 |
22 #include "helloworldwidgetplugin.h" |
22 #include "helloworldwidgetplugin.h" |
23 #include "helloworldwidget.h" |
23 #include "helloworldwidget.h" |
24 |
24 |
25 /** |
25 /*! |
26 @page page_creating_widget_plugin Creating Home Screen Widget Plugin |
26 @page page_creatingwidgetplugin Creating Home Screen Widget Plugin |
27 |
27 |
28 Widgets are exposed to the home screen through QT Service Framework. |
28 Widgets are exposed to the home screen through QT Service Framework. |
29 Widget plugins are implemented according to |
29 Widget plugins are implemented according to |
30 <a href="http://qt.nokia.com/doc/qtmobility-1.0-tp/service-frameworks.html">Qt service framework plugin model</a>. |
30 <a href="http://qt.nokia.com/doc/qtmobility-1.0-tp/service-frameworks.html">Qt service framework plugin model</a>. |
31 |
31 |
88 CONFIG += plugin mobility hb |
88 CONFIG += plugin mobility hb |
89 MOBILITY = serviceframework |
89 MOBILITY = serviceframework |
90 |
90 |
91 HEADERS += ./inc/ .h |
91 HEADERS += ./inc/ .h |
92 SOURCES += ./src/ .cpp |
92 SOURCES += ./src/ .cpp |
93 |
|
94 DESTDIR = $${EPOCROOT}epoc32/data/c/private/20022F35/import/widgetregistry/20022F7E |
|
95 |
93 |
96 INCLUDEPATH += ./inc |
94 INCLUDEPATH += ./inc |
97 |
95 |
98 symbian: { |
96 symbian: { |
|
97 |
|
98 DESTDIR = /private/20022F35/import/widgetregistry/20022F7E |
99 INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
99 INCLUDEPATH += $$APP_LAYER_SYSTEMINCLUDE |
100 |
100 |
101 TARGET.UID3 = 0x20022F7E |
101 TARGET.UID3 = 0x20022F7E |
102 TARGET.EPOCALLOWDLLDATA=1 |
102 TARGET.EPOCALLOWDLLDATA=1 |
103 TARGET.CAPABILITY = ALL -TCB |
103 TARGET.CAPABILITY = ALL -TCB |
104 |
104 |
105 plugins.path = $${DESTDIR} |
105 plugins.path = $${DESTDIR} |
106 plugins.sources = $${TARGET}.dll |
106 plugins.sources = $${TARGET}.dll |
107 |
107 |
108 widgetResources.path = $${DESTDIR} |
108 widgetResources.path = $${DESTDIR} |
109 widgetResources.sources += resource/$${TARGET}.xml |
109 widgetResources.sources += resource/$${TARGET}.xml |
110 widgetResources.sources += resource/$${TARGET}.manifest |
110 widgetResources.sources += resource/$${TARGET}.manifest |
111 widgetResources.sources += resource/$${TARGET}.png |
111 widgetResources.sources += resource/$${TARGET}.png |
112 |
112 |
113 DEPLOYMENT += plugins \ |
113 DEPLOYMENT += plugins \ |
114 widgetResources |
114 widgetResources |
115 } |
115 } |
116 |
116 |
117 @endcode |
117 @endcode |
118 |
118 |
119 For detailed information on DEPLOYMENT macro, see <a HREF="http://pepper.troll.no/s60prereleases/doc/qmake-variable-reference.html#deployment">here</a>. |
119 For detailed information on DEPLOYMENT macro, see <a HREF="http://pepper.troll.no/s60prereleases/doc/qmake-variable-reference.html#deployment">here</a>. |
120 */ |
120 */ |
121 |
121 |