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>
Set Sync Profile ID to Accounts Custom property. To access sync profile from accounts
Merge pull request #16 from chriadam/master

[msyncd] Use invoker to launch msyncd
Merge pull request #17 from maninc/master

Save Profile Id to Account property
[msyncd] let plugins see msyncd's symbols

After the change to using invoker to launch msyncd, the fsstorage
plugin could no longer find its symbols. Adding -G (--global-syms) to
the invoker makes symbol resolution behave the same way as when msyncd
is the main program.
return with real exit code of unit test

[qa] return with real exit code of unit test
Merge pull request #18 from amtep/master

[msyncd] let plugins see msyncd's symbols
Merge pull request #19 from d0b3rm4n/exit-code-change

return with real exit code of unit test
Replace accounts sync to syncAndBlock(). accounts object is getting deleted before values are saved to DB
Patch to generate sync profile whenever an account is created

Whenever an account that has a sync service is created, this patch
creates a corresponding profile XML for that account. The created
account should have a setting "remote_service_name" the value of which
should be equal to a service domain name. For example, it should be
like "memotoo.com", "yahoo.com" etc. The profile XML files are created
with names like "memotoo-<account id>.com.xml". This value is again set
as an account setting, using which an account can trigger sync

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Added wrapper API method to return the last sync status

The convinence method currentSyncStatus infact returns the status of the
last sync status and whether any sync has infact happened anytime. If
not this method, the SyncResults class can also be used to obtain the
last sync result (SyncProfile::lastResult()) and the major code can be
checked

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
Merge pull request #20 from maninc/master

Replace accounts sync to syncAndBlock().
Merge pull request #22 from kavuri/extend_profile_api

Extend profile api
Settings are not updated to Accounts when saved in onAccountCreated function.
Moved Profile Id saving code to OnAccountEnabled signal.
Remove useless Logger includes sprinkled all over the place.
Using Qt methods to log output to stdout and removed logging to file

The Qt debug methods, qDebug(), qFatal() etc. are used to log the output
to stdout rather than to a file (using the Buteo message handler). This
choice is valid, since in production devices, it is not expected that
msyncd writes to files (which it does not in the prev. way too). In dev
environment, developers can start msyncd from cmdline and check the
output there itself, or redirect the ouput to a file. msyncd now does
not initialize the Logger::instance()

Signed-off-by: Sateesh Kavuri <sateesh.kavuri@gmail.com>
[packaging] contextsubscriber is a vestigal build dependency
Merge pull request #26 from stskeeps/master

[packaging] contextsubscriber is a vestigal build dependency
Merge pull request #23 from maninc/master

Settings are not updated to Accounts when saved in onAccountCreated function