mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
032c561e62
And start implementing some of the required methods to make Core, LoginScreen and Nexus use Profile
33 lines
596 B
C++
33 lines
596 B
C++
#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();
|
|
void reset(); ///< Resets the UI, clears all fields
|
|
|
|
private slots:
|
|
void onLoginUsernameSelected(const QString& name);
|
|
// Buttons to change page
|
|
void onNewProfilePageClicked();
|
|
void onLoginPageClicked();
|
|
// Buttons to submit form
|
|
void onCreateNewProfile();
|
|
void onLogin();
|
|
|
|
private:
|
|
Ui::LoginScreen *ui;
|
|
};
|
|
|
|
#endif // LOGINSCREEN_H
|