attachment.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef KCAL_ATTACHMENT_H
00022
#define KCAL_ATTACHMENT_H
00023
00024
#include "listbase.h"
00025
00026
#include <qstring.h>
00027
00028
namespace KCal {
00029
00033 class Attachment
00034 {
00035
public:
00036
typedef ListBase<Attachment> List;
00037
00043
Attachment(
const Attachment &attachment );
00044
00051
Attachment(
const QString &uri,
const QString &mime = QString::null );
00052
00059
Attachment(
const char *base64,
const QString &mime = QString::null );
00060
00061
00062
bool isUri()
const;
00063
QString uri()
const;
00064
void setUri(
const QString &uri );
00065
00066
bool isBinary()
const;
00067
char *data()
const;
00068
void setData(
const char *base64 );
00069
00070
00071
QString mimeType()
const;
00072
void setMimeType(
const QString &mime );
00073
00074
private:
00075
QString mMimeType;
00076
QString mData;
00077
bool mBinary;
00078
00079
class Private;
00080 Private *d;
00081 };
00082
00083 }
00084
00085
#endif
This file is part of the documentation for libkcal Library Version 3.3.0.