diff options
Diffstat (limited to 'client.cxx')
-rw-r--r-- | client.cxx | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/client.cxx b/client.cxx new file mode 100644 index 0000000..6cf6114 --- /dev/null +++ b/client.cxx @@ -0,0 +1,30 @@ +#include <icclient/client.h> +#include "qicclient/client.hxx" + +namespace ICClient { + + Client::Client(char const* url, char const* certificate) + { + icclient_init(url, certificate); + } + + Client::~Client() + { + icclient_cleanup(); + } + + void Client::logIn(QString const& username, QString const& password) + { + icclient_login(username.toLatin1().constData() + , password.toLatin1().constData(), NULL, NULL + , NULL); + emit loggedIn(username); + } + + void Client::logOut() + { + icclient_logout(); + emit loggedOut(); + } + +} |