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