author | zautrix <zautrix> | 2004-09-18 18:46:29 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-18 18:46:29 (UTC) |
commit | ec8099bf369e5b8327ca6cfd78b34366353e3abf (patch) (unidiff) | |
tree | 551c515124f7b1c47b2860803efa3922f494f938 /kabc/addresseeview.h | |
parent | 3f16c7aa0ab6badf304c537a6981ece743138821 (diff) | |
download | kdepimpi-ec8099bf369e5b8327ca6cfd78b34366353e3abf.zip kdepimpi-ec8099bf369e5b8327ca6cfd78b34366353e3abf.tar.gz kdepimpi-ec8099bf369e5b8327ca6cfd78b34366353e3abf.tar.bz2 |
More AB sync
-rw-r--r-- | kabc/addresseeview.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/kabc/addresseeview.h b/kabc/addresseeview.h index 1865fc4..689d997 100644 --- a/kabc/addresseeview.h +++ b/kabc/addresseeview.h | |||
@@ -1,60 +1,78 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkdepim. | 2 | This file is part of libkdepim. |
3 | 3 | ||
4 | Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> | 4 | Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> |
5 | 5 | ||
6 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU Library General Public | 7 | modify it under the terms of the GNU Library General Public |
8 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either |
9 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. |
10 | 10 | ||
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Library General Public License for more details. | 14 | Library General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License |
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to |
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | Boston, MA 02111-1307, USA. | 19 | Boston, MA 02111-1307, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #ifndef KPIM_ADDRESSEEVIEW_H | 22 | #ifndef KPIM_ADDRESSEEVIEW_H |
23 | #define KPIM_ADDRESSEEVIEW_H | 23 | #define KPIM_ADDRESSEEVIEW_H |
24 | 24 | ||
25 | #include <kabc/addressee.h> | 25 | #include <kabc/addressee.h> |
26 | #include <kdialogbase.h> | ||
26 | 27 | ||
27 | //US #include <ktextbrowser.h> | 28 | //US #include <ktextbrowser.h> |
28 | #include <qtextbrowser.h> | 29 | #include <qtextbrowser.h> |
29 | 30 | ||
30 | namespace KPIM { | 31 | namespace KPIM { |
31 | 32 | ||
32 | //US class AddresseeView : public KTextBrowser | 33 | //US class AddresseeView : public KTextBrowser |
33 | class AddresseeView : public QTextBrowser | 34 | class AddresseeView : public QTextBrowser |
34 | { | 35 | { |
35 | public: | 36 | public: |
36 | AddresseeView( QWidget *parent = 0, const char *name = 0 ); | 37 | AddresseeView( QWidget *parent = 0, const char *name = 0 ); |
37 | 38 | ||
38 | /** | 39 | /** |
39 | Sets the addressee object. The addressee is displayed immediately. | 40 | Sets the addressee object. The addressee is displayed immediately. |
40 | 41 | ||
41 | @param addr The addressee object. | 42 | @param addr The addressee object. |
42 | */ | 43 | */ |
43 | void setAddressee( const KABC::Addressee& addr ); | 44 | void setAddressee( const KABC::Addressee& addr ); |
44 | void setSource(const QString& n); | 45 | void setSource(const QString& n); |
45 | /** | 46 | /** |
46 | Returns the current addressee object. | 47 | Returns the current addressee object. |
47 | */ | 48 | */ |
48 | KABC::Addressee addressee() const; | 49 | KABC::Addressee addressee() const; |
49 | 50 | ||
50 | private: | 51 | private: |
51 | KABC::Addressee mAddressee; | 52 | KABC::Addressee mAddressee; |
52 | QString mText; | 53 | QString mText; |
53 | void addTag(const QString & tag,const QString & text); | 54 | void addTag(const QString & tag,const QString & text); |
54 | class AddresseeViewPrivate; | 55 | class AddresseeViewPrivate; |
55 | AddresseeViewPrivate *d; | 56 | AddresseeViewPrivate *d; |
56 | }; | 57 | }; |
58 | class AddresseeChooser : public KDialogBase | ||
59 | { | ||
60 | Q_OBJECT | ||
61 | |||
62 | public: | ||
63 | AddresseeChooser( KABC::Addressee loc, KABC::Addressee rem, bool takeloc, QWidget *parent = 0, const char *name = 0 ); | ||
64 | |||
65 | int executeD( bool local ); | ||
66 | |||
67 | private: | ||
68 | int mSyncResult; | ||
69 | |||
70 | private slots: | ||
71 | void slot_remote(); | ||
72 | void slot_local(); | ||
73 | |||
74 | }; | ||
57 | 75 | ||
58 | } | 76 | } |
59 | 77 | ||
60 | #endif | 78 | #endif |