#include <attachment.h>
Public Types | |
| typedef ListBase< Attachment > | List |
Public Member Functions | |
| Attachment (const Attachment &attachment) | |
| Attachment (const TQString &uri, const TQString &mime=TQString()) | |
| Attachment (const char *base64, const TQString &mime=TQString()) | |
| 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.
Member Typedef Documentation
◆ List
| typedef ListBase<Attachment> KCal::Attachment::List |
Definition at line 37 of file attachment.h.
Constructor & Destructor Documentation
◆ Attachment() [1/3]
| 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() [2/3]
| Attachment::Attachment | ( | const TQString & | uri, |
| const TQString & | mime = TQString() |
||
| ) |
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() [3/3]
| Attachment::Attachment | ( | const char * | base64, |
| const TQString & | mime = TQString() |
||
| ) |
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.
◆ ~Attachment()
| Attachment::~Attachment | ( | ) |
Definition at line 60 of file attachment.cpp.
Member Function Documentation
◆ data()
| char * Attachment::data | ( | ) | const |
Definition at line 90 of file attachment.cpp.
◆ decodedData()
| TQByteArray & Attachment::decodedData | ( | ) |
Definition at line 99 of file attachment.cpp.
◆ isBinary()
| bool Attachment::isBinary | ( | ) | const |
Definition at line 85 of file attachment.cpp.
◆ isLocal()
| bool Attachment::isLocal | ( | ) | const |
Returns the attachment "local" flag.
Definition at line 178 of file attachment.cpp.
◆ isUri()
| bool Attachment::isUri | ( | ) | const |
Definition at line 65 of file attachment.cpp.
◆ label()
| TQString Attachment::label | ( | ) | const |
Definition at line 168 of file attachment.cpp.
◆ mimeType()
| TQString Attachment::mimeType | ( | ) | const |
Definition at line 148 of file attachment.cpp.
◆ setData()
| void Attachment::setData | ( | const char * | base64 | ) |
Definition at line 127 of file attachment.cpp.
◆ setDecodedData()
| void Attachment::setDecodedData | ( | const TQByteArray & | data | ) |
Definition at line 114 of file attachment.cpp.
◆ setLabel()
| void Attachment::setLabel | ( | const TQString & | label | ) |
Definition at line 173 of file attachment.cpp.
◆ setLocal()
| 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.
◆ setMimeType()
| void Attachment::setMimeType | ( | const TQString & | mime | ) |
Definition at line 153 of file attachment.cpp.
◆ setShowInline()
| void Attachment::setShowInline | ( | bool | showinline | ) |
Definition at line 163 of file attachment.cpp.
◆ setUri()
| void Attachment::setUri | ( | const TQString & | uri | ) |
Definition at line 79 of file attachment.cpp.
◆ showInline()
| bool Attachment::showInline | ( | ) | const |
Definition at line 158 of file attachment.cpp.
◆ size()
| uint Attachment::size | ( | ) |
Definition at line 136 of file attachment.cpp.
◆ uri()
| TQString Attachment::uri | ( | ) | const |
Definition at line 70 of file attachment.cpp.
The documentation for this class was generated from the following files:
