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

KBlog Client Library

blogmedia.h
00001 /*
00002   This file is part of the kblog library.
00003 
00004   Copyright (c) 2006-2007 Christian Weilbach <christian_weilbach@web.de>
00005   Copyright (c) 2007 Mike McQuaid <mike@mikemcquaid.com>
00006 
00007   This library is free software; you can redistribute it and/or
00008   modify it under the terms of the GNU Library General Public
00009   License as published by the Free Software Foundation; either
00010   version 2 of the License, or (at your option) any later version.
00011 
00012   This library is distributed in the hope that it will be useful,
00013   but WITHOUT ANY WARRANTY; without even the implied warranty of
00014   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015   Library General Public License for more details.
00016 
00017   You should have received a copy of the GNU Library General Public License
00018   along with this library; see the file COPYING.LIB.  If not, write to
00019   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020   Boston, MA 02110-1301, USA.
00021 */
00022 
00023 #ifndef KBLOG_BLOGMEDIA_H
00024 #define KBLOG_BLOGMEDIA_H
00025 
00026 #include <kblog/kblog_export.h>
00027 
00028 #include <QtCore/QtAlgorithms>
00029 
00030 class KUrl;
00031 
00032 namespace KBlog {
00033 
00034 class BlogMediaPrivate;
00035 
00048 class KBLOG_EXPORT BlogMedia
00049 {
00050 
00051   public:
00055     explicit BlogMedia();
00056 
00060     BlogMedia( const BlogMedia &media );
00061 
00065     virtual ~BlogMedia();
00066 
00074     QString name() const;
00075 
00083     void setName( const QString &name );
00084 
00091     KUrl url() const;
00092 
00100     void setUrl( const KUrl &url );
00101 
00108     QString mimetype() const;
00109 
00116     void setMimetype( const QString &mimetype );
00117 
00124     QByteArray data() const;
00125 
00132     void setData( const QByteArray &data );
00133 
00138     enum Status {
00140        New,
00142        Created,
00144        Error
00145     };
00146 
00153     Status status() const;
00154 
00162     void setStatus( Status status );
00163 
00169     QString error() const;
00170 
00177     void setError( const QString &error );
00178 
00183     BlogMedia &operator=( const BlogMedia &media );
00184 
00188     void swap( BlogMedia &other ) { qSwap( this->d_ptr, other.d_ptr ); }
00189 
00190   private:
00191     BlogMediaPrivate *d_ptr; //krazy:exclude=dpointer can't constify due to bic and swap being declared inline
00192 };
00193 
00194 } //namespace KBlog
00195 
00196 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Apr 30 2012 21:48:18 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KBlog Client Library

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

kdepimlibs-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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