• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

picture.h

00001 /*
00002     This file is part of libkabc.
00003     Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public License
00016     along with this library; see the file COPYING.LIB.  If not, write to
00017     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018     Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KABC_PICTURE_H
00022 #define KABC_PICTURE_H
00023 
00024 #include "kabc_export.h"
00025 
00026 #include <QtCore/QDataStream>
00027 #include <QtCore/QString>
00028 #include <QtCore/QSharedDataPointer>
00029 #include <QtGui/QImage>
00030 
00031 namespace KABC {
00032 
00033 class KABC_EXPORT Picture
00034 {
00035     friend KABC_EXPORT QDataStream &operator<<( QDataStream &, const Picture & );
00036     friend KABC_EXPORT QDataStream &operator>>( QDataStream &, Picture & );
00037 
00038   public:
00042     Picture();
00043 
00049     Picture( const QString &url );
00050 
00056     Picture( const QImage &data );
00057 
00065     Picture( const Picture &picture );
00066 
00070     ~Picture();
00071 
00079     Picture &operator=( const Picture &other );
00080 
00084     bool operator==( const Picture & ) const;
00085 
00089     bool operator!=( const Picture & ) const;
00090 
00094     bool isEmpty() const;
00095 
00103     void setUrl( const QString &url );
00104 
00111     void setData( const QImage &data );
00112 
00116     void setType( const QString &type );
00117 
00125     bool isIntern() const;
00126 
00130     QString url() const;
00131 
00135     QImage data() const;
00136 
00140     QString type() const;
00141 
00145     QString toString() const;
00146 
00147   private:
00148     class Private;
00149     QSharedDataPointer<Private> d;
00150 };
00151 
00155 KABC_EXPORT QDataStream &operator<<( QDataStream &stream, const Picture &picture );
00156 
00160 KABC_EXPORT QDataStream &operator>>( QDataStream &stream, Picture &picture );
00161 
00162 }
00163 
00164 #endif

kabc

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal