Commit graph

1329 commits

Author SHA1 Message Date
Jussi Kukkonen 98a02241bc dbus client: stop leaking memory on every dbus callback 2009-04-27 10:42:19 +03:00
Jussi Kukkonen a09ce3d9ca support sync reports in dbus api, use GetSyncReports in ui 2009-04-27 10:42:19 +03:00
Jussi Kukkonen 1366280739 dbus client: fix bug in gconf change handling
server name has already been changed in service_changed_clicked
(so the change seems immediate to user)
2009-04-27 10:42:19 +03:00
Jussi Kukkonen 4835fb5bfd dbus client: use generice sync icon 2009-04-27 10:42:19 +03:00
Jussi Kukkonen 2a734096cf work around duplicate synthesis errors
synthesis may emit syncend errors twice, don't
output duplicates
2009-04-27 10:42:18 +03:00
Jussi Kukkonen 7dcf62a35d dbus service: use SetPrintChanges() 2009-04-27 10:42:18 +03:00
Patrick Ohly 55b2cd193e version bump: 0.8+0.9+20090424 2009-04-24 10:39:22 +02:00
Patrick Ohly 7e4c7f28ef Bugzilla 1412: no data source enabled => XML error => should be normal message
Instead of passing an invalid XML config to the Synthesis engine, check
for this error and raise a "[ERROR] no sources active, check configuration"
in EvolutionSyncClient::getConfigXML().
2009-04-24 10:37:56 +02:00
Patrick Ohly 645b90a18b command line synopsis: --print-sessions can be combined with --quiet 2009-04-23 17:34:31 +02:00
Patrick Ohly 64804b3ea0 Merge branch 'ui' of git@git.moblin.org:syncevolution into ui 2009-04-23 16:51:42 +02:00
Patrick Ohly ad774d0b29 added --restore and fixed --status
--status was broken by the last commit: XDG_DATA_DIR was not
expanded. Fixed it as part of the improvements for printing
changes in --restore. Also made some other minor changes
to utility classes as part of these improvements.

The new --restore option can restore data from a data dump,
identified by the directory and a before/after flag. The
corresponding API is EvolutionSyncClient::restore().
2009-04-23 16:47:07 +02:00
Patrick Ohly e47a9225bc command line: removed traces of never implemented --properties options 2009-04-22 17:56:55 +02:00
Patrick Ohly 7a0c625327 log dir handling: changed backup files from single file to directory, remember number of items in backup
Using the directory format will make restoring items easier because
there is no need to break one file with unknown content into single
items.

The SyncSourceReport now contains information about the backups
made before and after a sync; the only useful information right
now is the number of items.
2009-04-22 17:53:04 +02:00
Patrick Ohly b35c27cc45 config nodes: utility code to create a node for a specific file
The factory function is defined in ConfigNode because that is the minimal API
that is needed by code creating and using such a node. The actual implementatation
is in FileConfigNode.cpp and uses a SafeConfigNode as wrapper to make key/value
pairs safe for storing.
2009-04-22 14:28:14 +02:00
Patrick Ohly b0ff104363 FileConfigNode: error messages should refer to full path
The file name part was missing previously.
2009-04-22 14:27:56 +02:00
Patrick Ohly 3cde4013dd synccompare: each of the two parameters can refer to a directory of items in addition to plain files
A directory is treated exactly like a file by concatenating all files inside
the directory and then working with the resulting text.
2009-04-22 14:25:01 +02:00
Jussi Kukkonen 9ca48e2107 dbus client: handle more sync errors 2009-04-21 13:39:16 +03:00
Jussi Kukkonen d176bf71e4 dbus client: improve error output
now using the main window log box to show sync errors and
an error dialog for other show stopping errors (gconf, dbus)

No error messages from syncevolution are used (to be l10n
friendly), but they are printed to stderr.
2009-04-21 13:37:12 +03:00
Jussi Kukkonen 06fae650e6 dbus client: update sync mode handling to match server
also add a bit of debug output
2009-04-21 13:37:12 +03:00
Jussi Kukkonen fc4c08e510 dbus interface: remove syncevo-marshal.list from BUILT_SOURCES 2009-04-21 13:37:12 +03:00
Jussi Kukkonen df2648d770 dbus service: add support for per-source syncmode 2009-04-21 13:37:11 +03:00
Patrick Ohly e9c5ed4653 logging: allow detailed control over printing of database changes with --printChanges
printChanges:
   enables or disables the detailed (and sometimes slow) comparison
   of database content before and after a sync session

