Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| def0f4022b |
@@ -1,4 +1,12 @@
|
|||||||
|
/*
|
||||||
|
* File: Trenser.Zenvy.cpp
|
||||||
|
* Description: Zenvy Main
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "UserInterface.h"
|
#include "UserInterface.h"
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
UserInterface userInterFace;
|
UserInterface userInterFace;
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: ApplicationConfig.cpp
|
||||||
|
* Description: Global Application Config
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 06-Apr-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "ApplicationConfig.h"
|
#include "ApplicationConfig.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: ApplicationConfig.h
|
||||||
|
* Description: Global Application Config
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 06-Apr-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace Config
|
namespace Config
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: AttendanceManagementService.cpp
|
||||||
|
* Description: Handles Attendance related operations
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Apr-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "AttendanceManagementService.h"
|
#include "AttendanceManagementService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: AttendanceManagementService.h
|
||||||
|
* Description: Handles Attendance related operations
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Apr-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class AttendanceManagementService
|
class AttendanceManagementService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* File: AuthenticationManagementService.cpp
|
||||||
|
* Description: Handles authentication related operations
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include "AuthenticationManagementService.h"
|
#include "AuthenticationManagementService.h"
|
||||||
#include "ApplicationConfig.h"
|
#include "ApplicationConfig.h"
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Function: login
|
||||||
|
* Description: Authenticates a user using email and password, determines login status,
|
||||||
|
* employee type, and designation, and sets the authenticated employee
|
||||||
|
* in the data store.
|
||||||
|
* Parameters:
|
||||||
|
* email - employee email address
|
||||||
|
* password - employee password
|
||||||
|
* Returns:
|
||||||
|
* AuthenticationDTO containing login status, employee type, and employee designation
|
||||||
|
*/
|
||||||
AuthenticationDTO AuthenticationManagementService::login(const std::string& email, const std::string& password)
|
AuthenticationDTO AuthenticationManagementService::login(const std::string& email, const std::string& password)
|
||||||
{
|
{
|
||||||
employeeMap& employees = m_dataStore.getEmployees();
|
employeeMap& employees = m_dataStore.getEmployees();
|
||||||
@@ -47,6 +65,16 @@ AuthenticationDTO AuthenticationManagementService::login(const std::string& emai
|
|||||||
return std::make_tuple(loginStatus, employeeType, employeeDesignation);
|
return std::make_tuple(loginStatus, employeeType, employeeDesignation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Function: changePassword
|
||||||
|
* Description: Updates the password of the currently authenticated user.
|
||||||
|
* Parameters:
|
||||||
|
* password - new password to be set
|
||||||
|
* Returns:
|
||||||
|
* None
|
||||||
|
* Throws:
|
||||||
|
* runtime_error if no authenticated user is found
|
||||||
|
*/
|
||||||
void AuthenticationManagementService::changePassword(const std::string& password)
|
void AuthenticationManagementService::changePassword(const std::string& password)
|
||||||
{
|
{
|
||||||
std::shared_ptr<Employee> authenticatedUser = m_dataStore.getAuthenticatedUser();
|
std::shared_ptr<Employee> authenticatedUser = m_dataStore.getAuthenticatedUser();
|
||||||
@@ -60,6 +88,16 @@ void AuthenticationManagementService::changePassword(const std::string& password
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Function: logout
|
||||||
|
* Description: Logs out the currently authenticated user by clearing authentication data.
|
||||||
|
* Parameters:
|
||||||
|
* None
|
||||||
|
* Returns:
|
||||||
|
* None
|
||||||
|
* Throws:
|
||||||
|
* runtime_error if no user is currently logged in
|
||||||
|
*/
|
||||||
void AuthenticationManagementService::logout() {
|
void AuthenticationManagementService::logout() {
|
||||||
if (m_dataStore.getAuthenticatedUser()) {
|
if (m_dataStore.getAuthenticatedUser()) {
|
||||||
m_dataStore.getAuthenticatedUser() = nullptr;
|
m_dataStore.getAuthenticatedUser() = nullptr;
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: AuthenticationManagementService.h
|
||||||
|
* Description: Handles authentication related operations
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <map>
|
#include <map>
|
||||||
@@ -19,4 +26,3 @@ public:
|
|||||||
void logout();
|
void logout();
|
||||||
void changePassword(const std::string&);
|
void changePassword(const std::string&);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: BookingManagementService.cpp
|
||||||
|
* Description: Handle operations related to booking meetings
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "BookingManagementService.h"
|
#include "BookingManagementService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: BookingManagementService.h
|
||||||
|
* Description: Handle operations related to booking meetings
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class BookingManagementService
|
class BookingManagementService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: EmployeeManagementService.cpp
|
||||||
|
* Description: Handle operations related to employees
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "EmployeeManagememtService.h"
|
#include "EmployeeManagememtService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: EmployeeManagementService.h
|
||||||
|
* Description: Handle operations related to employees
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class EmployeeManagememtService
|
class EmployeeManagememtService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: LeaveManagementService.cpp
|
||||||
|
* Description: Handle operations related to leaves
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "LeaveManagementService.h"
|
#include "LeaveManagementService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: LeaveManagementService.h
|
||||||
|
* Description: Handle operations related to leaves
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class LeaveManagementService
|
class LeaveManagementService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: Log.cpp
|
||||||
|
* Description: Handle operations related to logging
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 01-Apr-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "LogService.h"
|
#include "LogService.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
#include "Factory.h"
|
#include "Factory.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: Log.h
|
||||||
|
* Description: Handle operations related to logging
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 01-Apr-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: NotificationManagementService.cpp
|
||||||
|
* Description: Handle operations related to notifications
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "NotificationManagementService.h"
|
#include "NotificationManagementService.h"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* File: NotificationManagementService.h
|
||||||
|
* Description: Handle operations related to notifications
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class NotificationManagementService
|
class NotificationManagementService
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: PayslipManagementService.cpp
|
||||||
|
* Description: Handle operations related to employee payslips
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "PayslipManagementService.h"
|
#include "PayslipManagementService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: PayslipManagementService.h
|
||||||
|
* Description: Handle operations related to employee payslips
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class PayslipManagementService
|
class PayslipManagementService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: TalentAcquisitionManagementService.cpp
|
||||||
|
* Description: Handle operations related to Talent Acquisition
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "TalentAcquisitionManagementService.h"
|
#include "TalentAcquisitionManagementService.h"
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
/*
|
||||||
|
* File: TalentAcquisitionManagementService.h
|
||||||
|
* Description: Handle operations related to Talent Acquisition
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class TalentAcquisitionManagementService
|
class TalentAcquisitionManagementService
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: TeamManagementService.cpp
|
||||||
|
* Description: Handle operations related to Team Management
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "TeamManagementService.h"
|
#include "TeamManagementService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: TeamManagementService.h
|
||||||
|
* Description: Handle operations related to Team Management
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class TeamManagementService
|
class TeamManagementService
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1 +1,8 @@
|
|||||||
|
/*
|
||||||
|
* File: TicketManagementService.h
|
||||||
|
* Description: Handle operations related to Ticket Management
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#include "TicketManagementService.h"
|
#include "TicketManagementService.h"
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* File: TicketManagementService.h
|
||||||
|
* Description: Handle operations related to Ticket Management
|
||||||
|
* Author: Trenser
|
||||||
|
* Created: 30-Mar-2026
|
||||||
|
*/
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
class TicketManagementService
|
class TicketManagementService
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user