Changeset View
Changeset View
Standalone View
Standalone View
templates/akonadiserializer/src/akonadi_serializer_%{APPNAMELC}.cpp
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright (C) %{CURRENT_YEAR} by %{AUTHOR} <%{EMAIL}> | ||||
3 | * | ||||
4 | * This program is free software; you can redistribute it and/or | ||||
5 | * modify it under the terms of the GNU General Public | ||||
6 | * License as published by the Free Software Foundation; either | ||||
7 | * version 2 of the License, or (at your option) any later version. | ||||
8 | * | ||||
9 | * This program is distributed in the hope that it will be useful, | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
12 | * GNU General Public License for more details. | ||||
13 | * | ||||
14 | * You should have received a copy of the GNU General Public License | ||||
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
16 | */ | ||||
17 | | ||||
18 | #include "akonadi_serializer_%{APPNAMELC}.h" | ||||
19 | | ||||
20 | #include <AkonadiCore/Item> | ||||
21 | | ||||
22 | using namespace Akonadi; | ||||
23 | | ||||
24 | bool SerializerPlugin%{APPNAME}::deserialize(Item &item, const QByteArray &label, QIODevice &data, int version) | ||||
25 | { | ||||
26 | Q_UNUSED(item); | ||||
27 | Q_UNUSED(label); | ||||
28 | Q_UNUSED(data); | ||||
29 | Q_UNUSED(version); | ||||
30 | | ||||
31 | // TODO Implement this | ||||
32 | | ||||
33 | return false; | ||||
34 | } | ||||
35 | | ||||
36 | void SerializerPlugin%{APPNAME}::serialize(const Item &item, const QByteArray &label, QIODevice &data, int &version) | ||||
37 | { | ||||
38 | Q_UNUSED(item); | ||||
39 | Q_UNUSED(label); | ||||
40 | Q_UNUSED(data); | ||||
41 | Q_UNUSED(version); | ||||
42 | | ||||
43 | // TODO Implement this | ||||
44 | } | ||||
45 | | ||||
46 | QSet<QByteArray> SerializerPlugin%{APPNAME}::parts(const Item &item) const | ||||
47 | { | ||||
48 | // only need to reimplement this when implementing partial serialization | ||||
49 | // i.e. when using the "label" parameter of the other two methods | ||||
50 | return ItemSerializerPlugin::parts(item); | ||||
51 | } |