kaddressbook

xxportmanager.h
1/*
2 This file is part of KAddressbook.
3 Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program 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
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of TQt, and distribute the resulting executable,
21 without including the source code for TQt in the source distribution.
22*/
23
24#ifndef XXPORTMANAGER_H
25#define XXPORTMANAGER_H
26
27#include <tqdict.h>
28#include <tqobject.h>
29
30#include <kurl.h>
31
32#include <tdemacros.h>
33
34#include "xxport.h"
35
36namespace KAB {
37class Core;
38}
39
40class TDE_EXPORT XXPortManager : public TQObject
41{
42 TQ_OBJECT
43
44
45 public:
46 XXPortManager( KAB::Core *core, TQObject *parent, const char *name = 0 );
47 ~XXPortManager();
48
49 void restoreSettings();
50 void saveSettings();
51
52 static KURL importURL;
53 static TQString importData;
54
55 public slots:
56 void importVCard( const KURL &url );
57 void importVCardFromData( const TQString &vCard );
58
59 signals:
60 void modified();
61
62 protected slots:
63 void slotImport( const TQString&, const TQString& );
64 void slotExport( const TQString&, const TQString& );
65
66 private:
67 void loadPlugins();
68
69 TQDict<KAB::XXPort> mXXPortObjects;
70
71 KAB::Core *mCore;
72};
73
74#endif