Projet e-stock  1.0
BTS SN-IR 2019
IhmAuthentificationSansBadge.h
Aller à la documentation de ce fichier.
1 #ifndef IHMAUTHENTIFICATIONSANSBADGE_H
2 #define IHMAUTHENTIFICATIONSANSBADGE_H
3 
4 #include <QtWidgets>
5 
6 namespace Ui {
8 }
9 
10 class BaseDeDonnees;
11 
12 class IhmAuthentificationSansBadge : public QWidget
13 {
14  Q_OBJECT
15 
16 public:
17  explicit IhmAuthentificationSansBadge(QWidget *parent = nullptr);
19 
20  QString getIdUtilisateur() const;
21  bool estValide();
22  bool estAutorise();
23 
24 protected:
25  void showEvent(QShowEvent *ev);
26 
27 private:
28  Ui::IhmAuthentificationSansBadge *ui;
29  QString identifiant;
30  QString motDePasse;
31  QString idUtilisateur;
32  QString dateValidite;
33  bool valide;
34  bool autorise;
36 
37  void initialiserFenetre();
38  void initialiserClavierVirtuel();
39  void supprimerClavierVirtuel();
40 
41 signals:
42  void utilisateurAutorise(QString identifiant, QString motDePasse);
43 
44 private slots:
45  void fermer();
46  void validerAcces();
47  void effacerMessage();
48 };
49 
50 #endif // IHMAUTHENTIFICATIONSANSBADGE_H
51 
QString dateValidite
Definition: IhmAuthentificationSansBadge.h:32
Definition: IhmAuthentification.h:18
Definition: ihm-estock/baseDeDonnees.h:25
QString idUtilisateur
Definition: IhmAuthentificationSansBadge.h:31
QString motDePasse
Definition: IhmAuthentificationSansBadge.h:30
BaseDeDonnees * bdd
agrégation de l&#39;objet BaseDeDonnees
Definition: IhmAuthentificationSansBadge.h:35
bool autorise
Definition: IhmAuthentificationSansBadge.h:34
Definition: IhmAuthentificationSansBadge.h:12
QString identifiant
le login de l&#39;utilisateur
Definition: IhmAuthentificationSansBadge.h:29
Ui::IhmAuthentificationSansBadge * ui
Definition: IhmAuthentificationSansBadge.h:28
bool valide
Definition: IhmAuthentificationSansBadge.h:33