This option can be overriden temporarily by classes derived from
EvolutionSyncClient in the prepare() call with setPrintChanges().
2009-04-21 11:22:32 +02:00
Patrick Ohly bc938ca34f configure: --disable-dbus-service and --disable-gui didn't work
The problem was that enable_gui/dbus were set to "yes" in the "option
given explicitly" case. That case includes "disabled explicitly", which
has to be covered by using the "$enableval" variable.
2009-04-20 16:23:29 +02:00
Patrick Ohly 9e0b17f795 GTK UI: build fixes for out-of-tree compilation
.xml file and headers were not found.
2009-04-17 14:15:14 +02:00
Patrick Ohly d64b07c855 config templates: silently ignore missing template directory
Previously the getTemplate() method would throw an exception when
the directory cannot be read.
2009-04-17 14:09:17 +02:00
Jussi Kukkonen b0b0c977a9 dbus service: use builddir when referring to dbus interface file 2009-04-16 20:06:21 +03:00
Jussi Kukkonen 4354148eae dbus client: remove "settings" title bar button
new input from nick, settings button is not needed
2009-04-16 19:38:52 +03:00
Jussi Kukkonen 0dccdb6362 dbus service: build syncevo-dbus-glue.h explicitly 2009-04-16 19:38:52 +03:00
Patrick Ohly 530e614541 Merge branch 'ui' of git@git.moblin.org:syncevolution into ui 2009-04-16 17:31:09 +02:00
Patrick Ohly 2ce4de8044 Merge branch 'ui' of git@git.moblin.org:syncevolution into ui 2009-04-16 17:29:39 +02:00
Patrick Ohly 935c7e7bd8 logging: enable log dirs by default
When the "logdir" sync property is unset, then SyncEvolution now
maintains log directories in $XDG_DATA_HOME/applications/syncevolution.
The "maxlogdirs" property defaults to 10 now because of this change.

When the base directory for log dirs ends in "syncevolution", then
the directories created inside it start with the server name, followed
by a date and time (as before). Otherwise "SyncEvolution-" is added.
This is a safety-mechanism that ensures that we have a good chance
of finding the right log directories again with a non-standard
base directory.

The previous default (a single log dir in /tmp with the user name
as part of the log dir name) is no longer supported: when configuring
a non-standard log dir, that directory has to be chosen so that
files from different users aren't mixed up.
2009-04-16 17:22:31 +02:00
Patrick Ohly f00c9cc900 logging: create directories with access permissions only for the user
The XDG standard suggests that. Previously SyncEvolution created
directories so that only the default umask controlled access to
new directories.
2009-04-16 17:20:35 +02:00
Jussi Kukkonen 2baee1ba6d dbus client: support removing services 2009-04-16 18:16:49 +03:00
Jussi Kukkonen ba258ddb9c change makefile subdir order: syncevo-dbus before src 2009-04-16 17:31:56 +03:00
Jussi Kukkonen 0f2a97a378 dbus client: bug fix: don't eat all keyboard input 2009-04-16 17:30:26 +03:00
Jussi Kukkonen 1e8e4eed7f dbus client: set focus correctly 2009-04-16 17:30:26 +03:00
Jussi Kukkonen e95961f687 dbus client: fix allocation bug in MuxBin, tweak related layout in ui 2009-04-16 17:30:26 +03:00
Patrick Ohly 6faea55c1b Merge branch 'ui' of git@git.moblin.org:syncevolution into ui 2009-04-16 15:06:43 +02:00
Patrick Ohly 959be927d5 SafeConfigNode: the if clause for non-strict escaping did not work right
= and \n were not escaped because of a && instead of ||.
2009-04-16 14:45:03 +02:00
Patrick Ohly 54cb54b8e8 testing: the "New York" test case works again
This depended on VTIMEZONE before VEVENT (because that is
what ScheduleWorld needs). Since Synthesis supports this now,
the test can be enabled again.
2009-04-16 14:42:58 +02:00
Jussi Kukkonen c97d9c766b dbus client: tweak bin insensitivity 2009-04-16 13:57:52 +03:00
Patrick Ohly 3d9621f019 Merge branch 'ui' of git@git.moblin.org:syncevolution into ui 2009-04-16 12:18:41 +02:00
Patrick Ohly 49f744a245 log handling: SyncReport is stored in log dir and can be retrieved
Source specific values are stored with a key that is composed of the
prefix "source-" followed by the source name (with - escaped) and
other components representing the various properties. Empty values
are not stored, which is fairly efficient for the statistics array.

When reading back, only sources which have any value are
recreated. Because the sync mode is always set, this ensures
that the set of active sources is restored. Inactive sources
are not part of that set!

--print-sessions now prints the retrieved sync report just like
--sync does. Combined with --quiet only the directory name is printed.
2009-04-16 12:18:28 +02:00
Jussi Kukkonen 9b01c4d1b7 dbus client: use insensitivity in main window Bins 2009-04-16 11:52:53 +03:00
Jussi Kukkonen 63135683dd dbus client; add styling for main window 2009-04-16 11:10:08 +03:00
Patrick Ohly 70edceabd6 logging: record start/end times in SyncReport and print it
Start and end times are defined by the LogDir instance. It needs
access to the SyncReport to record the information there.
2009-04-16 09:26:14 +02:00
Jussi Kukkonen a99e8c43c7 dbus client: add MuxWindow class, use it in the client
MuxWindow is a top-level widget (a GtkWindow) that includes
builtin "window decoration": a title bar with a title and
selected buttons. MuxWindow disables actual window decorations
and makes the window fullscreen by default.
2009-04-16 10:24:48 +03:00
Jussi Kukkonen 269c987b6e dbus client: add title-font property to MuxBin 2009-04-16 10:24:48 +03:00
Jussi Kukkonen 3049061122 add tmp images for window decoration buttons
This is a temporary solution: images should go to gtk theme
2009-04-16 10:24:48 +03:00
Jussi Kukkonen 1656f888a8 dbus client: do sensitivity changes on the bins, not buttons
allows showing sensitivity with bin content style changes
2009-04-16 10:24:48 +03:00