MagicSmoke  $VERSION$
clientcfg.h
Go to the documentation of this file.
1 //
2 // C++ Interface: print @ home, client config
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2016
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MSMOKE_PAH_CLIENT_H
14 #define MSMOKE_PAH_CLIENT_H
15 
16 #include <QDialog>
17 
18 class QCheckBox;
19 class QLineEdit;
20 class QComboBox;
21 class QSpinBox;
22 class MSessionClient;
23 
24 class MPClientConfig:public QDialog
25 {
26  Q_OBJECT
27 public:
28  MPClientConfig(QWidget*parent=nullptr);
29 
30  static int timerInMinutes();
31  static int maximumAgeOfOrders();
32  static bool preselectProfile();
33  static QString preselectedProfileId();
34  static bool preselectUser();
35  static QString preselectedUserName();
36  static bool autoLogin();
37  static QString password();
38 
39  static void performAutoLogin(MSessionClient&);
40 
41 public slots:
42  void save();
43 
44 private:
45  QSpinBox*mtimer,*morderage;
46  QCheckBox*msetprofile,*msetuser,*mautologin;
47  QLineEdit*musername,*mpassword;
48  QComboBox*mprofile;
49 
50 };
51 
52 #endif
static void performAutoLogin(MSessionClient &)
Definition: clientcfg.cpp:174
static int timerInMinutes()
Definition: clientcfg.cpp:138
static bool preselectProfile()
Definition: clientcfg.cpp:133
static QString password()
Definition: clientcfg.cpp:169
static QString preselectedProfileId()
Definition: clientcfg.cpp:149
Definition: scli.h:28
MPClientConfig(QWidget *parent=nullptr)
Definition: clientcfg.cpp:38
static bool preselectUser()
Definition: clientcfg.cpp:154
static QString preselectedUserName()
Definition: clientcfg.cpp:159
void save()
Definition: clientcfg.cpp:120
Definition: clientcfg.h:24
static bool autoLogin()
Definition: clientcfg.cpp:164
static int maximumAgeOfOrders()
Definition: clientcfg.cpp:143