You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
586 B
C++
22 lines
586 B
C++
#ifndef QSQLITEALGORITHM_H
|
|
#define QSQLITEALGORITHM_H
|
|
|
|
#include "QZkDbSqlite.h"
|
|
|
|
class QSqliteAlgorithm : public QZkDbSqlite
|
|
{
|
|
public:
|
|
QSqliteAlgorithm(const QString& dbPath);
|
|
~QSqliteAlgorithm();
|
|
|
|
bool CreateTable(int nAlgorithm);
|
|
bool ReplaceRecord(int nAlgorithm, const QString& key, int type, const QByteArray& data);
|
|
bool DeleteRecord(int nAlgorithm, const QString& key);
|
|
bool ReadRecord(int nAlgorithm, const QString& key, int type, QByteArray& data);
|
|
QStringList KeysByType(int nAlgorithm, int type);
|
|
private:
|
|
|
|
};
|
|
|
|
#endif // QSQLITEALGORITHM_H
|