-
Notifications
You must be signed in to change notification settings - Fork 0
/
contact.h
50 lines (35 loc) · 1013 Bytes
/
contact.h
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
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef CONTACT_H
#define CONTACT_H
#include <iostream>
#include <QString>
#include <QTextStream>
#include <QList>
#include <QMap>
#include <QFile>
#include <QStringList>
#include <fstream>
using namespace std;
class Contact
{
private:
QString FirstName;
QString LastName;
QString PhoneNumber;
public:
Contact();
Contact(QString fn,QString ln,QString pn);
void setFirstName(QString firstname);
QString getFirstname() const;
void setLastName(QString lastname);
QString getLastName() const;
void setPhoneNumber(QString phonenum);
QString getPhoneNumber() const;
void PrintContact();
void ReceiveContact();
bool operator < (Contact & other);
bool operator == (const Contact & other) const;
};
ostream & operator << (ostream & out , Contact & c1);
ofstream & operator << (ofstream & fout , Contact & c);
QTextStream & operator >> (QTextStream & qin,Contact & c);
#endif // CONTACT_H