2
This file is part of KDE.
4
Copyright (c) 2010 Martin Sandsmark <martin.sandsmark@kde.org>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) version 3, or any
10
later version accepted by the membership of KDE e.V. (or its
11
successor approved by the membership of KDE e.V.), which shall
12
act as a proxy defined in Section 6 of version 3 of the license.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef ATTICA_PRIVATEDATA_H
24
#define ATTICA_PRIVATEDATA_H
28
#include <QtCore/QDateTime>
29
#include <QtCore/QList>
30
#include <QtCore/QMap>
31
#include <QtCore/QSharedDataPointer>
32
#include <QtCore/QUrl>
34
#include "atticaclient_export.h"
39
class ATTICA_EXPORT PrivateData
44
typedef QList<PrivateData> List; // nonsense
47
PrivateData(const PrivateData &other);
48
PrivateData &operator=(const PrivateData &other);
52
* Sets an attribute referenced by \key to \value.
54
void setAttribute(const QString &key, const QString &value);
57
* Returns an attribute referenced by \key.
59
QString attribute(const QString &key) const;
62
* Sets when an attribute last was changed (mostly for internal use).
64
void setTimestamp(const QString &key, const QDateTime &when);
67
* Returns the date and time an attribute last was changed.
69
QDateTime timestamp(const QString &key) const;
72
* Returns a list of fetched keys.
74
QStringList keys() const;
78
QSharedDataPointer<Private> d;
83
#endif//ATTICA_ATTRIBUTES_H