Astyle kdelibs
[kdepim.git] / kmail / attributes / taskattribute.h
blob474d220c5d97de69c53bfbc761585f87052b0c78
1 /*
2 Copyright (c) 2014 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef KMAIL_TASK_ATTRIBUTE_H
19 #define KMAIL_TASK_ATTRIBUTE_H
21 #include <AkonadiCore/Attribute>
22 #include <AkonadiCore/Item>
24 class TaskAttribute : public Akonadi::Attribute
26 public:
27 TaskAttribute();
28 ~TaskAttribute();
30 QByteArray type() const;
32 TaskAttribute *clone() const;
34 QByteArray serialized() const;
36 void deserialize(const QByteArray &data);
38 void setTaskId(Akonadi::Item::Id id);
39 Akonadi::Item::Id taskId() const;
41 private:
42 Akonadi::Item::Id mId;
45 #endif