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