kmail
KMMsgPartDialog Class Reference
GUI for KMMsgPartDialog. More...
#include <kmmsgpartdlg.h>
Public Types | |
enum | Encoding { None = 0x00, SevenBit = 0x01, EightBit = 0x02, QuotedPrintable = 0x04, Base64 = 0x08 } |
Public Member Functions | |
QString | description () const |
Encoding | encoding () const |
QString | fileName () const |
bool | isEncrypted () const |
bool | isInline () const |
bool | isSigned () const |
KMMsgPartDialog (const QString &caption=QString::null, QWidget *parent=0, const char *name=0) | |
QString | mimeType () const |
void | setCanEncrypt (bool enable) |
void | setCanSign (bool enable) |
void | setDescription (const QString &description) |
void | setEncoding (Encoding encoding) |
void | setEncrypted (bool encrypted) |
void | setFileName (const QString &fileName) |
void | setInline (bool inlined) |
void | setMimeType (const QString &mimeType) |
void | setMimeType (const QString &type, const QString &subtype) |
void | setMimeTypeList (const QStringList &mimeTypes) |
void | setShownEncodings (int encodings) |
void | setSigned (bool sign) |
void | setSize (KIO::filesize_t size, bool estimated=false) |
virtual | ~KMMsgPartDialog () |
Protected Slots | |
void | slotMimeTypeChanged (const QString &mimeType) |
Protected Attributes | |
QLineEdit * | mDescription |
QComboBox * | mEncoding |
QCheckBox * | mEncrypted |
QLineEdit * | mFileName |
QStringList | mI18nizedEncodings |
QLabel * | mIcon |
QCheckBox * | mInline |
KComboBox * | mMimeType |
QCheckBox * | mSigned |
QLabel * | mSize |
Detailed Description
GUI for KMMsgPartDialog.
Definition at line 39 of file kmmsgpartdlg.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
KMMsgPartDialog::KMMsgPartDialog | ( | const QString & | caption = QString::null , |
|
QWidget * | parent = 0 , |
|||
const char * | name = 0 | |||
) |
Definition at line 46 of file kmmsgpartdlg.cpp.
KMMsgPartDialog::~KMMsgPartDialog | ( | ) | [virtual] |
Definition at line 190 of file kmmsgpartdlg.cpp.
Member Function Documentation
QString KMMsgPartDialog::description | ( | ) | const |
Returns the content of the Content-Description header field.
This field is only informational.
Definition at line 236 of file kmmsgpartdlg.cpp.
KMMsgPartDialog::Encoding KMMsgPartDialog::encoding | ( | ) | const |
QString KMMsgPartDialog::fileName | ( | void | ) | const |
Returns the current file name of the attachment.
Note that this doesn't define which file is being attached. It only defines what the attachment's filename parameter should contain.
Definition at line 228 of file kmmsgpartdlg.cpp.
bool KMMsgPartDialog::isEncrypted | ( | ) | const |
Returns whether or not this attachment is or shall be encrypted.
Definition at line 285 of file kmmsgpartdlg.cpp.
bool KMMsgPartDialog::isInline | ( | ) | const |
Returns true if the attchment has a content-disposition of "inline", false otherwise.
Definition at line 277 of file kmmsgpartdlg.cpp.
bool KMMsgPartDialog::isSigned | ( | ) | const |
Returns whether or not this attachment is or shall be signed.
Definition at line 297 of file kmmsgpartdlg.cpp.
QString KMMsgPartDialog::mimeType | ( | ) | const |
void KMMsgPartDialog::setCanEncrypt | ( | bool | enable | ) |
Sets whether or not this attachment can be encrypted.
Definition at line 293 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setCanSign | ( | bool | enable | ) |
void KMMsgPartDialog::setDescription | ( | const QString & | description | ) |
Sets the description of the attachment, ie.
the content of the Content-Description header field.
Definition at line 240 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setEncoding | ( | Encoding | encoding | ) |
void KMMsgPartDialog::setEncrypted | ( | bool | encrypted | ) |
Sets whether or not this attachment is or should be encrypted.
Definition at line 289 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setFileName | ( | const QString & | fileName | ) |
Sets the file name of the attachment.
Note that this doesn't define which file is being attached. It only defines what the attachment's filename parameter should contain.
Definition at line 232 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setInline | ( | bool | inlined | ) |
Sets whether this attachment has a content-disposition of "inline".
Definition at line 281 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setMimeType | ( | const QString & | mimeType | ) |
This is an overloaded member function, provided for convenience.
It behaves essentially like the above function.
Sets the mime type to be displayed, but only if mimeType
passes KMimeTypeValidator's test.
Definition at line 197 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setMimeTypeList | ( | const QStringList & | mimeTypes | ) |
Sets the initial list of mime types to be displayed in the combobox.
The items are not validated.
Definition at line 216 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setShownEncodings | ( | int | encodings | ) |
Sets the list of encodings to be shown.
encodings
is the bitwise OR of Encoding flags
Definition at line 270 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setSigned | ( | bool | sign | ) |
Sets whether or not this attachment is or should be signed.
Definition at line 301 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::setSize | ( | KIO::filesize_t | size, | |
bool | estimated = false | |||
) |
Sets the size of the file to be attached in bytes.
This is strictly informational and thus can't be queried. If approx
is true, the size is an estimation based on typical
Definition at line 220 of file kmmsgpartdlg.cpp.
void KMMsgPartDialog::slotMimeTypeChanged | ( | const QString & | mimeType | ) | [protected, slot] |
Definition at line 309 of file kmmsgpartdlg.cpp.
Member Data Documentation
QLineEdit* KMMsgPartDialog::mDescription [protected] |
Definition at line 129 of file kmmsgpartdlg.h.
QComboBox* KMMsgPartDialog::mEncoding [protected] |
Definition at line 130 of file kmmsgpartdlg.h.
QCheckBox* KMMsgPartDialog::mEncrypted [protected] |
Definition at line 132 of file kmmsgpartdlg.h.
QLineEdit* KMMsgPartDialog::mFileName [protected] |
Definition at line 128 of file kmmsgpartdlg.h.
QStringList KMMsgPartDialog::mI18nizedEncodings [protected] |
Definition at line 134 of file kmmsgpartdlg.h.
QLabel* KMMsgPartDialog::mIcon [protected] |
Definition at line 126 of file kmmsgpartdlg.h.
QCheckBox* KMMsgPartDialog::mInline [protected] |
Definition at line 131 of file kmmsgpartdlg.h.
KComboBox* KMMsgPartDialog::mMimeType [protected] |
Definition at line 125 of file kmmsgpartdlg.h.
QCheckBox* KMMsgPartDialog::mSigned [protected] |
Definition at line 133 of file kmmsgpartdlg.h.
QLabel* KMMsgPartDialog::mSize [protected] |
Definition at line 127 of file kmmsgpartdlg.h.
The documentation for this class was generated from the following files: