Conference Registration 2024.07.18.04
Loading...
Searching...
No Matches
registration.h
Go to the documentation of this file.
1
9#ifndef REGISTRATION_H
10#define REGISTRATION_H
11
12#include "person.h"
13
14#include <QDate>
15#include <QString>
16
17
23class Registration : public QObject
24{
25 Q_OBJECT
26
27public:
28 static constexpr double STANDARD_FEE = 100.00;
29
33 virtual ~Registration() = default;
34
39 Person getAttendee() const;
40
45 QDate getBookingDate() const;
46
53 virtual double calculateFee() const = 0;
54
59 virtual QString toString() const;
60
65 void setBookingDate(const QDate &newBookingDate);
66
67protected:
73 Registration(const Person &attendee, const QDate &bookingDate);
74
75private:
76 Person m_Attendee;
77 QDate m_BookingDate;
78};
79
80#endif // REGISTRATION_H
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
virtual ~Registration()=default
Destructor.
Registration(const Person &attendee, const QDate &bookingDate)
Constructor.
Definition registration.cpp:12
virtual QString toString() const
Convert the registration information to a string representation.
Definition registration.cpp:33
QDate getBookingDate() const
Get the booking date of the registration.
Definition registration.cpp:28
void setBookingDate(const QDate &newBookingDate)
Set the booking date of the registration.
Definition registration.cpp:18
virtual double calculateFee() const =0
Calculate the fee for the registration.
Person getAttendee() const
Get the attendee associated with the registration.
Definition registration.cpp:23