Attica 5.109.0
privatedata.h
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Martin Sandsmark <martin.sandsmark@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8#ifndef ATTICA_PRIVATEDATA_H
9#define ATTICA_PRIVATEDATA_H
10
11#include "provider.h"
12
13#include <QDateTime>
14#include <QList>
15#include <QMap>
16#include <QSharedDataPointer>
17#include <QUrl>
18
19#include "attica_export.h"
20
21namespace Attica
22{
23
29class ATTICA_EXPORT PrivateData
30{
31public:
32 class Parser;
33
34 typedef QList<PrivateData> List; // nonsense
35
37 PrivateData(const PrivateData &other);
38 PrivateData &operator=(const PrivateData &other);
40
44 void setAttribute(const QString &key, const QString &value);
45
49 QString attribute(const QString &key) const;
50
54 void setTimestamp(const QString &key, const QDateTime &when);
55
59 QDateTime timestamp(const QString &key) const;
60
64 QStringList keys() const;
65
66private:
67 class Private;
68 QSharedDataPointer<Private> d;
69};
70
71}
72
73#endif // ATTICA_ATTRIBUTES_H
Represents private data.
Definition privatedata.h:30
QStringList keys() const
Returns a list of fetched keys.
QDateTime timestamp(const QString &key) const
Returns the date and time an attribute last was changed.
void setAttribute(const QString &key, const QString &value)
Sets an attribute referenced by \key to \value.
QString attribute(const QString &key) const
Returns an attribute referenced by \key.
void setTimestamp(const QString &key, const QDateTime &when)
Sets when an attribute last was changed (mostly for internal use).
The Attica namespace,.
Definition activity.h:21