summaryrefslogtreecommitdiff
path: root/include/common/common_define_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/common/common_define_internal.h')
-rwxr-xr-xinclude/common/common_define_internal.h45
1 files changed, 44 insertions, 1 deletions
diff --git a/include/common/common_define_internal.h b/include/common/common_define_internal.h
index c3078de..4c1ed97 100755
--- a/include/common/common_define_internal.h
+++ b/include/common/common_define_internal.h
@@ -114,6 +114,15 @@
#define DEFINE_DIVE_SERVER_ID "syn.samsungdive.com"
#define DEFINE_DIVE_DEFAULT_NEXT_NONCE "pcwds"
+#define DEFINE_SYNC_INTERVAL_5_MINUTES_STR "5 minutes"
+#define DEFINE_SYNC_INTERVAL_15_MINUTES_STR "15 minutes"
+#define DEFINE_SYNC_INTERVAL_1_HOUR_STR "1 hour"
+#define DEFINE_SYNC_INTERVAL_4_HOURS_STR "4 hours"
+#define DEFINE_SYNC_INTERVAL_12_HOURS_STR "12 hours"
+#define DEFINE_SYNC_INTERVAL_1_DAY_STR "1 day"
+#define DEFINE_SYNC_INTERVAL_1_WEEK_STR "1 week"
+#define DEFINE_SYNC_INTERVAL_1_MONTH_STR "1 month"
+
typedef enum {
SYNC_SESSION_NOT_SYNCED_YET = -1,
SYNC_SESSION_FAILED = 0,
@@ -160,6 +169,40 @@ typedef enum {
} service_type_e;
typedef enum {
+ MODE_MANUAL = 0, /*Manual*/
+ MODE_PERIODIC = 1, /*Periodic*/
+ MODE_PUSH = 2, /*Push (SAN)*/
+ MODE_AUTOCONFIG = 3 /*Autoconfig*/
+} sync_mode_e;
+
+typedef enum {
+ SYNC_TYPE_FULL_SYNC = 0, /**< Full (Slow sync) */
+ SYNC_TYPE_UPDATE_BOTH = 1, /**< Update both */
+ SYNC_TYPE_UPDATE_TO_SERVER = 2, /**< Update to server */
+ SYNC_TYPE_UPDATE_TO_PHONE = 3, /**< Update to phone */
+ SYNC_TYPE_REFRESH_FROM_SERVER = 4, /**< Refresh from server */
+ SYNC_TYPE_REFRESH_FROM_PHONE = 5 /**< Refresh from phone */
+}sync_type_e;
+
+typedef enum {
+ SYNC_INTERVAL_5_MINUTES = 0, /**< 5 minutes */
+ SYNC_INTERVAL_15_MINUTES = 1, /**< 15 minutes */
+ SYNC_INTERVAL_1_HOUR = 2, /**< 1 hour */
+ SYNC_INTERVAL_4_HOURS = 3, /**< 4 hours */
+ SYNC_INTERVAL_12_HOURS = 4, /**< 12 hours */
+ SYNC_INTERVAL_1_DAY = 5, /**< 1 day */
+ SYNC_INTERVAL_1_WEEK = 6, /**< 1 week */
+ SYNC_INTERVAL_1_MONTH = 7 /**< 1 month */
+} sync_interval_e;
+
+typedef enum {
+ SRC_URI_CONTACT = 0, /**< Contacts */
+ SRC_URI_CALENDAR = 1, /**< Calendar */
+ SRC_URI_MEMO = 2, /**< Memo */
+ SRC_URI_CALLLOG = 3 /**< Calllog */
+} src_uri_e;
+
+typedef enum {
COMMON_INIT = 0,
COMMON_OK = 100,
COMMON_MISCONFIGURATION = 200,
@@ -287,7 +330,7 @@ typedef struct {
typedef struct {
service_type_e service_type;
int enabled;
- char *src_uri;
+ src_uri_e src_uri;
char *tgt_uri;
char *id;
char *password;