Barry debian version 0.18.5-1
[barry.git] / desktop / src / osprivatebase.h
blobd971c6c590642177da28625cac5ff57e6e73258a
1 ///
2 /// \file osprivatebase.h
3 /// Base API class for OpenSync sync conflicts
4 /// This API will operate both 0.22 and 0.4x
5 ///
7 /*
8 Copyright (C) 2009-2013, Net Direct Inc. (http://www.netdirect.ca/)
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2 of the License, or
13 (at your option) any later version.
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 See the GNU General Public License in the COPYING file at the
20 root directory of this project for more details.
23 #ifndef __BARRYDESKTOP_OSPRIVATEBASE_H__
24 #define __BARRYDESKTOP_OSPRIVATEBASE_H__
26 #include <iosfwd>
27 #include <string>
29 namespace OpenSync {
31 class SyncConflictPrivateBase
33 public:
34 virtual ~SyncConflictPrivateBase() {}
36 virtual bool IsAbortSupported() const = 0;
37 virtual bool IsIgnoreSupported() const = 0;
38 virtual bool IsKeepNewerSupported() const = 0;
40 virtual void Select(int change_id) = 0;
41 virtual void Abort() = 0;
42 virtual void Duplicate() = 0;
43 virtual void Ignore() = 0;
44 virtual void KeepNewer() = 0;
47 class SyncSummaryPrivateBase
49 public:
50 virtual ~SyncSummaryPrivateBase() {}
52 virtual void Abort() = 0;
53 virtual void Continue() = 0;
58 #endif