blob: 856c5dbf258bb818cb1e5f640d9b9446980ab660 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
//
// C++ Interface: showmaildialog
//
// Description:
//
//
// Author: Ulrich Weigelt <ulrich.weigelt@gmx.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SHOWMAILDIALOG_H
#define SHOWMAILDIALOG_H
//QT headers
#include <tqlayout.h>
#include <tqlabel.h>
//KDE headers
#include <tdelocale.h>
#include <kdialogbase.h>
#include <klineedit.h>
#include <kdebug.h>
#include <ktextbrowser.h>
#include <kurl.h>
#include <tdeapplication.h>
//KShowmail headers
#include "constants.h"
/**
* This dialog is used in ConfigElem to show a downloaded mail.
*
* @author Ulrich Weigelt <ulrich.weigelt@gmx.de>
*/
class ShowMailDialog : public KDialogBase
{
Q_OBJECT
public:
/**
* generic constructor
* @param parent parent of the dialog
* @param caption the dialog caption
* @param allowHTML TRUE - allow the dialog to use the HTML in the mail body; FALSE - don't allow
* @param sender mail sender
* @param date date of send
* @param size mail size
* @param subject mail subject
* @param body mail body
*/
ShowMailDialog( TQWidget* parent, TQString& caption, bool allowHTML, TQString& sender, TQString& date, TQString& size, TQString& subject, TQString& body );
/**
* Destructor
*/
~ShowMailDialog();
private:
/**
* mail subject
* Stored by constructor and used by slotUser1.
*/
TQString m_subject;
/**
* mail body
* Stored by constructor and used by slotUser1.
*/
TQString m_body;
/**
* mail sender
* Stored by constructor and used by slotUser1.
*/
TQString m_sender;
/**
* Overloaded methode of KDialogBase.
* Will be invoked, when reply button was clicked.
* Starts the composer of the preset mail application which contains
* the necessary data for a reply.
*/
void slotUser1();
};
#endif
|