summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/writemail.h
Unidiff
Diffstat (limited to 'noncore/unsupported/mailit/writemail.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/mailit/writemail.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/noncore/unsupported/mailit/writemail.h b/noncore/unsupported/mailit/writemail.h
new file mode 100644
index 0000000..dd12063
--- a/dev/null
+++ b/noncore/unsupported/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
39class WriteMail : public QMainWindow
40{
41 Q_OBJECT
42
43public:
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
50signals:
51 void sendMailRequested(const Email &mail);
52 void cancelMail();
53
54public slots:
55 void getAddress();
56 void attatchFile();
57 void addRecipients();
58 void newMail();
59 void accept();
60 void reject();
61
62private:
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