45d4f693b6
Changes: - Added missing include for MenuHelper.h in project and AdminMenu - Fixed typo in variable name inventoryIems to inventoryItems in Controller.cpp - Removed stray semicolon from include in Controller.h - Cleaned up duplicate comments in Controller.cpp description header - Minor formatting adjustments with blank lines after headers in multiple files - Updated ServiceManagementService notification message to remove informal wording - Refactored AdminMenu::changePassword to use changePasswordHelper - Added util::clear() call at start of viewStockLevels - Removed redundant helper functions from AdminMenu.cpp and moved to shared helpers - Fixed bug in removeInventoryItem to use activeItems instead of inventoryItems - Enhanced createComboPackages to enforce selection of two distinct services - General comment cleanup and formatting consistency across headers and implementation files
31 lines
750 B
C++
31 lines
750 B
C++
/*
|
|
File: UserInterface.h
|
|
Description: Header file declaring the UserInterface class, which provides
|
|
the main entry point for the Vehicle Service System. Handles
|
|
login, customer registration, and menu navigation for different
|
|
user roles (Admin, Technician, Customer).
|
|
Author: Trenser
|
|
Date:19-May-2026
|
|
*/
|
|
|
|
#pragma once
|
|
#include "Controller.h"
|
|
#include "AdminMenu.h"
|
|
#include "TechnicianMenu.h"
|
|
#include "CustomerMenu.h"
|
|
|
|
class UserInterface
|
|
{
|
|
private:
|
|
Controller m_controller;
|
|
AdminMenu m_adminMenu;
|
|
TechnicianMenu m_technicianMenu;
|
|
CustomerMenu m_customerMenu;
|
|
bool handleOperation(int choice);
|
|
public:
|
|
UserInterface() {}
|
|
void run();
|
|
void login();
|
|
void registerCustomer();
|
|
};
|