KMIME Library
kmime_contentindex.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
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
00130 class Private;
00131 QSharedDataPointer<Private> d;
00132
00133 };
00134
00135 }
00136
00137 KMIME_EXPORT uint qHash( const KMime::ContentIndex& );
00138
00139 #endif