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 MailItWindow_H 00021 #define MailItWindow_H 00022 00023 #include <qmainwindow.h> 00024 #include <qwidgetstack.h> 00025 #include <qevent.h> 00026 //#include <qlayout.h> 00027 #include "emailclient.h" 00028 #include "writemail.h" 00029 #include "readmail.h" 00030 #include "addresslist.h" 00031 00032 class MailItWindow: public QMainWindow 00033 { 00034 Q_OBJECT 00035 public: 00036 static QString appName() { return QString::fromLatin1("mailit"); } 00037 MailItWindow(QWidget *parent = 0, const char *name = 0, WFlags fl = 0); 00038 ~MailItWindow(); 00039 00040 signals: 00041 public slots: 00042 void compose(); 00043 void composeReply(Email &, bool&); 00044 void composeForward(Email &); 00045 void showEmailClient(); 00046 void viewMail(QListView *, Email *mail); 00047 void updateMailView(Email *mail); 00048 void closeEvent(QCloseEvent *e); 00049 void updateCaption(const QString &); 00050 void setDocument(const QString &); 00051 /*void reply(Email&); 00052 void replyAll(Email&); 00053 void forward(Email&); 00054 void remove(Email&);*/ 00055 00056 private: 00057 EmailClient *emailClient; 00058 WriteMail *writeMail; 00059 ReadMail *readMail; 00060 QWidgetStack *views; 00061 QString currentCaption; 00062 bool viewingMail; 00063 }; 00064 00065 #endif
1.4.2