35 #ifndef OPENMS_FORMAT_MASCOTREMOTEQUERY_H 36 #define OPENMS_FORMAT_MASCOTREMOTEQUERY_H 39 #include <QtCore/QObject> 40 #include <QtCore/QString> 41 #include <QtNetwork/QHttpRequestHeader> 96 OPENMS_DLLAPI
void run();
102 OPENMS_DLLAPI
void readyReadSlot(
const QHttpResponseHeader& resp);
126 OPENMS_DLLAPI
void httpDone(
bool error);
131 OPENMS_DLLAPI
void login();
135 OPENMS_DLLAPI
void getResults(QString results_path);
137 OPENMS_DLLAPI
void followRedirect(
const QHttpResponseHeader& resp);
141 OPENMS_DLLAPI
void done();
143 OPENMS_DLLAPI
void gotRedirect(
const QHttpResponseHeader& resp);
147 OPENMS_DLLAPI MascotRemoteQuery&
operator=(
const MascotRemoteQuery& rhs);
154 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:167
const QByteArray & getMascotXMLResponse() const
returns the Mascot XML response which contains the identifications
A more convenient string class.
Definition: String.h:57
void httpStateChanged(int state)
void getResults(QString results_path)
MascotRemoteQuery(QObject *parent=0)
default constructor
Int search_number_
Definition: MascotRemoteQuery.h:172
const String & getErrorMessage() const
returns the error message, if hasError can be used to check whether an error has occurred ...
Int getSearchNumberFromFilePath_(const String &path) const
Int getSearchNumber() const
returns the search number
bool hasError() const
predicate which returns true if an error occurred during the query
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
String query_spectra_
Definition: MascotRemoteQuery.h:165
QTimer timeout_
Definition: MascotRemoteQuery.h:170
String server_path_
Path on mascot server.
Definition: MascotRemoteQuery.h:175
void removeHostName_(QString &url)
Remove host name information from an url, e.g., "http://www.google.de/search" -> "search".
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:166
String error_message_
Definition: MascotRemoteQuery.h:169
QString cookie_
Definition: MascotRemoteQuery.h:168
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:179
String host_name_
Hostname of the mascot server.
Definition: MascotRemoteQuery.h:177
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:171
bool use_ssl_
Use SSL connection.
Definition: MascotRemoteQuery.h:181
int Int
Signed integer type.
Definition: Types.h:103
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:183