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

kabc

sound.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_SOUND_H
00022 #define KABC_SOUND_H
00023 
00024 #include "kabc_export.h"
00025 #include <QtCore/QString>
00026 #include <QtCore/QSharedDataPointer>
00027 
00028 namespace KABC {
00029 
00058 class KABC_EXPORT Sound
00059 {
00060     friend KABC_EXPORT QDataStream &operator<<( QDataStream &, const Sound & );
00061     friend KABC_EXPORT QDataStream &operator>>( QDataStream &, Sound & );
00062 
00063   public:
00064 
00068     Sound();
00069 
00075     Sound( const QString &url );
00076 
00082     Sound( const QByteArray &data );
00083 
00087     Sound( const Sound &other );
00088 
00092     ~Sound();
00093 
00099     Sound &operator=( const Sound &other );
00100 
00108     bool operator==( const Sound &other ) const;
00109 
00117     bool operator!=( const Sound &other ) const;
00118 
00126     void setUrl( const QString &url );
00127 
00131     bool isEmpty() const;
00132 
00139     void setData( const QByteArray &data );
00140 
00148     bool isIntern() const;
00149 
00153     QString url() const;
00154 
00158     QByteArray data() const;
00159 
00163     QString toString() const;
00164 
00165   private:
00166     class Private;
00167     QSharedDataPointer<Private> d;
00168 };
00169 
00173 KABC_EXPORT QDataStream &operator<<( QDataStream &stream, const Sound &sound );
00174 
00178 KABC_EXPORT QDataStream &operator>>( QDataStream &stream, Sound &sound );
00179 
00180 }
00181 
00182 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue May 8 2012 00:05:44 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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