HarmattanSyncApplications
definitions.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 DEFINITIONS_HEADER_4089094908098437549308790580985
25#define DEFINITIONS_HEADER_4089094908098437549308790580985
26
27#include <QDate>
28#include <QString>
29
30const QString DEFAULT_NOTEBOOK_NAME = "myNotebook";
31const QString BACKEND_DATABASE = "organizer.db";
32
33//The storage expect this property from outside. If no name is specified, it
34// will use DEFAULT_NOTEBOOK_NAME.
35const QString NOTEBOOKNAME = "Notebook Name";
36
37//The storage expect this property from outside. If no format is specified
38// the storage will use CALENDAR_FORMAT_VCAL.
39const QString CALENDAR_FORMAT = "Calendar Format";
40
41//Possible values of calendar format are CALENDAR_FORMAT_VCAL
42// and CALENDAR_FORMAT_ICAL
43const QString CALENDAR_FORMAT_VCAL = "vcalendar";
44const QString CALENDAR_FORMAT_ICAL = "icalendar";
45
46//The incidences before this date wont be considered for sync
47const QDate OLDESTDATE(1970,01,01);
48
49// Calendar incidence types. Needed for filtering purposes.
50#define CalendarIncidenceType QString
51const CalendarIncidenceType INCIDENDE_TYPE_ALL = "";
52const CalendarIncidenceType INCIDENCE_TYPE_JOURNAL = "Journal";
53const CalendarIncidenceType INCIDENCE_TYPE_EVENT = "Event";
54const CalendarIncidenceType INCIDENCE_TYPE_TODO = "Todo";
55
56#endif //DEFINITIONS_HEADER_4089094908098437549308790580985