libkcal
KCal::Attachment Class Reference
This class represents information related to an attachment. More...
#include <attachment.h>
Public Types | |
typedef ListBase< Attachment > | List |
Public Member Functions | |
Attachment (const char *base64, const QString &mime=QString::null) | |
Attachment (const QString &uri, const QString &mime=QString::null) | |
Attachment (const Attachment &attachment) | |
char * | data () const |
bool | isBinary () const |
bool | isUri () const |
QString | label () const |
QString | mimeType () const |
void | setData (const char *base64) |
void | setLabel (const QString &label) |
void | setMimeType (const QString &mime) |
void | setShowInline (bool showinline) |
void | setUri (const QString &uri) |
bool | showInline () const |
QString | uri () const |
Detailed Description
This class represents information related to an attachment.Definition at line 34 of file attachment.h.
Member Typedef Documentation
typedef ListBase<Attachment> KCal::Attachment::List |
Definition at line 37 of file attachment.h.
Constructor & Destructor Documentation
Attachment::Attachment | ( | const Attachment & | attachment | ) |
Create a Reference to some URI by copying an existing Attachment.
- Parameters:
-
attachment the attachment to be duplicated
Definition at line 26 of file attachment.cpp.
Create a Reference to some URI.
- Parameters:
-
uri the uri this attachment refers to mime the mime type of the resource being linked to
Definition at line 35 of file attachment.cpp.
Attachment::Attachment | ( | const char * | base64, | |
const QString & | mime = QString::null | |||
) |
Create a binary attachment.
- Parameters:
-
base64 the attachment in base64 format mime the mime type of the attachment
Definition at line 44 of file attachment.cpp.
Member Function Documentation
char * Attachment::data | ( | ) | const |
Definition at line 77 of file attachment.cpp.
bool Attachment::isBinary | ( | ) | const |
Definition at line 72 of file attachment.cpp.
bool Attachment::isUri | ( | ) | const |
Definition at line 53 of file attachment.cpp.
QString Attachment::label | ( | ) | const |
Definition at line 112 of file attachment.cpp.
QString Attachment::mimeType | ( | ) | const |
Definition at line 92 of file attachment.cpp.
void Attachment::setData | ( | const char * | base64 | ) |
Definition at line 86 of file attachment.cpp.
void Attachment::setLabel | ( | const QString & | label | ) |
Definition at line 117 of file attachment.cpp.
void Attachment::setMimeType | ( | const QString & | mime | ) |
Definition at line 97 of file attachment.cpp.
void Attachment::setShowInline | ( | bool | showinline | ) |
Definition at line 107 of file attachment.cpp.
void Attachment::setUri | ( | const QString & | uri | ) |
Definition at line 66 of file attachment.cpp.
bool Attachment::showInline | ( | ) | const |
Definition at line 102 of file attachment.cpp.
QString Attachment::uri | ( | ) | const |
Definition at line 58 of file attachment.cpp.
The documentation for this class was generated from the following files: