12 #include <QtCore/QObject>
13 #include <QtCore/QString>
14 #include <QtCore/QTimer>
15 #include <QtNetwork/QNetworkAccessManager>
16 #include <QtNetwork/QNetworkReply>
81 OPENMS_DLLAPI
void run();
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:66
Class which handles the communication between OpenMS and the Mascot server.
Definition: MascotRemoteQuery.h:33
void gotRedirect(QNetworkReply *reply)
signal when class got a redirect
void execQuery()
execute query (upload file)
void followRedirect(QNetworkReply *reply)
slot connected to signal gotRedirect
void readResponse(QNetworkReply *reply)
slot connected to the QNetworkAccessManager::finished signal
bool export_decoys_
Definition: MascotRemoteQuery.h:169
String getSearchIdentifier() const
returns the search number
String query_spectra_
Definition: MascotRemoteQuery.h:146
String search_identifier_
Definition: MascotRemoteQuery.h:154
QNetworkAccessManager * manager_
Definition: MascotRemoteQuery.h:143
void logHeader_(const QNetworkReply *header, const String &what)
Write HTTP header to error stream (for debugging)
const String & getErrorMessage() const
returns the error message, if hasError can be used to check whether an error has occurred
String boundary_
boundary string that will be embedded into the HTTP requests
Definition: MascotRemoteQuery.h:165
String server_path_
Path on mascot server.
Definition: MascotRemoteQuery.h:157
void readResponseHeader(const QNetworkReply *reply)
parse new response header
String error_message_
Definition: MascotRemoteQuery.h:152
QTimer timeout_
Definition: MascotRemoteQuery.h:153
QByteArray mascot_decoy_xml_
Definition: MascotRemoteQuery.h:148
const QByteArray & getMascotXMLResponse() const
returns the Mascot XML response which contains the identifications
void uploadProgress(qint64 bytes_read, qint64 bytes_total)
slot connected to signal uploadProgress
MascotRemoteQuery & operator=(const MascotRemoteQuery &rhs)=delete
assignment operator
const QByteArray & getMascotXMLDecoyResponse() const
returns the Mascot XML response which contains the decoy identifications (note: setExportDecoys must ...
bool hasError() const
predicate which returns true if an error occurred during the query
void getResults(const QString &results_path)
download result file
void logHeader_(const QNetworkRequest &header, const String &what)
Write HTTP header to error stream (for debugging)
void endRun_()
finish a run and emit "done"
void setQuerySpectra(const String &exp)
sets the query spectra, given in MGF file format
String getSearchIdentifierFromFilePath(const String &path) const
Int to_
Timeout after these many seconds.
Definition: MascotRemoteQuery.h:167
MascotRemoteQuery(QObject *parent=0)
default constructor
void done()
signal when class is done and results can be collected
void timedOut() const
slot connected to QTimer (timeout_)
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
~MascotRemoteQuery() override
destructor
QByteArray mascot_xml_
Definition: MascotRemoteQuery.h:147
bool use_ssl_
Use SSL connection.
Definition: MascotRemoteQuery.h:163
bool requires_login_
Login required.
Definition: MascotRemoteQuery.h:161
QUrl buildUrl_(const std::string &path)
helper function to build URL
void downloadProgress(qint64 bytes_read, qint64 bytes_total)
slot connected to signal downloadProgress
void setExportDecoys(const bool b)
request export of decoy summary and decoys (note: internal decoy search must be enabled in the MGF fi...
void removeHostName_(QString &url)
Remove host name information from an url, e.g., "http://www.google.de/search" -> "search".
String host_name_
Hostname of the mascot server.
Definition: MascotRemoteQuery.h:159
void login()
login to Mascot server
QString cookie_
Definition: MascotRemoteQuery.h:151
MascotRemoteQuery(const MascotRemoteQuery &rhs)=delete
copy constructor
A more convenient string class.
Definition: String.h:34
int Int
Signed integer type.
Definition: Types.h:72
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19