d10cc91c40
<Changes>
1. Added State enum with ACTIVE and INACTIVE values in Enums.h.
2. Added state member, getter, and setter in User, Service, InventoryItem, and ComboPackage models.
3. Updated constructors to initialize model objects with ACTIVE state by default.
4. Added state string conversion helper functions in Enums.h.
5. Added default return values in Controller getter methods to complete stub implementations.
6. Added basic menu loop implementation in CustomerMenu and TechnicianMenu for handling user input.
</Changes>
41 lines
619 B
C++
41 lines
619 B
C++
#include "TechnicianMenu.h"
|
|
#include "InputHelper.h"
|
|
#include "OutputHelper.h"
|
|
|
|
void TechnicianMenu::showMenu()
|
|
{
|
|
bool isMenuActive = true;
|
|
while (isMenuActive)
|
|
{
|
|
try
|
|
{
|
|
int choice;
|
|
util::clear();
|
|
std::cout << "" << std::endl;
|
|
util::read(choice);
|
|
if (!handleOperation(choice))
|
|
{
|
|
isMenuActive = false;
|
|
}
|
|
}
|
|
catch (const std::exception& e)
|
|
{
|
|
std::cout << "Exception: " << e.what() << std::endl;
|
|
util::pressEnter();
|
|
}
|
|
}
|
|
}
|
|
|
|
bool TechnicianMenu::handleOperation(int choice)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void TechnicianMenu::completeJob()
|
|
{
|
|
}
|
|
|
|
void TechnicianMenu::viewNotifications()
|
|
{
|
|
}
|