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
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:55:58 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon May 7 2012 23:55:58 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.