author | ulf69 <ulf69> | 2004-06-30 21:59:48 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-06-30 21:59:48 (UTC) |
commit | 2de4aeb0272fa7d96a55332196a11e52b2f27539 (patch) (unidiff) | |
tree | d455673832ac53a085cd3f280f60c11d12d45f83 /kaddressbook/xxportobject.h | |
parent | e0e3d743a6b61eaac023c9f284362ab08337da05 (diff) | |
download | kdepimpi-2de4aeb0272fa7d96a55332196a11e52b2f27539.zip kdepimpi-2de4aeb0272fa7d96a55332196a11e52b2f27539.tar.gz kdepimpi-2de4aeb0272fa7d96a55332196a11e52b2f27539.tar.bz2 |
preparations for dynamic import/export module loading
-rw-r--r-- | kaddressbook/xxportobject.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/kaddressbook/xxportobject.h b/kaddressbook/xxportobject.h index d697700..fddc219 100644 --- a/kaddressbook/xxportobject.h +++ b/kaddressbook/xxportobject.h | |||
@@ -27,27 +27,25 @@ Copyright (c) 2004 Ulf Schenk | |||
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef XXPORTOBJECT_H | 31 | #ifndef XXPORTOBJECT_H |
32 | #define XXPORTOBJECT_H | 32 | #define XXPORTOBJECT_H |
33 | 33 | ||
34 | #include <qobject.h> | 34 | #include <qobject.h> |
35 | 35 | ||
36 | #include <kabc/addressbook.h> | 36 | #include <kabc/addressbook.h> |
37 | #include <kabc/addresseelist.h> | 37 | #include <kabc/addresseelist.h> |
38 | #include <kxmlguiclient.h> | 38 | #include <kxmlguiclient.h> |
39 | #ifndef KAB_EMBEDDED | ||
40 | #include <klibloader.h> | 39 | #include <klibloader.h> |
41 | #endif //KAB_EMBEDDED | ||
42 | 40 | ||
43 | 41 | ||
44 | class XXPortObject : public QObject, virtual public KXMLGUIClient | 42 | class XXPortObject : public QObject, virtual public KXMLGUIClient |
45 | { | 43 | { |
46 | Q_OBJECT | 44 | Q_OBJECT |
47 | 45 | ||
48 | public: | 46 | public: |
49 | XXPortObject( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); | 47 | XXPortObject( KABC::AddressBook *ab, QWidget *parent, const char *name = 0 ); |
50 | ~XXPortObject(); | 48 | ~XXPortObject(); |
51 | 49 | ||
52 | /** | 50 | /** |
53 | Returns the unique identifier of this xxport modul, it should | 51 | Returns the unique identifier of this xxport modul, it should |
@@ -113,45 +111,27 @@ class XXPortObject : public QObject, virtual public KXMLGUIClient | |||
113 | private slots: | 111 | private slots: |
114 | void slotImportActivated( const QString& ); | 112 | void slotImportActivated( const QString& ); |
115 | void slotExportActivated( const QString& ); | 113 | void slotExportActivated( const QString& ); |
116 | 114 | ||
117 | private: | 115 | private: |
118 | KABC::AddressBook *mAddressBook; | 116 | KABC::AddressBook *mAddressBook; |
119 | QWidget *mParentWidget; | 117 | QWidget *mParentWidget; |
120 | 118 | ||
121 | class XXPortObjectPrivate; | 119 | class XXPortObjectPrivate; |
122 | XXPortObjectPrivate *d; | 120 | XXPortObjectPrivate *d; |
123 | }; | 121 | }; |
124 | 122 | ||
125 | #ifndef KAB_EMBEDDED | ||
126 | class XXPortFactory : public KLibFactory | 123 | class XXPortFactory : public KLibFactory |
127 | { | 124 | { |
128 | public: | 125 | public: |
129 | virtual XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, | 126 | virtual XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, |
130 | const char *name = 0 ) = 0; | 127 | const char *name = 0 ) = 0; |
131 | 128 | ||
132 | protected: | 129 | protected: |
133 | virtual QObject* createObject( QObject*, const char*, const char*, | 130 | virtual QObject* createObject( QObject*, const char*, const char*, |
134 | const QStringList & ) | 131 | const QStringList & ) |
135 | { | 132 | { |
136 | return 0; | 133 | return 0; |
137 | } | 134 | } |
138 | }; | 135 | }; |
139 | 136 | ||
140 | #else //KAB_EMBEDDED | ||
141 | class XXPortFactory | ||
142 | { | ||
143 | public: | ||
144 | virtual XXPortObject *xxportObject( KABC::AddressBook *ab, QWidget *parent, | ||
145 | const char *name = 0 ) = 0; | ||
146 | |||
147 | protected: | ||
148 | virtual QObject* createObject( QObject*, const char*, const char*, | ||
149 | const QStringList & ) | ||
150 | { | ||
151 | return 0; | ||
152 | } | ||
153 | }; | ||
154 | #endif //KAB_EMBEDDED | ||
155 | |||
156 | |||
157 | #endif | 137 | #endif |