Attica::PrivateData Class

class Attica::PrivateData

Represents private data. More...

Header: #include <Attica/PrivateData>
CMake: find_package(KF6 REQUIRED COMPONENTS Attica)
target_link_libraries(mytarget PRIVATE KF6::Attica)

Public Types

Public Functions

PrivateData()
QString attribute(const QString &key) const
QStringList keys() const
void setAttribute(const QString &key, const QString &value)
void setTimestamp(const QString &key, const QDateTime &when)
QDateTime timestamp(const QString &key) const

Detailed Description

Member Type Documentation

PrivateData::List

Member Function Documentation

PrivateData::PrivateData()

QString PrivateData::attribute(const QString &key) const

Returns an attribute referenced by key.

See also setAttribute().

QStringList PrivateData::keys() const

Returns a list of fetched keys.

void PrivateData::setAttribute(const QString &key, const QString &value)

Sets an attribute referenced by key to value.

See also attribute().

void PrivateData::setTimestamp(const QString &key, const QDateTime &when)

Sets when an attribute last was changed (mostly for internal use).

See also timestamp().

QDateTime PrivateData::timestamp(const QString &key) const

Returns the date and time an attribute last was changed.

See also setTimestamp().