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 Attachment &attachment) | |
Attachment (const TQString &uri, const TQString &mime=TQString::null) | |
Attachment (const char *base64, const TQString &mime=TQString::null) | |
bool | isUri () const |
TQString | uri () const |
void | setUri (const TQString &uri) |
bool | isBinary () const |
char * | data () const |
void | setData (const char *base64) |
void | setDecodedData (const TQByteArray &data) |
TQByteArray & | decodedData () |
uint | size () |
TQString | mimeType () const |
void | setMimeType (const TQString &mime) |
bool | showInline () const |
void | setShowInline (bool showinline) |
TQString | label () const |
void | setLabel (const TQString &label) |
void | setLocal (bool local) |
bool | isLocal () const |
Detailed Description
This class represents information related to an attachment.Definition at line 34 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 27 of file attachment.cpp.
Attachment::Attachment | ( | const TQString & | uri, | |
const TQString & | mime = TQString::null | |||
) |
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 39 of file attachment.cpp.
Attachment::Attachment | ( | const char * | base64, | |
const TQString & | mime = TQString::null | |||
) |
Create a binary attachment.
- Parameters:
-
base64 the attachment in base64 format mime the mime type of the attachment
Definition at line 50 of file attachment.cpp.
Member Function Documentation
void Attachment::setLocal | ( | bool | local | ) |
Sets the attachment "local" option, which is derived from the Calendar Incidence X-KONTACT-TYPE parameter.
- Parameters:
-
local is the flag to set (true) or unset (false) for the attachment "local" option.
- See also:
- local()
Definition at line 183 of file attachment.cpp.
bool Attachment::isLocal | ( | ) | const |
The documentation for this class was generated from the following files: