9#ifndef REGISTRATIONLIST_H
10#define REGISTRATIONLIST_H
78 double totalFee(
const QString &typeString)
const;
108 void on_registrationRemoved(
Registration *registration);
111 QList<Registration*> m_AttendeeList;
The Person class represents a person with a name, affiliation, and email.
Definition person.h:20
The Registration class represents a registration for an event.
Definition registration.h:24
Manages a list of conference registrations.
Definition registrationlist.h:28
void registrationRemoved(Registration *registration)
Signal emitted when a registration is removed from the list.
bool removeRegistration(Registration *registration)
Removes the selected registration from the list.
Definition registrationlist.cpp:44
void registrationAdded(Registration *registration)
Signal emitted when a registration is added to the list.
~RegistrationList()
Destructor for RegistrationList. Cleans up the list of Registrations.
Definition registrationlist.cpp:25
bool isRegistered(const QString &name) const
Checks if an attendee with the given name is already registered.
Definition registrationlist.cpp:55
int totalRegistrations(const QString &affiliation) const
Returns the number of attendees registered for the conference from a specific institution.
Definition registrationlist.cpp:96
double totalFee(const QString &typeString) const
Calculates the total registration fees for a given type of registration.
Definition registrationlist.cpp:81
RegistrationList(RegistrationModel &model, QObject *parent=nullptr)
Constructs a RegistrationList.
Definition registrationlist.cpp:16
bool addRegistration(Registration *registration)
Adds a registration to the list if the attendee's name is not already on the list.
Definition registrationlist.cpp:32
QList< Registration * > getAttendeeList() const
Returns the list of attendees.
Definition registrationlist.cpp:110
The RegistrationModel class is a custom model that extends QStandardItemModel.
Definition registrationmodel.h:23
The RegistrationTypes class represents the different types of registration.
Definition registrationtypes.h:21