Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (13 sloc) 527 Bytes
#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 = page()->networkAccessManager();
networkAccessManager->setUserName(username);
networkAccessManager->setPassword(password);
emitFinished(true);
}
Jump to Line
Something went wrong with that request. Please try again.