• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • kcal
attachment.h
Go to the documentation of this file.
1/*
2 This file is part of the kcal library.
3
4 Copyright (c) 2002 Michael Brade <brade@kde.org>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
29#ifndef KCAL_ATTACHMENT_H
30#define KCAL_ATTACHMENT_H
31
32#include "listbase.h"
33#include "kcal_export.h"
34
35#include <QtCore/QString>
36
37namespace KCal {
38
57class KCAL_DEPRECATED_EXPORT Attachment
58{
59 public:
63 typedef ListBase<Attachment> List;
64
71 explicit Attachment( const QString &uri, const QString &mime = QString() );
72
80 explicit Attachment( const char *base64, const QString &mime = QString() );
81
87 Attachment( const Attachment &attachment );
88
92 ~Attachment();
93
101 void setUri( const QString &uri );
102
108 QString uri() const;
109
115 bool isUri() const;
116
122 bool isBinary() const;
123
131 void setData( const char *base64 );
132
139 char *data() const;
140
148 void setDecodedData( const QByteArray &data );
149
156 QByteArray &decodedData() const;
157
163 uint size() const;
164
172 void setMimeType( const QString &mime );
173
179 QString mimeType() const;
180
190 void setShowInline( bool showinline );
191
197 bool showInline() const;
198
207 void setLabel( const QString &label );
208
212 QString label() const;
213
223 void setLocal( bool local );
224
228 bool isLocal() const;
229
234 bool operator==( const Attachment &a2 ) const;
235
240 bool operator!=( const Attachment &a2 ) const;
241
242 private:
243 //@cond PRIVATE
244 class Private;
245 Private *const d;
246 //@endcond
247};
248
249}
250
251#endif
KCal::Attachment
Represents information related to an attachment for a Calendar Incidence.
Definition attachment.h:58
KCal::Attachment::List
ListBase< Attachment > List
List of attachments.
Definition attachment.h:63
listbase.h
This file is part of the API for handling calendar data and defines the ListBase class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

Skip menu "KCal Library"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal