2015-06-04 01:04:28 +08:00
|
|
|
#ifndef LOGINSCREEN_H
|
|
|
|
#define LOGINSCREEN_H
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class LoginScreen;
|
|
|
|
}
|
|
|
|
|
|
|
|
class LoginScreen : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit LoginScreen(QWidget *parent = 0);
|
|
|
|
~LoginScreen();
|
2015-06-04 07:30:17 +08:00
|
|
|
void reset(); ///< Resets the UI, clears all fields
|
2015-06-04 01:04:28 +08:00
|
|
|
|
2015-06-04 01:28:16 +08:00
|
|
|
private slots:
|
2015-06-04 07:30:17 +08:00
|
|
|
void onLoginUsernameSelected(const QString& name);
|
2015-06-04 01:28:16 +08:00
|
|
|
// Buttons to change page
|
|
|
|
void onNewProfilePageClicked();
|
|
|
|
void onLoginPageClicked();
|
|
|
|
// Buttons to submit form
|
|
|
|
void onCreateNewProfile();
|
|
|
|
void onLogin();
|
|
|
|
|
2015-06-04 01:04:28 +08:00
|
|
|
private:
|
|
|
|
Ui::LoginScreen *ui;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LOGINSCREEN_H
|