-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPerson.h
More file actions
38 lines (32 loc) · 886 Bytes
/
Person.h
File metadata and controls
38 lines (32 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef PERSON_H
#define PERSON_H
#include <QObject>
#include <QDate>
class Person : public QObject
{
Q_OBJECT
QString name;
QString phoneNo;
QString emailId;
QString deptCode;
QDate dob; // qdatetime.h
QDate regisDate; // qdatetime.h
public:
Person();
// getters - return the data specified by their name
QString getName();
QString getPhoneNo();
QString getEmailId();
QString getDeptCode();
QDate getDob();
QDate getRegisDate();
public slots:
// setters - they are actually implemented as slots
bool setName(const QString&);
bool setPhoneNo(const QString&);
bool setEmailId(const QString&);
bool setDeptCode(const QString&);
bool setDob(const QDate&);
bool setRegisDate(const QDate&);
};
#endif // PERSON_H