summaryrefslogtreecommitdiffstats
path: root/sync/src/sync.h
blob: ad463403e2daac1646b4b77ae55be1eaae62bcd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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