#include "rtclient.h" #include "worker.hxx" Worker::Worker(QObject* parent) : QObject{parent} { rtclient_init("https://darapsa.co.id/rt"); } void Worker::logIn(QString const& name, QString const& password) { rtclient_login(name.toLatin1().constData(), password.toLatin1().constData()); rtclient_user(name.toLatin1().constData()); QString query{"Owner='"}; query.append(name); query.append("'"); rtclient_search(query.toLatin1().constData()); } Worker::~Worker() { rtclient_cleanup(); }