syncevolution/src/dbus
Patrick Ohly 781e505c77 command line + D-Bus signal cleanup (MB #5043)
This patch started with the goal of changing the uint level into
a string. The motivation for that was that the numeric constants
would have to be documented (which they weren't) and prevent
us from easily changing the Logger::Level later on.

I did change them once today (see previous commit about reordering the
SHOW level) and really had the problem that a not-restarted
syncevo-dbus-server couldn't talk to a recompiled client.

Using strings avoids that problem.

While changing uint to string I had to make the change twice, once in
an entirely unnecessary new and the pointer definition. Replaced the
shared_ptr with normal members, throughout the code.

Then I wondered about the use of the () operator on these signal
watches.  At the point of use it was not obvious what that did. Turns
out that this activates the watch. In contrast to making a remote
function call or emitting a signal, I find the use of the operator
inappropriate for watches. Replaced with an explicit activate()
method.

While looking at the implementation, I found that this operator and
destructors had been duplicated. Instead of fixing it in all copies, I
moved the common code into a SignalWatch<> base template,
parameterized with the type of callback that it deals with.
2010-03-29 11:01:36 +02:00
..
interfaces command line + D-Bus signal cleanup (MB #5043) 2010-03-29 11:01:36 +02:00
Makefile.am add temporary test binary 2009-11-13 11:07:36 +02:00
README implement new dbus api in the C wrapper 2009-11-13 11:07:36 +02:00
syncevo-dbus-types.c gtk-ui: use "fingerprint" for device template selector 2010-02-09 20:08:11 +02:00
syncevo-dbus-types.h gtk-ui: handle source phases correctly (MB #9320) 2010-02-03 13:27:47 +01:00
syncevo-dbus.pc.in build rules: moved D-Bus into sub directories 2009-05-06 19:52:55 +02:00
syncevo-server.c dbus client bindings: implement TemplatesChanged 2010-02-23 14:54:39 +02:00
syncevo-server.h dbus client bindings: implement TemplatesChanged 2010-02-23 14:54:39 +02:00
syncevo-session.c dbus bindings: add Session.Restore() 2010-02-03 13:27:46 +01:00
syncevo-session.h dbus bindings: add Session.Restore() 2010-02-03 13:27:46 +01:00
test.c sync-UI + D-Bus lib: removed obsolete include for engine defs 2010-03-23 18:57:30 +01:00

This is the C wrapper for the SyncEvolution DBus API. It is used by the GTK ui.