libkcal

KCal::Attachment Class Reference

#include <attachment.h>

Public Types

typedef ListBase< AttachmentList
 

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.

Constructor & Destructor Documentation

◆ Attachment() [1/3]

Attachment::Attachment ( const Attachment attachment)

Create a Reference to some URI by copying an existing Attachment.

Parameters
attachmentthe 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
urithe uri this attachment refers to
mimethe 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
base64the attachment in base64 format
mimethe mime type of the attachment

Definition at line 50 of file attachment.cpp.

Member Function Documentation

◆ isLocal()

bool Attachment::isLocal ( ) const

Returns the attachment "local" flag.

Definition at line 178 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
localis the flag to set (true) or unset (false) for the attachment "local" option.
See also
local()

Definition at line 183 of file attachment.cpp.


The documentation for this class was generated from the following files: