KCal Library
attachment.h
Go to the documentation of this file.
00001 /* 00002 This file is part of the kcal library. 00003 00004 Copyright (c) 2002 Michael Brade <brade@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 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_DEPRECATED 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 //@cond PRIVATE 00244 class Private; 00245 Private *const d; 00246 //@endcond 00247 }; 00248 00249 } 00250 00251 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 05:05:29 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 14 2012 05:05:29 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.