• Skip to content
  • Skip to link menu
KDE 4.8 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

KMIME Library

kmime_contentindex.h
Go to the documentation of this file.
00001 /*
00002     Copyright (c) 2006 - 2007 Volker Krause <vkrause@kde.org>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00034 #ifndef KMIME_CONTENTINDEX_H
00035 #define KMIME_CONTENTINDEX_H
00036 
00037 #include "kmime_export.h"
00038 
00039 #include <QtCore/QList>
00040 #include <QtCore/QSharedDataPointer>
00041 #include <QtCore/QString>
00042 
00043 
00044 namespace KMime {
00045 
00054 class KMIME_EXPORT ContentIndex
00055 {
00056   public:
00060     ContentIndex();
00061 
00068     explicit ContentIndex( const QString &index );
00069 
00073     ContentIndex( const ContentIndex &other );
00074 
00078     ~ContentIndex();
00079 
00083     bool isValid() const;
00084 
00091     unsigned int pop();
00092 
00101     void push( unsigned int index );
00102 
00107     QString toString() const;
00108 
00114     bool operator==( const ContentIndex &index ) const;
00115 
00121     bool operator!=( const ContentIndex &index ) const;
00122 
00126     ContentIndex& operator=( const ContentIndex &other );
00127 
00128   private:
00129     //@cond PRIVATE
00130     class Private;
00131     QSharedDataPointer<Private> d;
00132     //@endcond
00133 };
00134 
00135 }  //namespace KMime
00136 
00137 KMIME_EXPORT uint qHash( const KMime::ContentIndex& ); 
00138 
00139 #endif

KMIME Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • 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
Generated for KDE-PIM Libraries by doxygen 1.7.6.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