summaryrefslogtreecommitdiff
path: root/core/pim/addressbook/addressbook.h
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /core/pim/addressbook/addressbook.h
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
Diffstat (limited to 'core/pim/addressbook/addressbook.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.h99
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
25class AbEditor;
26class AbLabel;
27class AbTable;
28class QPEToolBar;
29class QPopupMenu;
30class QToolButton;
31class QDialog;
32class Ir;
33class QAction;
34
35class AddressbookWindow: public QMainWindow
36{
37 Q_OBJECT
38public:
39 AddressbookWindow( QWidget *parent = 0, const char *name = 0, WFlags f = 0 );
40 ~AddressbookWindow();
41
42protected:
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
52public slots:
53 void flush();
54 void reload();
55 void appMessage(const QCString &, const QByteArray &);
56 void setDocument( const QString & );
57
58private 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
74private:
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