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
54
55
56
57
58
59
60
61
62
63
|
#ifndef SYNC_MAIN_H
#define SYNC_MAIN_H
#include <gtk/gtk.h>
#include <glade/glade.h>
#include <opensync/opensync.h>
#include "sync_collection.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
typedef enum {
TYPE_FILE,
TYPE_EVO2,
TYPE_SYNCML,
TYPE_ADD_NEW,
TYPE_BACKUP,
TYPE_RESTORE,
} SyncType;
enum {
COL_NAME,
COL_TYPE,
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;
GdkPixbuf *add_icon;
GtkListStore *model;
SyncCollection *collection;
SyncGroup *group;
SyncItem *local_item;
gboolean started;
guint animate_id;
} SyncData;
#endif
|