From a7e82434ad76c9a254f81dd116b8efe4c7a7208e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 18 Mar 2023 10:09:12 +0800 Subject: Interface for setting successPage --- interchange/admin.hxx | 5 +++-- interchange/member.hxx | 2 ++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'interchange') diff --git a/interchange/admin.hxx b/interchange/admin.hxx index 1f00df4..4642e76 100644 --- a/interchange/admin.hxx +++ b/interchange/admin.hxx @@ -39,8 +39,9 @@ namespace QInterchange { public slots: void logIn(QString const& username, QString const& password, - QString const& nextPage = nullptr, - QString const& failPage = nullptr); + QString const& nextPage = "", + QString const& successPage = "", + QString const& failPage = ""); void newAdmin(QString const& userName, QString const& password, QString const& name, bool super, enum interchange_admin_group group); void newItem(QString const& description, QString const& comment, QString const& price, diff --git a/interchange/member.hxx b/interchange/member.hxx index 5137071..9b54493 100644 --- a/interchange/member.hxx +++ b/interchange/member.hxx @@ -82,10 +82,12 @@ namespace QInterchange { QString const& password, QString const& confirm, QString const& nextPage = "", + QString const& successPage = "", QString const& failPage = ""); void logIn(QString const& userName, QString const& passWord, QString const& nextPage = "", + QString const& successPage = "", QString const& failPage = ""); void account(); void setAccount(QString const& firstName, -- cgit v1.2.3