-
Notifications
You must be signed in to change notification settings - Fork 1
/
qQuiz.h
46 lines (38 loc) · 820 Bytes
/
qQuiz.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef QQUIZ_H
#define QQUIZ_H
#include <QtCore>
#include <QFile>
#include <qthread.h>
#include <QSettings>
#include "qNet.h"
class QuizCheck : public QObject
{
Q_OBJECT
private:
QTimer* QuizTimer;
QFile BaseName;
QString* Questions;
quint32 count;
bool st; //èäåíòåôèêàòîð ðàáîòû âèêòîðèíû
QString CurrQuestion, CurrAsk, MaskAsk;
int HintCount;
//QElapsedTimer ;
QSettings* UserStats;
QString TopNick[10]; //òîï âèêòîðèíû
quint8 TopCount[10];
void GetQuestion();
public:
bool ServerRun();
void Start();
void Stop();
void GetHint();
void Next();
void Repeat();
void Top();
void Answer(QString msg,QString ip);
QuizCheck (QObject * parent = 0);
~QuizCheck ();
private slots:
void AutoHint();
};
#endif // QQUIZ_H