CWRT Service Providers Development Environment example
---------------------------------------------------------------------
This folder contains an example of how to implement CWRT service 
providers for maemo without using the CWRT source code.


Building the example
---------------------------------------------------------------------
In order to try the example you have to execute:

qmake && make && make install

from the root directory of the development example (i.e., the same 
directory as this README file).
This will install the referenceserviceplugin provider onto your 
environment.


Running the example
---------------------------------------------------------------------
To verify that it works you need two separate scratchbox sessions.
In session 1:
- cd /usr/lib/cwrt/serviceproviders
- ./wrtserviceresolver

In SB session 2:
- demoJustContentView /usr/lib/cwrt/serviceproviders/referenceserviceplugin/referenceservice.html

You should now be able to see the referenceservice test page in your X 
server (e.g., Xephyr) and invoke the available test cases of the 
referenceserviceplugin by clicking on the corresponding buttons.


Installation and deployment on real Hardware
-----------------------------------------------------------------------
The example can also be packaged as a debian package and installed on device (Devlon 2, Columbus) as well
as on other scratchbox targets.
In order to do this, just invoke the following command from the root directory of the development example:
dpkg-buildpackage -rfakeroot 
This will create a new debian package that you can then copy to your device:
scp ../cwrt-sfwproviders_0.1-1_armel.deb root@192.168.2.15:

and then executed in the same way as described in the "Running the example" Section above.

Pre-requisites
---------------------
The examples can be used in an Harmattan Scratchbox environment 
configured as described at the following URL:

https://cwiki.nokia.com/OSRuntimesTeamWiki/WRTSettingUpCwrtServiceProvidersDevEnv

