diff options
Diffstat (limited to 'gui/handlers.cpp')
-rw-r--r-- | gui/handlers.cpp | 12 |
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(); |