jce-manager/main/loginhandler.h

43 lines
852 B
C
Raw Normal View History

2014-06-18 23:44:46 +00:00
#ifndef LOGINHANDLER_H
#define LOGINHANDLER_H
#include <QString>
#include <QLabel>
#include <QLineEdit>
2014-06-20 02:59:33 +00:00
#include <QTextEdit>
2014-06-18 23:44:46 +00:00
#include <QMessageBox>
#include <QPixmap>
#include "src/jce/jcelogin.h"
#include "./src/data/savedata.h"
2014-06-26 15:15:04 +00:00
2014-06-18 23:44:46 +00:00
class loginHandler
{
public:
2014-06-20 02:59:33 +00:00
loginHandler(user *ptr);
void setPointers(QLabel *statusLabelPtr,QLineEdit *pswdEditPtr,QLineEdit *usrnmEditPtr);
2014-06-18 23:44:46 +00:00
bool makeConnection();
2014-06-20 02:59:33 +00:00
bool isLoggedInFlag();
void setLoginFlag(bool flag);
QString getCurrentPageContect();
int makeGradeRequest();
void makeDisconnectionRequest();
2014-06-18 23:44:46 +00:00
private:
void popMessage(QString message, bool addInfo = true);
2014-06-18 23:44:46 +00:00
2014-06-20 02:59:33 +00:00
bool logggedInFlag;
2014-06-18 23:44:46 +00:00
jceLogin *jceLog;
QLabel *statusLabelPtr;
QLineEdit *pswdEditPtr;
QLineEdit *usrnmEditPtr;
2014-06-20 17:13:21 +00:00
2014-06-18 23:44:46 +00:00
};
#endif // LOGINHANDLER_H