Sha256: deae54ebcfc80d3e246ad1ab8d1b21ae27af764a6405805846684115755e5e4d
Contents?: true
Size: 579 Bytes
Versions: 4
Compression:
Stored size: 579 Bytes
Contents
#include "Authenticate.h" #include "WebPage.h" #include "NetworkAccessManager.h" Authenticate::Authenticate(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) { } void Authenticate::start() { QString username = arguments()[0]; QString password = arguments()[1]; NetworkAccessManager* networkAccessManager = qobject_cast<NetworkAccessManager*>(page()->networkAccessManager()); networkAccessManager->setUserName(username); networkAccessManager->setPassword(password); emit finished(new Response(true)); }
Version data entries
4 entries across 4 versions & 2 rubygems