summaryrefslogtreecommitdiffstats
path: root/sync/src/pokysync.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/src/pokysync.h')
-rw-r--r--sync/src/pokysync.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/sync/src/pokysync.h b/sync/src/pokysync.h
new file mode 100644
index 0000000..40afacf
--- /dev/null
+++ b/sync/src/pokysync.h
@@ -0,0 +1,53 @@
+
+#ifndef POKYSYNC_H
+#define POKYSYNC_H
+
+#include <gtk/gtk.h>
+#include <glade/glade.h>
+#include <opensync/opensync.h>
+
+#define XML_FILE PKGDATADIR "/pokysync.glade"
+#define BACKUP_GROUP "pokysync-backup"
+
+#define BACKUP_PLUGIN "file-sync"
+#define BACKUP_CONFIG "<config>" \
+ "<path>%s</path>" \
+ "<recursive>FALSE</recursive>" \
+ "</config>"
+#define BACKUP_PATH "%s" G_DIR_SEPARATOR_S ".gnome2" G_DIR_SEPARATOR_S \
+ "poky" 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>"
+
+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;
+} PokySyncData;
+
+
+#endif