Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

writemail.h

Go to the documentation of this file.
00001 /**********************************************************************
00002 ** Copyright (C) 2001 Trolltech AS.  All rights reserved.
00003 **
00004 ** This file is part of Qt Palmtop Environment.
00005 **
00006 ** This file may be distributed and/or modified under the terms of the
00007 ** GNU General Public License version 2 as published by the Free Software
00008 ** Foundation and appearing in the file LICENSE.GPL included in the
00009 ** packaging of this file.
00010 **
00011 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00012 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00013 **
00014 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00015 **
00016 ** Contact info@trolltech.com if any conditions of this licensing are
00017 ** not clear to you.
00018 **
00019 **********************************************************************/
00020 #ifndef WRITEMAIL_H
00021 #define WRITEMAIL_H
00022 
00023 #include <qmainwindow.h>
00024 #include <qaction.h>
00025 #include <qlabel.h>
00026 #include <qtoolbar.h>
00027 #include <qtoolbutton.h>
00028 #include <qmenubar.h>
00029 #include <qlayout.h>
00030 #include <qlineedit.h>
00031 #include <qmultilineedit.h>
00032 #include <qlistview.h>
00033 #include <qcombobox.h>
00034 
00035 #include "emailhandler.h"
00036 #include "addresslist.h"
00037 #include "addatt.h"
00038 
00039 class WriteMail : public QMainWindow
00040 { 
00041         Q_OBJECT
00042 
00043 public:
00044         WriteMail( QWidget* parent, const char* name, WFlags fl = 0 );
00045         ~WriteMail();
00046         void reply(Email replyMail, bool replyAll);
00047         void setRecipient(const QString &recipient);
00048         void setAddressList(AddressList *list);
00049         void forward(Email forwMail);
00050 
00051 signals:
00052         void sendMailRequested(const Email &mail);
00053         void cancelMail();
00054 
00055         
00056 public slots:
00057         void getAddress();
00058         void attachFile();
00059         void addRecipients();
00060         void newMail();
00061         void accept();
00062         void reject();
00063         void changeRecipients(int);
00064 
00065 private:
00066         bool getRecipients(bool);
00067         void init();
00068         void addRecipients(bool);
00069         
00070         Email mail;
00071         AddAtt *addAtt;
00072         AddressList *addressList;
00073         bool showingAddressList;
00074         
00075         QToolBar *bar;
00076         QMenuBar *menu;
00077         QPopupMenu *addMenu, *mailMenu;
00078         QListView *addressView;
00079         
00080         QToolButton *okButton;
00081         QWidget *widget;
00082         QAction *attachButton;
00083         QAction *confirmButton;
00084         QAction *newButton;
00085         QLabel* subjetLabel;
00086         QToolButton* ToolButton13_2;
00087         QComboBox* recipientsBox;
00088         QLineEdit *subjectInput;
00089         QLineEdit *toInput;
00090         QLineEdit *ccInput;
00091         QToolButton* addressButton;
00092         QMultiLineEdit* emailInput;
00093         QGridLayout* grid;
00094 };
00095 
00096 #endif // WRITEMAIL_H

Generated on Sat Nov 5 16:18:10 2005 for OPIE by  doxygen 1.4.2