SecretService 0.13.2d47dfe
SecretService is base back end library for your c++ Qt projects.
irecord.h
Go to the documentation of this file.
1//#
2//# Copyright (C) 2024-2024 QuasarApp.
3//# Distributed under the GPLv3 software license, see the accompanying
4//# Everyone is permitted to copy and distribute verbatim copies
5//# of this license document, but changing it is not allowed.
6//#
7
8#ifndef IRECORD_H
9#define IRECORD_H
10
11#include "global.h"
12
13namespace DBSecret {
14
19{
20public:
21 iRecord();
22
27 virtual const QString& getAlias() const = 0;
28
33 virtual void setAlias(const QString& alias) = 0;
34
39 virtual const QByteArray& getHash() const = 0;
40
45 virtual void setHash(const QByteArray& source) = 0;
46
51 virtual const QByteArray& getData() const = 0;
52
58 virtual const QByteArray& setData(const QByteArray& newData) = 0;
59
60};
61
62}
63#endif // IRECORD_H
The iRecord class This is main interface for all records of database.
Definition irecord.h:19
virtual const QString & getAlias() const =0
getAlias returns alias of the record.
virtual const QByteArray & getData() const =0
getData This method returns data of the record.
virtual const QByteArray & setData(const QByteArray &newData)=0
setData This method sets new data of record.
virtual const QByteArray & getHash() const =0
getHash return hash of data
virtual void setAlias(const QString &alias)=0
setAlias This method sets new alias for record.
virtual void setHash(const QByteArray &source)=0
setHash This method sets new hash of record.
#define SECRETDB_EXPORT
Definition global.h:16