Added few more states for SyncState

These sync states are used mainly for remote sync servers

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Fixed the login in lastSuccessfulSyncTime to return the latest sync times

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
QThread::terminate() method is not available in Qt5. #ifdef'd it

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Implementation of the tool to create a template for a buteo plugin

This is the first cut implementation of a tool that helps create a buteo
sync plugin. The user has to be provide few settings for the plugin
that are provided as part of [client,server,storage]-plugin.cfg. Once the
config file is filled, the tool can be used by running the
'gen_template.py client-plugin.cfg' for a client plugin. This will
generate the complete structure of the plugin after which the developer can
make the necessary modifications to suit their needs. This tool makes use of
'Cheetah' templating library in python and can be installed in Ubuntu using
'sudo apt-get install python-cheetah'

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Patch to generate the classes for the client plugin

Added functionality to generate classes for the client plugin. Added
template files for server and storage plugin. Next step is to add
functionality to generate server and storage plugin code and also the
profile xml files

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added support for generating sync profile xml files

With this patch sync profile xml files can be generated. Next step is to
generate the storage profile as well as the agent profiles

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
[usb] Make usb-moded support easily selectable by adding CONFIG+=usb-moded
Completed the template code generation for a client plugin

Added the necessary code to finish the code generation for the client
plugin. The format of the config file is modified a bit to include
sub-sections for the 'config' section. Added code to generate the
storage plugin, but the class templates are yet to be created.

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added templates for server plugin

Created Cheetah template files for server plugin. Also made extconfig as
a subsection for storage profile config. Next step is to add the python
scripting for generating the code for server plugin

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Move log level selector to /etc/buteo
Finished implementation of generating server plugin and profiles

Added support to generate server plugin and the corresponding profile
xml files

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Finished functionality for generating storage plugins

Implementation for the generation of the storage plugins is complete.
Added the class file templates for storage plugins. Modified the
storage-plugin.cfg with sub-sections. Next step is to generate the .pro
file

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added support for generating .pro file

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
After every sync session, the framework removes the references of the
sever because of which the server plugin is killed. Servers are expected
to outlive sync sessions and so #ifdef'd the reference removal part.
This change enables multiple sync sessions to happen

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
[usb] Enable usb-moded per default, use pc_suite as sync mode
Merge branch 'master' of github.com:kavuri/buteo-syncfw
[msyncd] Always restart msyncd service
Beautification of the dir structure and the config files

Added mandatory and optional fields help in the .cfg files. Moved
templates into a templates directory. Added better help message to the
script

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added functionality to track bluetooth state changes

Used the Bluez dbus API to fetch and track the bluetooth state changes.
This patch makes use of bluez4 API and it changes quite a lot in bluez5.
Once the move is done to bluez5, this API usage also has to be modified.

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Removed the hack to enable USB transport forcefully

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>