Attica

privatedata.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2010 Martin Sandsmark <[email protected]>
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 
21 namespace Attica
22 {
23 
24 class ATTICA_EXPORT PrivateData
25 {
26 public:
27  class Parser;
28 
29  typedef QList<PrivateData> List; // nonsense
30 
31  PrivateData();
32  PrivateData(const PrivateData &other);
33  PrivateData &operator=(const PrivateData &other);
34  ~PrivateData();
35 
39  void setAttribute(const QString &key, const QString &value);
40 
44  QString attribute(const QString &key) const;
45 
49  void setTimestamp(const QString &key, const QDateTime &when);
50 
54  QDateTime timestamp(const QString &key) const;
55 
59  QStringList keys() const;
60 
61 private:
62  class Private;
64 };
65 
66 }
67 
68 #endif//ATTICA_ATTRIBUTES_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.