HTTP GET
stream sources.
More...
#include <HTTPGetStreamSourceCore.h>
Inheritance diagram for mx::HTTPGetStreamSourceCore:
Public Slots | |
void | processAuthentication (const QString &user, const QString &password) |
To be activated from an external place after the source core has emitted the authenticationRequest() signal, or, alternatively: the processAuthenticationCancellation() slot. | |
void | processAuthenticationCancellation () |
To be activated from an external place after the source core has emitted the authenticationRequest() signal, or, alternatively: the processAuthentication() slot. | |
Signals | |
void | bytesAvailable () |
Emitted when bytes have become available to be read. | |
void | authenticationRequest (const QString &msg, bool first_request_for_current_procedure) |
Emitted when during negotiation with the host, need arises to get authentication information about the user. | |
Public Member Functions | |
void | setHost (const mxmIPAddress &host) |
(Re)implemented. | |
void | setWebPages (const mxmStringList &web_pages) |
(Re)implemented. | |
void | setProxy (const mxmIPAddress &proxy) |
(Re)implemented. | |
bool | activate () |
(Re)implemented. | |
mxmQtSignal | streamBytesAvailableSignal () const |
(Re)implemented. | |
mxmQtSignal | authenticationRequestSignal () const |
(Re)implemented. | |
mxmQtSlot | processAuthenticationSlot () const |
(Re)implemented. | |
mxmQtSlot | processAuthenticationCancellationSlot () const |
(Re)implemented. | |
bool | errorState () |
(Re)implemented. | |
void | setErrorState () |
(Re)implemented. | |
bool | awaitingAuthentication () |
(Re)implemented. | |
bool | wasAwaitingAuthentication () |
(Re)implemented. | |
Protected Attributes | |
bool | Active |
mxmIPAddress | Host |
mxmIPAddress | Proxy |
bool | Connected |
bool | Disconnected |
bool | Up |
bool | ErrorEncountered |
Private Types | |
enum | HTTPNegotiationState { SendGET_NoAuth, ReceiveResponseHeader_NoAuth, RaisedAuthenticationDialog, WaitForAuthenticationDialog, SendGET_EnteredAuth, ReceiveResponseHeader_EnteredAuth, NegotiationSucceeded, NegotiationFailed } |
Private Slots | |
void | processIncomingBytes () |
Connected to the encapsuled socket's "incoming-bytes-ready" signal. | |
void | processSocketDisconnected () |
Connected to the encapsuled socket's "disconnected" signal. | |
Private Member Functions | |
virtual void | establishConnection ()=0 |
To be implemented by subclasses. | |
virtual void | abortConnection ()=0 |
To be implemented by subclasses. | |
virtual bool | readChar (char *c)=0 |
To be implemented by subclasses. | |
virtual void | send (const mxmString &txt)=0 |
To be implemented by subclasses. | |
void | sendGETRequest (const char *user=0, const char *password=0) |
Internal helper method. | |
bool | receiveHTTPHeader () |
Internal helpermethod. | |
Private Attributes | |
bool | HostSet |
mxmStringList | URLList |
bool | HTTPNegotiationMode |
HTTPNegotiationState | NegotiationState |
char | HTTPHeaderBuffer [MX_HTTPGETSTREAMSOURCECORE_HEADERBUFFER_SIZE] |
int | HTTPHeaderBytesRead |
int | HTTPHeaderSize |
bool | AuthenticationEntered |
bool | AuthenticationDialogRaised |
bool | AuthenticationDialogWasRaised |
mxmString | AuthenticationUser |
mxmString | AuthenticationPassword |
bool | FirstAuth |
int | URLAttempt |
HTTP GET
stream sources.
Subclasses just have to provide the actual network I/O implementation.
Subclasses might differ in whether or not they support SSL
connections or in the efficiency of their network access implementation.
[khe]
Kai Hergenroether
|
Emitted when during negotiation with the host, need arises to get authentication information about the user. Originally indended to be connected to an mycpcAuthenticationDialog's raise() slot. By using the component-oriented signal/slot-mechanism, we avoid doing an upcall to the higher layer of a GUI lib. |
|
To be implemented by subclasses.
Implemented in mx::HTTPGetStreamSource. |
|
Internal helpermethod.
|
|
(Re)implemented.
If the dialog is currently raised the method will return Implements mx::IRequiresExternalAuthenticator. |