Logo Search packages:      
Sourcecode: kmess version File versions  Download package

HttpSoapConnection::HttpSoapConnection ( QObject *  parent = 0  )  [explicit]

The constructor.

Initializes the class. The actual connection is established when a SOAP call is made.

Parameters:
parent The Qt parent object. The object is deleted when the parent is deleted.

Definition at line 62 of file httpsoapconnection.cpp.

References http_, responseTimer_, slotAuthenticationRequired(), slotRequestTimeout(), and slotSslErrors().

: QObject( parent )
, currentRequest_( 0 )
, isSending_( false )
{
#ifdef KMESSDEBUG_HTTPSOAPCONNECTION_GENERAL
  kDebug() << "CREATED.";
#endif

  // Create the network request object
  http_ = new QNetworkAccessManager( this );

  // Make signal connections
  connect( http_, SIGNAL(                   finished(QNetworkReply*)                         ),
           this,  SLOT  (        slotRequestFinished(QNetworkReply*)                         ) );
  connect( http_, SIGNAL(     authenticationRequired(QNetworkReply*,QAuthenticator*)         ),
           this,  SLOT  ( slotAuthenticationRequired(QNetworkReply*,QAuthenticator*)         ) );
  connect( http_, SIGNAL(                  sslErrors(QNetworkReply*,const QList<QSslError>&) ),
           this,  SLOT  (              slotSslErrors(QNetworkReply*,const QList<QSslError>&) ) );

  // Initialize the timeout timer
  responseTimer_.setSingleShot( true );
  responseTimer_.setInterval( SOAPCONNECTION_RESPONSE_TIMEOUT );
  connect( &responseTimer_, SIGNAL(            timeout() ),
            this,           SLOT  ( slotRequestTimeout() ) );
}


Generated by  Doxygen 1.6.0   Back to index