ButeoSynchronizationFramework
ProfileEngineDefs.h
1 /*
2  * This file is part of buteo-syncfw package
3  *
4  * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5  * Copyright (C) 2014-2015 Jolla Ltd
6  *
7  * Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public License
11  * version 2.1 as published by the Free Software Foundation.
12  *
13  * This library is distributed in the hope that it will be useful, but
14  * WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21  * 02110-1301 USA
22  *
23  */
24 #ifndef COMMONDEFS_H
25 #define COMMONDEFS_H
26 
27 #include <QString>
28 // Define string constants for different XML elements.
29 
30 namespace Buteo {
31 
32 const QString ATTR_NAME("name");
33 const QString ATTR_TYPE("type");
34 const QString ATTR_VALUE("value");
35 const QString ATTR_DEFAULT("default");
36 const QString ATTR_LABEL("label");
37 const QString ATTR_VISIBLE("visible");
38 const QString ATTR_READONLY("readonly");
39 const QString ATTR_ADDED("added");
40 const QString ATTR_DELETED("deleted");
41 const QString ATTR_MODIFIED("modified");
42 const QString ATTR_TIME("time");
43 const QString ATTR_INTERVAL("interval");
44 const QString ATTR_BEGIN("begin");
45 const QString ATTR_END("end");
46 const QString ATTR_DAYS("days");
47 const QString ATTR_MAJOR_CODE("majorcode");
48 const QString ATTR_MINOR_CODE("minorcode");
49 const QString ATTR_ENABLED("enabled");
50 const QString ATTR_SYNC_CONFIGURE("syncconfiguredtime");
51 const QString ATTR_EXTERNAL_SYNC("externalsync");
52 
53 const QString TAG_FIELD("field");
54 const QString TAG_PROFILE("profile");
55 const QString TAG_KEY("key");
56 const QString TAG_OPTION("option");
57 const QString TAG_TARGET_RESULTS("target");
58 const QString TAG_SYNC_RESULTS("syncresults");
59 const QString TAG_SYNC_LOG("synclog");
60 const QString TAG_LOCAL("local");
61 const QString TAG_REMOTE("remote");
62 const QString TAG_SCHEDULE("schedule");
63 const QString TAG_RUSH("rush");
64 const QString TAG_ERROR_ATTEMPTS("attempts");
65 const QString TAG_ATTEMPT_DELAY("attemptdelay");
66 
67 const QString KEY_ENABLED("enabled");
68 const QString KEY_DISPLAY_NAME("displayname");
69 const QString KEY_ACTIVE("active");
70 const QString KEY_USE_ACCOUNTS("use_accounts");
71 const QString KEY_SYNC_SCHEDULED("scheduled");
72 const QString KEY_PLUGIN("plugin");
73 const QString KEY_BACKEND("backend");
74 const QString KEY_ACCOUNT_ID("accountid");
75 const QString KEY_USERNAME("Username");
76 const QString KEY_PASSWORD("Password");
77 const QString KEY_HIDDEN("hidden");
78 const QString KEY_PROTECTED("protected");
79 const QString KEY_DESTINATION_TYPE("destinationtype");
80 const QString KEY_SYNC_DIRECTION("Sync Direction");
81 const QString KEY_FORCE_SLOW_SYNC("force_slow_sync");
82 const QString KEY_CONFLICT_RESOLUTION_POLICY("conflictpolicy");
83 const QString KEY_BT_ADDRESS("bt_address");
84 const QString KEY_REMOTE_ID("remote_id");
85 const QString KEY_REMOTE_DATABASE("Remote database");
86 const QString KEY_BT_NAME("bt_name");
87 const QString KEY_BT_TRANSPORT("bt_transport");
88 const QString KEY_USB_TRANSPORT("usb_transport");
89 const QString KEY_INTERNET_TRANSPORT("internet_transport");
90 const QString KEY_LOAD_WITHOUT_TRANSPORT("load_without_transport");
91 const QString KEY_CAPS_MODIFIED("caps_modified");
92 const QString KEY_SYNC_SINCE_DAYS_PAST("sync_since_days_past"); // sync from this many days before the current date
93 const QString KEY_SYNC_ALWAYS_UP_TO_DATE("sync_always_up_to_date");
94 const QString KEY_SYNC_EXTERNALLY("sync_externally");
95 const QString KEY_SOC("sync_on_change");
96 const QString KEY_SOC_AFTER("sync_on_change_after");
97 const QString KEY_LOCAL_URI("Local URI");
98 const QString KEY_ALWAYS_ON_ENABLED("always_on_enabled");
99 const QString KEY_REMOTE_NAME("remote_name");
100 const QString KEY_UUID("uuid");
101 const QString KEY_NOTES_UUID("notes_uuid");
102 const QString KEY_STORAGE_UPDATED("storage_updated");
103 const QString KEY_HTTP_PROXY_HOST("http_proxy_host");
104 const QString KEY_HTTP_PROXY_PORT("http_proxy_port");
105 const QString KEY_PROFILE_ID("profile_id");
106 
107 const QString BOOLEAN_TRUE("true");
108 const QString BOOLEAN_FALSE("false");
109 
110 const QString VALUE_ONLINE("online");
111 const QString VALUE_DEVICE("device");
112 const QString VALUE_TWO_WAY("two-way");
113 const QString VALUE_FROM_REMOTE("from-remote");
114 const QString VALUE_TO_REMOTE("to-remote");
115 const QString VALUE_PREFER_REMOTE("prefer remote");
116 const QString VALUE_PREFER_LOCAL("prefer local");
117 
118 // Indent size for profile XML output.
119 const int PROFILE_INDENT = 4;
120 
121 const QString PC_SYNC("PC-SYNC");
122 
123 //For account online_template
124 const QString SYNC_ONLINE_TEMPLATE("online_template");
125 }
126 
127 #endif // COMMONDEFS_H
Definition: AccountsHelper.h:31