-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnection.h
More file actions
34 lines (28 loc) · 720 Bytes
/
connection.h
File metadata and controls
34 lines (28 loc) · 720 Bytes
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
#ifndef CONNECTION_H
#define CONNECTION_H
#include <QObject>
#include <QString>
#include <QDebug>
#include <QtNetwork>
class connection : public QObject
{
Q_OBJECT
Q_PROPERTY(QString usrname READ get_usrname WRITE set_user)
Q_PROPERTY(QString password WRITE set_pass NOTIFY passchange)
public:
explicit connection(QObject *parent = nullptr);
QString get_usrname();
void set_user(const QString &login);
void set_pass(const QString &pasword);
void connect_to_base();
void com_token_request();
bool is_valid_old();
void DB_login_destroy();
void DB_login_insert();
signals:
public slots:
private:
QString m_login;
QString m_pasword;
};
#endif // CONNECTION_H