From bd37f0cf61b9c520a7f9289919312fadff56b942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 11 Jul 2020 10:03:41 +0800 Subject: Rename icclient_user to icclient_member --- client.cxx | 20 +++++++++---------- libicclient | 2 +- qicclient/client.hxx | 6 +++--- qicclient/user.hxx | 4 ++-- user.cxx | 54 ++++++++++++++++++++++++++-------------------------- 5 files changed, 43 insertions(+), 43 deletions(-) diff --git a/client.cxx b/client.cxx index 2482a87..1ca6ddc 100644 --- a/client.cxx +++ b/client.cxx @@ -49,17 +49,17 @@ namespace QICClient { order.setData(c_order); } - void Client::logIn(size_t (*handler)(void*, size_t, size_t, void*) - , icclient_user* user, QString const& username - , QString const& password, QString const& successPage - , QString const& nextPage, QString const& failPage) + void Client::logIn(size_t (*handler)(void*, size_t, size_t, void*), + icclient_member* member, QString const& username, + QString const& password, QString const& successPage, + QString const& nextPage, QString const& failPage) { - icclient_login(handler, user, username.toLatin1().constData() - , password.toLatin1().constData() - , successPage.toLatin1().constData() - , nextPage.toLatin1().constData() - , failPage.toLatin1().constData()); - emit loggedIn(user); + icclient_login(handler, member, username.toLatin1().constData(), + password.toLatin1().constData(), + successPage.toLatin1().constData(), + nextPage.toLatin1().constData(), + failPage.toLatin1().constData()); + emit loggedIn(member); } void Client::logOut() diff --git a/libicclient b/libicclient index 3074a86..6ff383c 160000 --- a/libicclient +++ b/libicclient @@ -1 +1 @@ -Subproject commit 3074a867e052af594f1c7252c9cb967ff0747f42 +Subproject commit 6ff383c3d12dc215123fb975b453ca74b1bef162 diff --git a/qicclient/client.hxx b/qicclient/client.hxx index c6344f7..26d540d 100644 --- a/qicclient/client.hxx +++ b/qicclient/client.hxx @@ -3,7 +3,7 @@ #include -struct icclient_user; +struct icclient_member; namespace QICClient { @@ -57,7 +57,7 @@ namespace QICClient { Basket& order); void logIn(size_t (*handler)(void*, size_t, size_t, void*), - icclient_user* user, + icclient_member* member, QString const& username, QString const& password, QString const& successPage = nullptr, @@ -94,7 +94,7 @@ namespace QICClient { signals: void gotResults(Catalog* catalog); void gotFlyPage(shared_ptr product); - void loggedIn(icclient_user* user); + void loggedIn(icclient_member* member); void loggedOut(); }; diff --git a/qicclient/user.hxx b/qicclient/user.hxx index a100b8d..bb3ca00 100644 --- a/qicclient/user.hxx +++ b/qicclient/user.hxx @@ -4,7 +4,7 @@ #include #include -struct icclient_user; +struct icclient_member; namespace QICClient { @@ -97,7 +97,7 @@ namespace QICClient { void setEmail(QString const& email); public slots: - void update(icclient_user* user); + void update(icclient_member* member); signals: void userNameChanged(); diff --git a/user.cxx b/user.cxx index a1e190a..eb7b7dd 100644 --- a/user.cxx +++ b/user.cxx @@ -156,58 +156,58 @@ namespace QICClient { } } - void User::update(icclient_user* user) + void User::update(icclient_member* member) { - if (user->username) - m_userName = QString{user->username}; + if (member->username) + m_userName = QString{member->username}; else m_userName = ""; - if (user->usernick) - m_userNick = QString{user->usernick}; + if (member->usernick) + m_userNick = QString{member->usernick}; else m_userNick = ""; - if (user->fname) - m_fName = QString{user->fname}; + if (member->fname) + m_fName = QString{member->fname}; else m_fName = ""; - if (user->lname) - m_lName = QString{user->lname}; + if (member->lname) + m_lName = QString{member->lname}; else m_lName = ""; - if (user->address1) - m_address1 = QString{user->address1}; + if (member->address1) + m_address1 = QString{member->address1}; else m_address1 = ""; - if (user->address2) - m_address2 = QString{user->address2}; + if (member->address2) + m_address2 = QString{member->address2}; else m_address2 = ""; - if (user->address3) - m_address3 = QString{user->address3}; + if (member->address3) + m_address3 = QString{member->address3}; else m_address3 = ""; - if (user->city) - m_city = QString{user->city}; + if (member->city) + m_city = QString{member->city}; else m_city = ""; - if (user->state) - m_state = QString{user->state}; + if (member->state) + m_state = QString{member->state}; else m_state = ""; - if (user->zip) - m_zip = QString{user->zip}; + if (member->zip) + m_zip = QString{member->zip}; else m_zip = ""; - if (user->country) - m_country = QString{user->country}; + if (member->country) + m_country = QString{member->country}; else m_country = ""; - if (user->phone_day) - m_phoneDay = QString{user->phone_day}; + if (member->phone_day) + m_phoneDay = QString{member->phone_day}; else m_phoneDay = ""; - if (user->email) - m_email = QString{user->email}; + if (member->email) + m_email = QString{member->email}; else m_email = ""; -- cgit v1.2.3