~renatofilho/buteo-sync-plugins-contacts/new-fw-version

« back to all changes in this revision

Viewing changes to google/GConfig.cpp

  • Committer: CI Train Bot
  • Author(s): Renato Araujo Oliveira Filho
  • Date: 2015-09-24 17:50:44 UTC
  • mfrom: (1.3.53 initial-vr)
  • Revision ID: ci-train-bot@canonical.com-20150924175044-rp0akjs0h1xwxmpj
Implemented buteo contacts sync plugin for google, heavily based on:
  - https://github.com/nemomobile-graveyard/buteo-sync-plugins-google
  - https://github.com/nemomobile/buteo-sync-plugins-social
Approved by: Michael Sheldon

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of buteo-sync-plugins-contacts package
 
3
 *
 
4
 * Copyright (C) 2013 Jolla Ltd. and/or its subsidiary(-ies).
 
5
 *               2015 Canonical Ltd
 
6
 *
 
7
 * Contributors: Sateesh Kavuri <sateesh.kavuri@gmail.com>
 
8
 *               Mani Chandrasekar <maninc@gmail.com>
 
9
 *               Renato Araujo Oliveira Filho <renato.filho@canonical.com>
 
10
 *
 
11
 * This library is free software; you can redistribute it and/or
 
12
 * modify it under the terms of the GNU Lesser General Public License
 
13
 * version 2.1 as published by the Free Software Foundation.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful, but
 
16
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
18
 * Lesser General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU Lesser General Public
 
21
 * License along with this library; if not, write to the Free Software
 
22
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 
23
 * 02110-1301 USA
 
24
 *
 
25
 */
 
26
 
 
27
#include "GConfig.h"
 
28
 
 
29
const int GConfig::MAX_RESULTS = 30;
 
30
const QString GConfig::SCOPE_URL = "https://www.google.com/m8/feeds/";
 
31
const QString GConfig::GCONTACT_URL = SCOPE_URL + "/contacts/default/";
 
32
 
 
33
const QString GConfig::GDATA_VERSION_TAG = "GData-Version";
 
34
const QString GConfig::GDATA_VERSION = "3.0";
 
35
const QString GConfig::G_DELETE_OVERRIDE_HEADER = "X-HTTP-Method-Override: DELETE";
 
36
const QString GConfig::G_ETAG_HEADER = "If-Match";
 
37
const QString GConfig::G_AUTH_HEADER = "Authorization";
 
38
 
 
39
/* Query parameters */
 
40
const QString GConfig::QUERY_TAG = "q";
 
41
const QString GConfig::MAX_RESULTS_TAG = "max-results";
 
42
const QString GConfig::START_INDEX_TAG = "start-index";
 
43
const QString GConfig::UPDATED_MIN_TAG = "updated-min";
 
44
const QString GConfig::ORDERBY_TAG = "orderby";
 
45
const QString GConfig::SHOW_DELETED_TAG = "showdeleted";
 
46
const QString GConfig::REQUIRE_ALL_DELETED = "requirealldeleted";
 
47
const QString GConfig::SORTORDER_TAG = "sortorder";
 
48
const QString GConfig::GROUP_MY_CONTACTS_ID = "6";
 
49
 
 
50
const QString GConfig::PHOTO_TAG = "photos";
 
51
const QString GConfig::MEDIA_TAG = "media";
 
52
const QString GConfig::BATCH_TAG = "batch";