summaryrefslogtreecommitdiffstats
path: root/sync/src/sync_main.h
diff options
context:
space:
mode:
Diffstat (limited to 'sync/src/sync_main.h')
-rw-r--r--sync/src/sync_main.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/sync/src/sync_main.h b/sync/src/sync_main.h
new file mode 100644
index 0000000..528b70e
--- /dev/null
+++ b/sync/src/sync_main.h
@@ -0,0 +1,51 @@
+
+#ifndef SYNC_MAIN_H
+#define SYNC_MAIN_H
+
+#include <gtk/gtk.h>
+#include <glade/glade.h>
+#include <opensync/opensync.h>
+#include "sync_group.h"
+#include "sync_item.h"
+
+#define XML_FILE PKGDATADIR G_DIR_SEPARATOR_S "sync.glade"
+#define TEMP_PATH "%s" G_DIR_SEPARATOR_S ".gnome2" G_DIR_SEPARATOR_S \
+ "sync" G_DIR_SEPARATOR_S "backup"
+
+#define ANIM_FREQ 100
+#define SWITCH_FREQ 10
+
+enum {
+ COL_NAME,
+ COL_PIXBUF,
+};
+
+enum {
+ TAB_CHOOSE = 0,
+ TAB_SYNC,
+ TAB_CONFLICT,
+ TAB_ERROR,
+ TAB_SUCCESS
+};
+
+enum {
+ IMAGE_TAB_PREPARE = 0,
+ IMAGE_TAB_SYNC,
+};
+
+typedef struct {
+ GladeXML *xml;
+ GdkPixbuf *backup_icon;
+ GdkPixbuf *restore_icon;
+ GdkPixbuf *network_icon;
+ GtkListStore *model;
+ SyncItem *local_item;
+ SyncGroup *group;
+ GHashTable *sync_items;
+
+ gboolean started;
+ guint animate_id;
+} SyncData;
+
+
+#endif