summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Prabowo Kamal <erik@darapsa.co.id>2019-08-30 16:26:03 +0800
committerErik Prabowo Kamal <erik@darapsa.co.id>2019-08-30 16:26:03 +0800
commitb15e02739052557480bc272920f251cc4eed00b0 (patch)
tree2c15a6388dab3735e611388bb112abd3bee6af9a
parentb4f44ef2d55f42764fb599e67680f5f45bf7f20c (diff)
Affirming the previous commit
-rw-r--r--user.cxx42
-rw-r--r--user.hxx4
2 files changed, 0 insertions, 46 deletions
diff --git a/user.cxx b/user.cxx
index 0983874..3da2c33 100644
--- a/user.cxx
+++ b/user.cxx
@@ -1,47 +1,5 @@
-#include "rtuser.h"
#include "user.hxx"
-void User::update(rt_user* user)
-{
- if (m_isLoggedIn) {
- setName(QString{user->name});
- setEmailAddress(QString{user->emailaddress});
- setOrganization(QString{user->organization});
- setRealName(QString{user->realname});
- setNickName(QString{user->nickname});
- setLang(QString{user->lang});
- setHomePhone(QString{user->homephone});
- setWorkPhone(QString{user->workphone});
- setMobilePhone(QString{user->mobilephone});
- setPagerPhone(QString{user->pagerphone});
- setAddress1(QString{user->address1});
- setAddress2(QString{user->address2});
- setCity(QString{user->city});
- setState(QString{user->state});
- setZip(QString{user->zip});
- setCountry(QString{user->country});
- setTimeZone(QString{user->timezone});
- } else {
- setName("");
- setEmailAddress("");
- setOrganization("");
- setRealName("");
- setNickName("");
- setLang("");
- setHomePhone("");
- setWorkPhone("");
- setMobilePhone("");
- setPagerPhone("");
- setAddress1("");
- setAddress2("");
- setCity("");
- setState("");
- setZip("");
- setCountry("");
- setTimeZone("");
- }
-}
-
void User::setName(QString const& name)
{
if (m_name != name) {
diff --git a/user.hxx b/user.hxx
index 1cac5fe..36ade7e 100644
--- a/user.hxx
+++ b/user.hxx
@@ -3,8 +3,6 @@
#include <QObject>
-struct rt_user;
-
class User : public QObject
{
Q_OBJECT
@@ -34,8 +32,6 @@ class User : public QObject
{}
~User() {}
- Q_INVOKABLE void update(rt_user* user);
-
QString const& name() const { return m_name; }
QString const& emailAddress() const { return m_emailAddress; }
QString const& organization() const { return m_organization; }