Buteo Synchronization Framework: ProfileEngineDefs.h Source File

Buteo Synchronization Framework

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