summaryrefslogtreecommitdiffstats
path: root/sync/src/sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/src/sync.h')
-rw-r--r--sync/src/sync.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/sync/src/sync.h b/sync/src/sync.h
new file mode 100644
index 0000000..ad46340
--- /dev/null
+++ b/sync/src/sync.h
@@ -0,0 +1,53 @@
+
+#ifndef SYNC_H
+#define SYNC_H
+
+#include <gtk/gtk.h>
+#include <glade/glade.h>
+#include <opensync/opensync.h>
+
+#define XML_FILE PKGDATADIR G_DIR_SEPARATOR_S "sync.glade"
+#define BACKUP_GROUP "sync-backup"
+#define BACKUP_PATH "%s" G_DIR_SEPARATOR_S ".gnome2" G_DIR_SEPARATOR_S \
+ "sync" G_DIR_SEPARATOR_S "backup"
+
+#define EVO2_PLUGIN "evo2-sync"
+#define EVO2_CONFIG "<config>" \
+ "<adress_path>default</adress_path>" \
+ "<calendar_path>default</calendar_path>" \
+ "<tasks_path>default</tasks_path>" \
+ "</config>"
+
+#define FILE_PLUGIN "file-sync"
+#define FILE_CONFIG "<config>" \
+ "<path>%s</path>" \
+ "<recursive>FALSE</recursive>" \
+ "</config>"
+
+enum {
+ COL_ID,
+ COL_NAME,
+ COL_PIXBUF,
+};
+
+enum {
+ TAB_CHOOSE = 0,
+ TAB_SYNC,
+ TAB_CONFLICT,
+ TAB_ERROR,
+ TAB_SUCCESS
+};
+
+typedef struct {
+ GladeXML *xml;
+ GdkPixbuf *backup_icon;
+ GdkPixbuf *network_icon;
+ GtkListStore *model;
+ OSyncEnv *osync;
+
+ gboolean syncing;
+ guint animate_id;
+} SyncData;
+
+
+#endif