2016-05-12 14:08:58 +08:00
|
|
|
#ifndef MAINTEST_H
|
|
|
|
|
#define MAINTEST_H
|
|
|
|
|
|
|
|
|
|
#include <QtCore/QObject>
|
|
|
|
|
#include <QtCore/qglobal.h>
|
|
|
|
|
|
|
|
|
|
#include "weblogdatabase.h"
|
2016-05-21 16:09:03 +08:00
|
|
|
class Post;
|
2016-05-12 14:08:58 +08:00
|
|
|
class MainTest : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
WeblogDatabase db;
|
|
|
|
|
int postId;
|
2016-05-21 16:09:03 +08:00
|
|
|
Post *post;
|
|
|
|
|
Query<Post> *q;
|
2016-05-12 14:08:58 +08:00
|
|
|
public:
|
2018-09-05 13:18:59 +08:00
|
|
|
explicit MainTest(QObject *parent = nullptr);
|
2016-05-12 14:08:58 +08:00
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
void initTestCase();
|
|
|
|
|
|
2016-05-24 14:47:37 +08:00
|
|
|
void insert1kPost();
|
2016-05-12 14:08:58 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // MAINTEST_H
|