Banking_System_Client  1.0.0
Qt-based banking app for user/admin account management, transactions, secure server communication via PostgreSQL/Supabase.
AppManager.h
Go to the documentation of this file.
1 
2 #ifndef APPMANAGER_H
3 #define APPMANAGER_H
4 
5 #include <QObject>
6 #include <QThread>
7 #include "UIManager.h"
8 #include "ClientHandler.h"
9 
16 class AppManager : public QObject
17 {
18  Q_OBJECT
19 
20 private:
21  UIManager* uiManager;
23  clientHandler;
24  QThread* AppManagerThread;
31  explicit AppManager(QObject* parent = nullptr);
32 
33 public:
38  void start();
39 
45  static AppManager& getInstance(QObject* parent = nullptr);
46 
50  AppManager(const AppManager&) = delete;
51 
55  void operator=(const AppManager&) = delete;
56 
61  ~AppManager();
62 };
63 
64 #endif // APPMANAGER_H
Manages the user interface of the application.
Definition: AppManager.h:17
AppManager(const AppManager &)=delete
Deleted copy constructor to prevent copying.
void operator=(const AppManager &)=delete
Deleted assignment operator to prevent copying.
void start()
Starts the AppManager thread.
Definition: AppManager.cpp:19
static AppManager & getInstance(QObject *parent=nullptr)
Gets the singleton instance of AppManager.
Definition: AppManager.cpp:24
~AppManager()
Destructor for the AppManager class.
Definition: AppManager.cpp:30
A class for managing client requests and responses.
Definition: ClientHandler.h:28
Definition: UIManager.h:24