File indexing completed on 2025-01-19 03:55:38
0001 #ifndef O0ABSTRACTSTORE_H 0002 #define O0ABSTRACTSTORE_H 0003 0004 #include <QObject> 0005 #include <QString> 0006 0007 #include "o0export.h" 0008 0009 /// Storage for strings. 0010 class O0_EXPORT O0AbstractStore: public QObject { 0011 0012 public: 0013 explicit O0AbstractStore(QObject *parent = 0): QObject(parent) { 0014 } 0015 0016 /// Retrieve a string value by key. 0017 virtual QString value(const QString &key, const QString &defaultValue = QString()) = 0; 0018 0019 /// Set a string value for a key. 0020 virtual void setValue(const QString &key, const QString &value) = 0; 0021 }; 0022 0023 #endif // O0ABSTRACTSTORE_H