summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncmanager.h
authorulf69 <ulf69>2004-10-01 00:04:23 (UTC)
committer ulf69 <ulf69>2004-10-01 00:04:23 (UTC)
commit3138ae138248637d901528ee5d6cfc894b0ed7c2 (patch) (unidiff)
tree86ec7eb64285edbdb063a30242b5d589d33ec948 /libkdepim/ksyncmanager.h
parent18133bd2cce41a83dab0f2feee01b7b3edd189dd (diff)
downloadkdepimpi-3138ae138248637d901528ee5d6cfc894b0ed7c2.zip
kdepimpi-3138ae138248637d901528ee5d6cfc894b0ed7c2.tar.gz
kdepimpi-3138ae138248637d901528ee5d6cfc894b0ed7c2.tar.bz2
initial revision of a globalized syncmanager that can be used by all apps
Diffstat (limited to 'libkdepim/ksyncmanager.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncmanager.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/libkdepim/ksyncmanager.h b/libkdepim/ksyncmanager.h
new file mode 100644
index 0000000..d7c2a02
--- a/dev/null
+++ b/libkdepim/ksyncmanager.h
@@ -0,0 +1,68 @@
1/*
2 This file is part of KDE-Pim/Pi.
3 Copyright (c) 2004 Ulf Schenk
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA.
19
20$Id$
21*/
22#ifndef _KSYNCMANAGER_H
23#define _KSYNCMANAGER_H
24
25#include <qstring.h>
26
27class QPopupMenu;
28class KSyncProfile;
29
30
31
32class KSyncManager
33{
34
35 public:
36 KSyncManager(TargetApp ta, QPopupMenu* syncmenu);
37 ~KSyncManager() ;
38
39 enum TargetApp {
40 KOPI = 0,
41 KAPI = 1,
42 PWMPI = 2 };
43
44 private:
45 void fillSyncMenu();
46 void syncLocalFile();
47 bool syncWithFile( QString fn , bool quick );
48 void quickSyncLocalFile();
49 void multiSync( bool askforPrefs );
50 int ringSync();
51 void syncRemote( KSyncProfile* prof, bool ask);
52 void edit_sync_options();
53 QString getPassword();
54
55 private:
56 QPopupMenu* mSyncMenu;
57 TargetApp mTargetApp;
58
59
60
61
62
63
64
65
66};
67
68#endif