libkcal

KCal::Attachment Class Reference

This class represents information related to an attachment. More...

#include <attachment.h>

List of all members.


Public Types

typedef ListBase< AttachmentList

Public Member Functions

 Attachment (const Attachment &attachment)
 Attachment (const QString &uri, const QString &mime=QString::null)
 Attachment (const char *base64, const QString &mime=QString::null)
bool isUri () const
QString uri () const
void setUri (const QString &uri)
bool isBinary () const
char * data () const
void setData (const char *base64)
void setDecodedData (const QByteArray &data)
QByteArray & decodedData ()
uint size ()
QString mimeType () const
void setMimeType (const QString &mime)
bool showInline () const
void setShowInline (bool showinline)
QString label () const
void setLabel (const QString &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 QString &  uri,
const QString &  mime = QString::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 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 50 of file attachment.cpp.


Member Function Documentation

bool Attachment::isLocal (  )  const

Returns the attachment "local" flag.

Definition at line 166 of file attachment.cpp.

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 171 of file attachment.cpp.


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