diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 460c52653ab0dcca6f19a4f492ed2c5e4e963ab0 (patch) | |
tree | 67208f7c145782a7e90b123b982ca78d88cc2c87 /korn/maildlg.h | |
download | tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.tar.gz tdepim-460c52653ab0dcca6f19a4f492ed2c5e4e963ab0.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'korn/maildlg.h')
-rw-r--r-- | korn/maildlg.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/korn/maildlg.h b/korn/maildlg.h new file mode 100644 index 000000000..0d222a706 --- /dev/null +++ b/korn/maildlg.h @@ -0,0 +1,82 @@ +#ifndef KornMailDlg_h +#define KornMailDlg_h + +#include<kdialogbase.h> +#include <keditcl.h> + +class KornMailSubject; +class KMailDrop; + +class QProgressDialog; +class QString; + +/** + * KornMailDlg shows the header and (if available) the body of a mail. + * If the mails body is not available a button allows the user to load it. + */ +class KornMailDlg : public KDialogBase +{ + Q_OBJECT + + /** + * Edit control showing the mail (read only) + */ + KEdit * _editCtrl; + + /** + * The mail to show + */ + KornMailSubject * _mailSubject; + + /** + * The mailbox which can load the mail fully + */ + KMailDrop * _mailDrop; + + /** + * Flag used during the load process. Set to true if the user clicks the cancel button. + */ + bool _loadMailCanceled; + + /** + * Progress bar + */ + QProgressDialog *_progress; +public: + /** + * KornMailDlg Constructor + * @param parent parent widget + */ + KornMailDlg( QWidget *parent=0 ); + + /** + * Set the mail details to show. The mails body is transfered to the edit control + * and the "Full Message" button is enabled, if the mail body is not available and + * if the mailbox can load the mail fully. + * @param mailDrop maibox which can load the mesage fully + * @param mailSubject mail to show + */ + void setMailSubject( KornMailSubject * mailSubject); + + /** + * KornMailDlg Destructor + */ + virtual ~KornMailDlg(); + +private: + void deleteProgress(); +private slots: + /** + * Slot triggered if the user presses the "Full Message" button + */ + void showFullMessage(); + + /** + * Slot triggered if the user canceles the message loading process + */ + void loadMailCanceled(); + + void readMailReady( QString* ); +}; + +#endif |