mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-11-16 18:41:07 +00:00
34 lines
530 B
C
34 lines
530 B
C
|
/**
|
||
|
* Single user information
|
||
|
*
|
||
|
* @author Pierre HUBERT
|
||
|
*/
|
||
|
|
||
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
|
||
|
class User
|
||
|
{
|
||
|
public:
|
||
|
User();
|
||
|
User(int id, std::string firstName, std::string lastName);
|
||
|
|
||
|
int iD() const;
|
||
|
void setID(int iD);
|
||
|
|
||
|
std::string firstName() const;
|
||
|
void setFirstName(const std::string &firstName);
|
||
|
|
||
|
std::string lastName() const;
|
||
|
void setLastName(const std::string &lastName);
|
||
|
|
||
|
std::string fullName() const;
|
||
|
|
||
|
private:
|
||
|
int mID;
|
||
|
std::string mFirstName;
|
||
|
std::string mLastName;
|
||
|
};
|