akonadi
messagethreadingattribute.h
00001 /* 00002 Copyright (c) 2008 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 */ 00019 00020 #ifndef AKONADI_MESSAGETHREADINGATTRIBUTE_H 00021 #define AKONADI_MESSAGETHREADINGATTRIBUTE_H 00022 00023 #include "akonadi-kmime_export.h" 00024 #include <akonadi/attribute.h> 00025 #include <akonadi/item.h> 00026 00027 namespace Akonadi { 00028 00032 class AKONADI_KMIME_EXPORT MessageThreadingAttribute : public Attribute 00033 { 00034 public: 00038 MessageThreadingAttribute(); 00039 00043 MessageThreadingAttribute( const MessageThreadingAttribute &other ); 00044 00048 ~MessageThreadingAttribute(); 00049 00053 QList<Item::Id> perfectParents() const; 00054 00058 void setPerfectParents( const QList<Item::Id> &parents ); 00059 00063 QList<Item::Id> unperfectParents() const; 00064 00068 void setUnperfectParents( const QList<Item::Id> &parents ); 00069 00073 QList<Item::Id> subjectParents() const; 00074 00078 void setSubjectParents( const QList<Item::Id> &parents ); 00079 00080 // reimpl. 00081 QByteArray type() const; 00082 MessageThreadingAttribute* clone() const; 00083 QByteArray serialized() const; 00084 void deserialize( const QByteArray &data ); 00085 00086 private: 00087 class Private; 00088 Private * const d; 00089 }; 00090 00091 } 00092 00093 #endif