author | llornkcor <llornkcor> | 2003-04-06 17:45:00 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2003-04-06 17:45:00 (UTC) |
commit | 70b1ff1a3f134d75d1539f269d52b34e6762684d (patch) (unidiff) | |
tree | 28c1b3d0c03e8c0188f014dfe094645d1ddfef5f /noncore/net/mailit/writemail.h | |
parent | 75e8f29020e267d1013a79839831035073b4eeae (diff) | |
download | opie-70b1ff1a3f134d75d1539f269d52b34e6762684d.zip opie-70b1ff1a3f134d75d1539f269d52b34e6762684d.tar.gz opie-70b1ff1a3f134d75d1539f269d52b34e6762684d.tar.bz2 |
move malit to head again, since it is working
Diffstat (limited to 'noncore/net/mailit/writemail.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mailit/writemail.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/noncore/net/mailit/writemail.h b/noncore/net/mailit/writemail.h new file mode 100644 index 0000000..dd12063 --- a/dev/null +++ b/noncore/net/mailit/writemail.h | |||
@@ -0,0 +1,91 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2001 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 WRITEMAIL_H | ||
21 | #define WRITEMAIL_H | ||
22 | |||
23 | #include <qmainwindow.h> | ||
24 | #include <qaction.h> | ||
25 | #include <qlabel.h> | ||
26 | #include <qtoolbar.h> | ||
27 | #include <qtoolbutton.h> | ||
28 | #include <qmenubar.h> | ||
29 | #include <qlayout.h> | ||
30 | #include <qlineedit.h> | ||
31 | #include <qmultilineedit.h> | ||
32 | #include <qlistview.h> | ||
33 | #include <qcombobox.h> | ||
34 | |||
35 | #include "emailhandler.h" | ||
36 | #include "addresslist.h" | ||
37 | #include "addatt.h" | ||
38 | |||
39 | class WriteMail : public QMainWindow | ||
40 | { | ||
41 | Q_OBJECT | ||
42 | |||
43 | public: | ||
44 | WriteMail( QWidget* parent, const char* name, WFlags fl = 0 ); | ||
45 | ~WriteMail(); | ||
46 | void reply(Email replyMail); | ||
47 | void setRecipient(const QString &recipient); | ||
48 | void setAddressList(AddressList *list); | ||
49 | |||
50 | signals: | ||
51 | void sendMailRequested(const Email &mail); | ||
52 | void cancelMail(); | ||
53 | |||
54 | public slots: | ||
55 | void getAddress(); | ||
56 | void attatchFile(); | ||
57 | void addRecipients(); | ||
58 | void newMail(); | ||
59 | void accept(); | ||
60 | void reject(); | ||
61 | |||
62 | private: | ||
63 | bool getRecipients(); | ||
64 | void init(); | ||
65 | |||
66 | Email mail; | ||
67 | AddAtt *addAtt; | ||
68 | AddressList *addressList; | ||
69 | bool showingAddressList; | ||
70 | |||
71 | QToolBar *bar; | ||
72 | QMenuBar *menu; | ||
73 | QPopupMenu *addMenu, *mailMenu; | ||
74 | QListView *addressView; | ||
75 | |||
76 | QToolButton *okButton; | ||
77 | QWidget *widget; | ||
78 | QAction *attatchButton; | ||
79 | QAction *confirmButton; | ||
80 | QAction *newButton; | ||
81 | QLabel* subjetLabel; | ||
82 | QToolButton* ToolButton13_2; | ||
83 | QComboBox* recipientsBox; | ||
84 | QLineEdit *subjectInput; | ||
85 | QLineEdit *toInput; | ||
86 | QToolButton* addressButton; | ||
87 | QMultiLineEdit* emailInput; | ||
88 | QGridLayout* grid; | ||
89 | }; | ||
90 | |||
91 | #endif // WRITEMAIL_H | ||