Diffstat (limited to 'core/pim/addressbook/addressbook.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/addressbook/addressbook.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/core/pim/addressbook/addressbook.h b/core/pim/addressbook/addressbook.h new file mode 100644 index 0000000..9694465 --- a/dev/null +++ b/core/pim/addressbook/addressbook.h | |||
@@ -0,0 +1,99 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qt Palmtop Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef Addressbook_H | ||
21 | #define Addressbook_H | ||
22 | |||
23 | #include <qmainwindow.h> | ||
24 | |||
25 | class AbEditor; | ||
26 | class AbLabel; | ||
27 | class AbTable; | ||
28 | class QPEToolBar; | ||
29 | class QPopupMenu; | ||
30 | class QToolButton; | ||
31 | class QDialog; | ||
32 | class Ir; | ||
33 | class QAction; | ||
34 | |||
35 | class AddressbookWindow: public QMainWindow | ||
36 | { | ||
37 | Q_OBJECT | ||
38 | public: | ||
39 | AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); | ||
40 | ~AddressbookWindow(); | ||
41 | |||
42 | protected: | ||
43 | void resizeEvent( QResizeEvent * e ); | ||
44 | void showList(); | ||
45 | void showView(); | ||
46 | enum EntryMode { NewEntry=0, EditEntry }; | ||
47 | void editPersonal(); | ||
48 | void editEntry( EntryMode ); | ||
49 | void closeEvent( QCloseEvent *e ); | ||
50 | bool save(); | ||
51 | |||
52 | public slots: | ||
53 | void flush(); | ||
54 | void reload(); | ||
55 | void appMessage(const QCString &, const QByteArray &); | ||
56 | void setDocument( const QString & ); | ||
57 | |||
58 | private slots: | ||
59 | void slotListNew(); | ||
60 | void slotListView(); | ||
61 | void slotListDelete(); | ||
62 | void slotViewBack(); | ||
63 | void slotViewEdit(); | ||
64 | void slotPersonalView(); | ||
65 | void listIsEmpty( bool ); | ||
66 | void slotSettings(); | ||
67 | void writeMail(); | ||
68 | void slotBeam(); | ||
69 | void beamDone( Ir * ); | ||
70 | void slotFind(); | ||
71 | void slotSetCategory( int ); | ||
72 | void slotUpdateToolbar(); | ||
73 | |||
74 | private: | ||
75 | void initFields();// inititialize our fields... | ||
76 | AbLabel *abView(); | ||
77 | void populateCategories(); | ||
78 | |||
79 | QPopupMenu *catMenu; | ||
80 | QPEToolBar *listTools; | ||
81 | QToolButton *deleteButton; | ||
82 | QValueList<int> allFields, | ||
83 | orderedFields; | ||
84 | QStringList slOrderedFields; | ||
85 | enum Panes { paneList=0, paneView, paneEdit }; | ||
86 | AbEditor *abEditor; | ||
87 | AbLabel *mView; | ||
88 | AbTable *abList; | ||
89 | |||
90 | QAction *actionNew, *actionEdit, *actionTrash, *actionFind, *actionBeam, | ||
91 | *actionPersonal, *actionMail; | ||
92 | |||
93 | bool bAbEditFirstTime; | ||
94 | int viewMargin; | ||
95 | |||
96 | bool syncing; | ||
97 | }; | ||
98 | |||
99 | #endif | ||