13#include <QSharedPointer>
33 virtual QSharedPointer<iRecord>
getRecordByAlias(
const QString& alias,
bool ifNotExistsCreate =
false) = 0;
41 virtual QSharedPointer<iRecord>
getRecordByHash(
const QByteArray& hash,
bool ifNotExistsCreate =
false) = 0;
48 virtual bool saveRecord(
const QSharedPointer<iRecord>& record) = 0;
The IDataBase class Main database.
virtual QSharedPointer< iRecord > getRecordByHash(const QByteArray &hash, bool ifNotExistsCreate=false)=0
getRecordByHash Get record by hash.
virtual bool removeRecordByKey(const QByteArray &hash)=0
removeRecordByKey This method will remove record by hash key.
virtual bool saveRecord(const QSharedPointer< iRecord > &record)=0
saveRecord This method save a record object into database.
virtual bool removeRecordByAlias(const QString &alias)=0
removeRecordByAlias This method will remove record by alias.
virtual QSharedPointer< iRecord > getRecordByAlias(const QString &alias, bool ifNotExistsCreate=false)=0
Get a user by their ID.