35 #ifndef OPENMS_FORMAT_MASCOTREMOTEQUERY_H
36 #define OPENMS_FORMAT_MASCOTREMOTEQUERY_H
39 #include <QtCore/QObject>
40 #include <QtCore/QString>
41 #include <QtNetwork/QHttpRequestHeader>
93 OPENMS_DLLAPI
void run();
99 OPENMS_DLLAPI
void readyReadSlot(
const QHttpResponseHeader& resp);
123 OPENMS_DLLAPI
void httpDone(
bool error);
128 OPENMS_DLLAPI
void login();
132 OPENMS_DLLAPI
void getResults(QString results_path);
134 OPENMS_DLLAPI
void followRedirect(
const QHttpResponseHeader& resp);
138 OPENMS_DLLAPI
void done();
140 OPENMS_DLLAPI
void gotRedirect(
const QHttpResponseHeader& resp);
144 OPENMS_DLLAPI MascotRemoteQuery&
operator=(
const MascotRemoteQuery& rhs);
151 OPENMS_DLLAPI
void logHeader_(
const QHttpHeader& header,
virtual void updateMembers_()
This method is used to update extra member variables at the end of the setParameters() method...
MascotRemoteQuery & operator=(const MascotRemoteQuery &rhs)
assignment operator
void followRedirect(const QHttpResponseHeader &resp)
QHttp * http_
Definition: MascotRemoteQuery.h:162
A more convenient string class.
Definition: String.h:57
void httpStateChanged(int state)
const QByteArray & getMascotXMLResponse() const
returns the Mascot XML response which contains the identifications
void getResults(QString results_path)
MascotRemoteQuery(QObject *parent=0)
default constructor
String query_spectra_
Definition: MascotRemoteQuery.h:160
QTimer timeout_
Definition: MascotRemoteQuery.h:165
String server_path_
Path on mascot server.
Definition: MascotRemoteQuery.h:169
void removeHostName_(QString &url)
Remove host name information from an url, e.g., "http://www.google.de/search" -> "search".
bool hasError() const
predicate which returns true if an error occurred during the query
void httpRequestFinished(int request_id, bool error)
void gotRedirect(const QHttpResponseHeader &resp)
void logHeader_(const QHttpHeader &header, const String &what)
Write HTTP header to error stream (for debugging)
QByteArray mascot_xml_
Definition: MascotRemoteQuery.h:161
String error_message_
Definition: MascotRemoteQuery.h:164
const String & getErrorMessage() const
returns the error message, if hasError can be used to check whether an error has occurred ...
QString cookie_
Definition: MascotRemoteQuery.h:163
void httpDone(bool error)
slot connected to signal done of QHttp
void setQuerySpectra(const String &exp)
sets the query spectra, given in MGF file format
void httpDataReadProgress(int bytes_read, int bytes_total)
slot connected to signal dataReadProgress of QHttp
bool requires_login_
Login required.
Definition: MascotRemoteQuery.h:173
String host_name_
Hostname of the mascot server.
Definition: MascotRemoteQuery.h:171
void httpRequestStarted(int request_id)
slot connected to signal requestStarted of QHttp, which indicates that the processing of request requ...
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
Class which handles the communication between OpenMS and the Mascot server.
Definition: MascotRemoteQuery.h:56
Int to_
Definition: MascotRemoteQuery.h:166
bool use_ssl_
Use SSL connection.
Definition: MascotRemoteQuery.h:175
int Int
Signed integer type.
Definition: Types.h:96
void httpDataSendProgress(int bytes_sent, int bytes_total)
slot connected to signal dataSendProgress of QHttp
void readResponseHeader(const QHttpResponseHeader &response_header)
slot connect to responseHeaderRecieved, which indicates that a new response header is available ...
virtual ~MascotRemoteQuery()
destructor
void readyReadSlot(const QHttpResponseHeader &resp)
String boundary_
boundary string that will be embedded into the HTTP requests
Definition: MascotRemoteQuery.h:177