Qt 4.8
Public Functions | Properties | List of all members
QHttpSetUserRequest Class Reference
Inheritance diagram for QHttpSetUserRequest:
QHttpRequest

Public Functions

QIODevicedestinationDevice ()
 
 QHttpSetUserRequest (const QString &userName, const QString &password)
 
QIODevicesourceDevice ()
 
void start (QHttp *)
 
- Public Functions inherited from QHttpRequest
virtual bool hasRequestHeader ()
 
 QHttpRequest ()
 
virtual QHttpRequestHeader requestHeader ()
 
virtual ~QHttpRequest ()
 

Properties

QString pass
 
QString user
 

Additional Inherited Members

- Public Variables inherited from QHttpRequest
bool finished
 
int id
 

Detailed Description

Definition at line 385 of file qhttp.cpp.

Constructors and Destructors

◆ QHttpSetUserRequest()

QHttpSetUserRequest::QHttpSetUserRequest ( const QString userName,
const QString password 
)
inline

Definition at line 388 of file qhttp.cpp.

388  :
389  user(userName), pass(password)
390  { }

Functions

◆ destinationDevice()

QIODevice* QHttpSetUserRequest::destinationDevice ( )
inlinevirtual

Implements QHttpRequest.

Definition at line 396 of file qhttp.cpp.

397  { return 0; }

◆ sourceDevice()

QIODevice* QHttpSetUserRequest::sourceDevice ( )
inlinevirtual

Implements QHttpRequest.

Definition at line 394 of file qhttp.cpp.

395  { return 0; }

◆ start()

void QHttpSetUserRequest::start ( QHttp http)
virtual

Implements QHttpRequest.

Definition at line 404 of file qhttp.cpp.

405 {
406  http->d_func()->authenticator.setUser(user);
407  http->d_func()->authenticator.setPassword(pass);
408  http->d_func()->finishedWithSuccess();
409 }
int setUser(const QString &username, const QString &password=QString())
This function sets the user name userName and password password for web pages that require authentica...
Definition: qhttp.cpp:2176

Properties

◆ pass

QString QHttpSetUserRequest::pass
private

Definition at line 401 of file qhttp.cpp.

◆ user

QString QHttpSetUserRequest::user
private

Definition at line 400 of file qhttp.cpp.


The documentation for this class was generated from the following file: