KCal Library
attachment.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00029 #ifndef KCAL_ATTACHMENT_H
00030 #define KCAL_ATTACHMENT_H
00031
00032 #include "listbase.h"
00033 #include "kcal_export.h"
00034
00035 #include <QtCore/QString>
00036
00037 namespace KCal {
00038
00057 class KCAL_EXPORT Attachment
00058 {
00059 public:
00063 typedef ListBase<Attachment> List;
00064
00071 explicit Attachment( const QString &uri, const QString &mime = QString() );
00072
00080 explicit Attachment( const char *base64, const QString &mime = QString() );
00081
00087 Attachment( const Attachment &attachment );
00088
00092 ~Attachment();
00093
00101 void setUri( const QString &uri );
00102
00108 QString uri() const;
00109
00115 bool isUri() const;
00116
00122 bool isBinary() const;
00123
00131 void setData( const char *base64 );
00132
00139 char *data() const;
00140
00148 void setDecodedData( const QByteArray &data );
00149
00156 QByteArray &decodedData() const;
00157
00163 uint size() const;
00164
00172 void setMimeType( const QString &mime );
00173
00179 QString mimeType() const;
00180
00190 void setShowInline( bool showinline );
00191
00197 bool showInline() const;
00198
00207 void setLabel( const QString &label );
00208
00212 QString label() const;
00213
00223 void setLocal( bool local );
00224
00228 bool isLocal() const;
00229
00234 bool operator==( const Attachment &a2 ) const;
00235
00240 bool operator!=( const Attachment &a2 ) const;
00241
00242 private:
00243
00244 class Private;
00245 Private *const d;
00246
00247 };
00248
00249 }
00250
00251 #endif