summaryrefslogtreecommitdiff
path: root/gui/handlers.cpp
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-08-06 13:01:22 +0200
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:44 +0200
commit60a35bdde41e8648594dc6a501a11000081ff878 (patch)
tree20336cb66893e265c9125f66dc3e942ff8e1c467 /gui/handlers.cpp
parent249a8844b1aaf2cd2bf6fddc8da10a4defb656d2 (diff)
[pkg] add float-deployed demo libpvn for tests
Diffstat (limited to 'gui/handlers.cpp')
-rw-r--r--gui/handlers.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gui/handlers.cpp b/gui/handlers.cpp
index ab64afb..3959964 100644
--- a/gui/handlers.cpp
+++ b/gui/handlers.cpp
@@ -35,6 +35,18 @@ void Backend::donateAccepted()
DonateAccepted();
}
+void Backend::login(QString username, QString password)
+{
+ // TODO: there has to be a cleaner way to do the conversion
+ char * u = new char [username.length()+1];
+ char * p = new char [password.length()+1];
+ strcpy(u, username.toStdString().c_str());
+ strcpy(p, password.toStdString().c_str());
+ Login(u, p);
+ delete [] u;
+ delete [] p;
+}
+
void Backend::quit()
{
Quit();