8aaa4eeec0
Changes: - Implements #2061 - Introduce EventManager for user-specific Windows event publishing/listening - Add real-time notification and account-disabled event propagation - Register authentication events through Controller and AuthenticationManagementService - Trigger notification events from Inventory, Payment, and Service Management modules - Trigger account-disabled events when users are deactivated - Extract common menu event listener logic into Menu base class - Add notification popup handling for Admin, Customer, and Technician menus - Refactor shared memory components into core/sharedmemory - Update project structure and include paths for events and shared memory modules
39 lines
980 B
C++
39 lines
980 B
C++
/*
|
|
File: AdminMenu.h
|
|
Description: Header file declaring the AdminMenu class, which provides
|
|
administrative operations such as inventory management,
|
|
user management, service configuration, and notifications.
|
|
Author: Trenser
|
|
Date:19-May-2026
|
|
*/
|
|
|
|
#pragma once
|
|
#include "Controller.h"
|
|
#include "Menu.h"
|
|
|
|
class AdminMenu : public Menu
|
|
{
|
|
private:
|
|
bool handleOperation(int choice);
|
|
void handleNotificationEvent() override;
|
|
public:
|
|
void showMenu();
|
|
void logout();
|
|
void changePassword();
|
|
void viewStockLevels();
|
|
void addInventoryItem();
|
|
void removeInventoryItem();
|
|
void checkStockAvailability();
|
|
void assignJob();
|
|
void displayServices();
|
|
void createService();
|
|
void removeService();
|
|
void displayUsers();
|
|
void confirmPayment();
|
|
void addTechnician();
|
|
void removeUser();
|
|
void displayComboPackages();
|
|
void createComboPackages();
|
|
void removeComboPackage();
|
|
void viewNotifications();
|
|
}; |