messagelist
optionset.cpp
Go to the documentation of this file.
30 static const int gOptionSetCurrentVersion = 0x1001; // increase if you add new fields of change the meaning of some
43 : mId( set.mId ), mName( set.mName ), mDescription( set.mDescription ), mReadOnly( set.mReadOnly )
A set of options that can be applied to the MessageList in one shot.
Definition: optionset.h:47
QByteArray toHex() const
void generateUniqueId()
(Re)generates a (hopefully) unique identifier for this option set.
Definition: optionset.cpp:57
bool loadFromString(const QString &data)
Attempts to unpack this configuration object from a string (that is likely to come out from a config ...
Definition: optionset.cpp:86
QByteArray fromHex(const QByteArray &hexEncoded)
static const int gOptionSetWithReadOnLyModeVersion
Definition: optionset.cpp:32
QByteArray toLatin1() const
virtual void save(QDataStream &s) const =0
Saves the inner contents of this option set to the specified data stream.
QString fromLatin1(const char *str, int size)
QString saveToString() const
Packs this configuration object into a string suitable for storing in a config file.
Definition: optionset.cpp:64
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
virtual bool load(QDataStream &s)=0
Loads the inner contents of this option set from the specified data stream.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.