$ sudo zypper install libmeegosharingserviceplugin libmeegosharingserviceplugin-devel meego-sharing-devel qt-qmlviewer
The following sample plugin can be used as a reference. It implements two services - "foo" and "bar", and example custom QML UI for the service-specific sharing process.
$ tar xjvf meego-sharing-examples-0.0.2.tar_.bzip2 $ cd meego-sharing-examples/example-plugin $ qmake $ make $ sudo make install
/usr/bin/msd) is already running, you can either kill the daemon and restart it, or trigger the com.meego.meego_sharing_daemon/com/meego/meego_sharing_daemon/RescanPlugins DBUS call, which causes the daemon to reload all plugins, and load any new ones. $ cd meego-sharing-examples/viewer $ qmlviewer viewer.qml
Examine headers from libmeegosharingserviceplugin-devel in /usr/include/meego-sharing/plugin. You need to implement the interfaces in:
meegosharingservice.h
meegosharingserviceplugininterface.h
See the sample plugin code above for how to write your plugin. You will also need to provide service-specific QML UI files that finish any service-specific steps in the sharing process, such as collecting additional metadata for the shared files, or assigning service-specific attributes/parameters to the files, and then also trigger (or cancel) the actual sharing process in the plugin. For examples, see the files under the meego-sharing-examples/example-plugin/qml/ directory.