HarmattanSyncApplications
syncmlcommon/SyncMLCommon.h
1/*
2 * This file is part of buteo-sync-plugins package
3 *
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 *
6 * Contact: Sateesh Kavuri <sateesh.kavuri@nokia.com>
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * version 2.1 as published by the Free Software Foundation.
11 *
12 * This library is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
24#ifndef SYNCMLCOMMON_H
25#define SYNCMLCOMMON_H
26
27#include <QLoggingCategory>
28
29const QString PROPS_FALSE = "false";
30const QString PROPS_TRUE = "true";
31
32// Properties found from storage plug-ins that can be used to configure storage
33// adapter
34
35
36// Preferred MIME type
37const QString STORAGE_DEFAULT_MIME_PROP = "Type";
38
39// Preferred MIME version
40const QString STORAGE_DEFAULT_MIME_VERSION_PROP = "Version";
41
42// CTCaps for SyncML protocol
43const QString STORAGE_SYNCML_CTCAPS_PROP_11 = "CTCaps_SyncML11";
44const QString STORAGE_SYNCML_CTCAPS_PROP_12 = "CTCaps_SyncML12";
45
46// Extensions supported by plugin
47const QString STORAGE_SYNCML_EXTENSIONS = "Extensions";
48
49// Properties found from server/client plug-ins that can be used to configure storage
50// adapter
51
52
53// SyncML Source URI to associate with a storage
54const QString STORAGE_SOURCE_URI = "Local URI";
55
56// SyncML Target URI to associate with a storage
57const QString STORAGE_REMOTE_URI = "Target URI";
58
59// Sync target to associate with a storage session
60const QString STORAGE_SYNC_TARGET = "Sync Target";
61
62// Bluetooth storage sync target
63const QString STORAGE_SYNC_TARGET_BLUETOOTH = "bluetooth";
64
65// ID of the origin data source to associate with a storage session
66const QString STORAGE_ORIGIN_ID = "Origin ID";
67
68
69// Profile properties
70
71const QString PROF_SYNC_TRANSPORT = "Sync Transport";
72const QString PROF_SYNC_PROTOCOL = "Sync Protocol";
73
74const QString HTTP_TRANSPORT = "HTTP";
75const QString OBEX_TRANSPORT = "OBEX";
76
77const QString PROF_HTTP_PROXY_HOST = "http_proxy_host";
78const QString PROF_HTTP_PROXY_PORT = "http_proxy_port";
79
80const QString PROF_BT_ADDRESS = "bt_address";
81const QString PROF_REMOTE_ADDRESS = "remote_id";
82const QString PROF_BT_UUID = "bt_uuid";
83
84const QString PROF_REMOTE_URI = "Remote database";
85const QString PROF_USE_WBXML = "use_wbxml";
86
87const QString PROF_PASSWD = "Password";
88const QString PROF_USERID = "Username";
89
90const QString SYNCML11 = "SyncML11";
91const QString SYNCML12 = "SyncML12";
92
93const QString PROF_HTTP_XHEADERS = "http_xheaders";
94
95
96Q_DECLARE_LOGGING_CATEGORY(lcSyncMLPlugin)
97
98
99#endif // SYNCMLCOMMON_H