Bumped copyright dates for 2013
[barry.git] / desktop / src / ostypes.h
blob632c1718d82c3d7068b9cd4ed7e0db16ed2b587b
1 ///
2 /// \file ostypes.h
3 /// Low level types for os wrapper library
4 ///
6 /*
7 Copyright (C) 2011-2013, Net Direct Inc. (http://www.netdirect.ca/)
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License in the COPYING file at the
19 root directory of this project for more details.
22 #ifndef __BARRYDESKTOP_OSTYPES_H__
23 #define __BARRYDESKTOP_OSTYPES_H__
25 #include <string>
27 // Bitmap field, determining what sync types are supported
28 // PST = Plugin Sync Type
29 #define PST_NONE 0x00
30 #define PST_CONTACTS 0x01
31 #define PST_EVENTS 0x02
32 #define PST_NOTES 0x04
33 #define PST_TODOS 0x08
34 #define PST_ALL 0x0f
35 #define PST_DO_NOT_SET 0x10000000 // used by the engine to signal
36 // an attempt to run without
37 // specifying supported types...
38 // i.e. just run with default
39 // efforts
41 namespace OpenSync { namespace Config {
43 typedef unsigned int pst_type;
45 // Handy conversion functions
46 pst_type PSTString2Type(const std::string &pst_string);
47 std::string PSTType2String(pst_type types);
51 #endif