summaryrefslogtreecommitdiff
path: root/interchange
diff options
context:
space:
mode:
Diffstat (limited to 'interchange')
-rw-r--r--interchange/member.hxx6
-rw-r--r--interchange/ord.hxx2
2 files changed, 3 insertions, 5 deletions
diff --git a/interchange/member.hxx b/interchange/member.hxx
index 897b086..3f00dba 100644
--- a/interchange/member.hxx
+++ b/interchange/member.hxx
@@ -33,6 +33,8 @@ namespace QInterchange {
public:
explicit Member(QObject* parent = nullptr);
+ explicit Member(struct interchange_member member,
+ QObject* parent = nullptr);
~Member() {}
QString const& userName() const { return m_userName; }
@@ -54,7 +56,6 @@ namespace QInterchange {
QString const& country() const { return m_country; }
QString const& phoneDay() const { return m_phoneDay; }
QString const& email() const { return m_email; }
- interchange_member* data() { return m_data; }
void setUserName(QString const& userName);
void setUserNick(QString const& userNick);
@@ -75,7 +76,6 @@ namespace QInterchange {
void setCountry(QString const& country);
void setPhoneDay(QString const& phoneDay);
void setEmail(QString const& email);
- void setData(interchange_member* data);
public slots:
void newAccount(QString const& username,
@@ -151,9 +151,7 @@ namespace QInterchange {
QString m_country;
QString m_phoneDay;
QString m_email;
- interchange_member* m_data;
};
-
}
#endif
diff --git a/interchange/ord.hxx b/interchange/ord.hxx
index 4ec06b4..985f923 100644
--- a/interchange/ord.hxx
+++ b/interchange/ord.hxx
@@ -45,7 +45,7 @@ namespace QInterchange {
void setProfile(QString const& profile);
public slots:
// void remove(unsigned int const& indices);
- void checkout(Member& member);
+ void checkout(const Member& member);
signals:
void rowCountChanged();
void subtotalChanged();