update// created request objects to store inportant information
This commit is contained in:
33
src/Model/ContactRequest.h
Normal file
33
src/Model/ContactRequest.h
Normal file
@@ -0,0 +1,33 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
|
||||
#ifndef CONTACTREQUEST_H
|
||||
#define CONTACTREQUEST_H
|
||||
|
||||
#include <QString>
|
||||
using json = nlohmann::json;
|
||||
|
||||
class ContactRequest
|
||||
{
|
||||
private:
|
||||
QString _senderAddress;
|
||||
QString _receiverAddress;
|
||||
QString _memo;
|
||||
QString _cid;
|
||||
|
||||
public:
|
||||
ContactRequest();
|
||||
ContactRequest(QString sender, QString receiver, QString memo, QString cid);
|
||||
QString getSenderAddress();
|
||||
QString getReceiverAddress();
|
||||
QString getMemo();
|
||||
QString getCid();
|
||||
void setSenderAddress(QString address);
|
||||
void setReceiverAddress(QString contact);
|
||||
void setMemo(QString memo);
|
||||
void setCid(QString cid);
|
||||
QString toString();
|
||||
~ContactRequest();
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user