homescreenapp/examples/helloworldwidgetplugin/src/helloworldwidgetplugin.cpp
changeset 60 30f14686fb04
parent 46 23b5d6a29cce
child 61 2b1b11a301d2
equal deleted inserted replaced
55:03646e8da489 60:30f14686fb04
    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 
    71         </interface>
    71         </interface>
    72     </service>
    72     </service>
    73     @endcode
    73     @endcode
    74 */
    74 */
    75 
    75 
    76 /**
    76 /*!
    77     @page page_deploying_widget_plugin Deploying Home Screen Widget Plugin
    77     @page page_deployingwidgetplugin Deploying Home Screen Widget Plugin
    78     
    78     
    79     Widget's binaries and xml file(s) must be deployed to correct folders on emulator and in target. 
    79     Widget's binaries and xml file(s) must be deployed to correct folders on emulator and in target. 
    80     Below are the needed .pro file for the \c helloworldwidgetplugin.
    80     Below are the needed .pro file for the \c helloworldwidgetplugin.
    81     
    81     
    82     For example:
    82     For example:
    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