13 #ifndef MAGICSMOKE_LOGIN_H
14 #define MAGICSMOKE_LOGIN_H
38 QLineEdit*username,*password;
39 QComboBox*profiles,*clients;
69 explicit MClientConfig ( QWidget* parent = 0, Qt::WindowFlags f = 0 );
72 static bool inMenu(QString client);
83 QCheckBox*mallowchange;
86 QCheckBox*presel=
nullptr,*menu=
nullptr,*client=
nullptr;
88 s_checkbox(QCheckBox*m,QCheckBox*p,QCheckBox*c):presel(p),menu(m),client(c){}
89 s_checkbox(
const s_checkbox&)=
default;
90 s_checkbox(s_checkbox&&)=
default;
91 s_checkbox& operator=(
const s_checkbox&)=
default;
92 s_checkbox& operator=(s_checkbox&&)=
default;
94 QMap<QString,s_checkbox>mclients;
static QString preselection()
Definition: login.cpp:364
MLogin(MSessionManager *)
Definition: login.cpp:39
Configures which client is available for selection.
Definition: login.h:65
void setProfile(QString)
Definition: login.cpp:234
void relogin()
Definition: login.cpp:224
void resizeEvent(QResizeEvent *)
Definition: login.cpp:214
static bool inMenu(QString client)
Definition: login.cpp:354
static bool preselectLast()
Definition: login.cpp:344
static bool selectionChangeable()
Definition: login.cpp:369
void startLogin()
Definition: login.cpp:159
MClientConfig(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: login.cpp:260
login and profile configuration window
Definition: login.h:29
QString getCurrentClient() const
Definition: login.cpp:154
static bool selectable(QString client)
Definition: login.cpp:349
static bool inClientMenu(QString client)
Definition: login.cpp:359
void setUsername(QString)
Definition: login.cpp:242
void clientConfig()
Definition: login.cpp:252
void setPassword(QString)
Definition: login.cpp:247
void configwin()
Definition: login.cpp:206