 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
38 #include <QtCore/QObject>
39 #include <QtCore/QString>
40 #include <QtNetwork/QNetworkAccessManager>
42 #include <QNetworkReply>
100 OPENMS_DLLAPI
void run();
105 OPENMS_DLLAPI
void timedOut()
const;
114 OPENMS_DLLAPI
void uploadProgress(qint64 bytes_read, qint64 bytes_total);
122 OPENMS_DLLAPI
void gotRedirect(QNetworkReply * reply);
125 OPENMS_DLLAPI
void done();
158 OPENMS_DLLAPI
void logHeader_(
const QNetworkRequest header,
const String& what);
161 OPENMS_DLLAPI
void logHeader_(
const QNetworkReply* header,
const String& what);
Class which handles the communication between OpenMS and the Mascot server.
Definition: MascotRemoteQuery.h:56
QString cookie_
Definition: MascotRemoteQuery.h:176
void endRun_()
finish a run and emit "done"
MascotRemoteQuery & operator=(const MascotRemoteQuery &rhs)
assignment operator
bool requires_login_
Login required.
Definition: MascotRemoteQuery.h:186
void setQuerySpectra(const String &exp)
sets the query spectra, given in MGF file format
void removeHostName_(QString &url)
Remove host name information from an url, e.g., "http://www.google.de/search" -> "search".
MascotRemoteQuery(QObject *parent=0)
default constructor
bool export_decoys_
Definition: MascotRemoteQuery.h:194
Int to_
Timeout after these many seconds.
Definition: MascotRemoteQuery.h:192
A more convenient string class.
Definition: String.h:58
void login()
login to Mascot server
void downloadProgress(qint64 bytes_read, qint64 bytes_total)
slot connected to signal downloadProgress
String getSearchIdentifierFromFilePath(const String &path) const
String boundary_
boundary string that will be embedded into the HTTP requests
Definition: MascotRemoteQuery.h:190
String getSearchIdentifier() const
returns the search number
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:92
void timedOut() const
slot connected to QTimer (timeout_)
int Int
Signed integer type.
Definition: Types.h:102
bool use_ssl_
Use SSL connection.
Definition: MascotRemoteQuery.h:188
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
void readResponseHeader(const QNetworkReply *reply)
parse new response header
QTimer timeout_
Definition: MascotRemoteQuery.h:178
QUrl buildUrl_(std::string path)
helper function to build URL
void done()
signal when class is done and results can be collected
const String & getErrorMessage() const
returns the error message, if hasError can be used to check whether an error has occurred
~MascotRemoteQuery() override
destructor
void setExportDecoys(const bool b)
request export of decoy summary and decoys (note: internal decoy search must be enabled in the MGF fi...
bool hasError() const
predicate which returns true if an error occurred during the query
QByteArray mascot_xml_
Definition: MascotRemoteQuery.h:172
void logHeader_(const QNetworkRequest header, const String &what)
Write HTTP header to error stream (for debugging)
void followRedirect(QNetworkReply *reply)
slot connected to signal gotRedirect
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
const QByteArray & getMascotXMLResponse() const
returns the Mascot XML response which contains the identifications
String host_name_
Hostname of the mascot server.
Definition: MascotRemoteQuery.h:184
String search_identifier_
Definition: MascotRemoteQuery.h:179
String query_spectra_
Definition: MascotRemoteQuery.h:171
const QByteArray & getMascotXMLDecoyResponse() const
returns the Mascot XML response which contains the decoy identifications (note: setExportDecoys must ...
void execQuery()
execute query (upload file)
String error_message_
Definition: MascotRemoteQuery.h:177
QByteArray mascot_decoy_xml_
Definition: MascotRemoteQuery.h:173
String server_path_
Path on mascot server.
Definition: MascotRemoteQuery.h:182
void getResults(QString results_path)
download result file
void gotRedirect(QNetworkReply *reply)
signal when class got a redirect
void uploadProgress(qint64 bytes_read, qint64 bytes_total)
slot connected to signal uploadProgress
void readResponse(QNetworkReply *reply)
slot connected to the QNetworkAccessManager::finished signal
QNetworkAccessManager * manager_
Definition: MascotRemoteQuery.h:168