![]() |
OpenMS
2.4.0
|
Class which handles the communication between OpenMS and the Mascot server. More...
#include <OpenMS/FORMAT/MascotRemoteQuery.h>
Constructors and destructors | |
QNetworkAccessManager * | manager_ |
String | query_spectra_ |
QByteArray | mascot_xml_ |
QString | cookie_ |
String | error_message_ |
QTimer | timeout_ |
String | search_identifier_ |
String | server_path_ |
Path on mascot server. More... | |
String | host_name_ |
Hostname of the mascot server. More... | |
bool | requires_login_ |
Login required. More... | |
bool | use_ssl_ |
Use SSL connection. More... | |
String | boundary_ |
boundary string that will be embedded into the HTTP requests More... | |
Int | to_ |
Timeout after these many seconds. More... | |
MascotRemoteQuery (QObject *parent=0) | |
default constructor More... | |
virtual | ~MascotRemoteQuery () |
destructor More... | |
void | setQuerySpectra (const String &exp) |
sets the query spectra, given in MGF file format More... | |
const QByteArray & | getMascotXMLResponse () const |
returns the Mascot XML response which contains the identifications More... | |
bool | hasError () const |
predicate which returns true if an error occurred during the query More... | |
const String & | getErrorMessage () const |
returns the error message, if hasError can be used to check whether an error has occurred More... | |
String | getSearchIdentifier () const |
returns the search number More... | |
virtual void | updateMembers_ () |
This method is used to update extra member variables at the end of the setParameters() method. More... | |
void | run () |
void | timedOut () |
slot connected to QTimer (timeout_) More... | |
void | readResponse (QNetworkReply *reply) |
slot connected to the QNetworkAccessManager::finished signal More... | |
void | downloadProgress (qint64 bytes_read, qint64 bytes_total) |
slot connected to signal downloadProgress More... | |
void | uploadProgress (qint64 bytes_read, qint64 bytes_total) |
slot connected to signal uploadProgress More... | |
void | followRedirect (QNetworkReply *reply) |
slot connected to signal gotRedirect More... | |
void | gotRedirect (QNetworkReply *reply) |
signal when class got a redirect More... | |
void | done () |
signal when class is done and results can be collected More... | |
void | login () |
login to Mascot server More... | |
void | execQuery () |
execute query (upload file) More... | |
void | getResults (QString results_path) |
download result file More... | |
MascotRemoteQuery & | operator= (const MascotRemoteQuery &rhs) |
assignment operator More... | |
MascotRemoteQuery (const MascotRemoteQuery &rhs) | |
copy constructor More... | |
void | endRun_ () |
finish a run and emit "done" More... | |
void | removeHostName_ (QString &url) |
Remove host name information from an url, e.g., "http://www.google.de/search" -> "search". More... | |
QUrl | buildUrl_ (std::string path) |
helper function to build URL More... | |
void | logHeader_ (const QNetworkRequest header, const String &what) |
Write HTTP header to error stream (for debugging) More... | |
void | logHeader_ (const QNetworkReply *header, const String &what) |
Write HTTP header to error stream (for debugging) More... | |
String | getSearchIdentifierFromFilePath (const String &path) const |
void | readResponseHeader (const QNetworkReply *reply) |
parse new response header More... | |
Additional Inherited Members | |
![]() | |
DefaultParamHandler (const String &name) | |
Constructor with name that is displayed in error messages. More... | |
DefaultParamHandler (const DefaultParamHandler &rhs) | |
Copy constructor. More... | |
virtual | ~DefaultParamHandler () |
Destructor. More... | |
virtual DefaultParamHandler & | operator= (const DefaultParamHandler &rhs) |
Assignment operator. More... | |
virtual bool | operator== (const DefaultParamHandler &rhs) const |
Equality operator. More... | |
void | setParameters (const Param ¶m) |
Sets the parameters. More... | |
const Param & | getParameters () const |
Non-mutable access to the parameters. More... | |
const Param & | getDefaults () const |
Non-mutable access to the default parameters. More... | |
const String & | getName () const |
Non-mutable access to the name. More... | |
void | setName (const String &name) |
Mutable access to the name. More... | |
const std::vector< String > & | getSubsections () const |
Non-mutable access to the registered subsections. More... | |
![]() | |
void | defaultsToParam_ () |
Updates the parameters after the defaults have been set in the constructor. More... | |
![]() | |
Param | param_ |
Container for current parameters. More... | |
Param | defaults_ |
Container for default parameters. This member should be filled in the constructor of derived classes! More... | |
std::vector< String > | subsections_ |
Container for registered subsections. This member should be filled in the constructor of derived classes! More... | |
String | error_name_ |
Name that is displayed in error messages during the parameter checking. More... | |
bool | check_defaults_ |
If this member is set to false no checking if parameters in done;. More... | |
bool | warn_empty_defaults_ |
If this member is set to false no warning is emitted when defaults are empty;. More... | |
Class which handles the communication between OpenMS and the Mascot server.
This class provides a communication interface which is able to query the Mascot server and reports the identifications provided be the Mascot server
MascotRemoteQuery | ( | QObject * | parent = 0 | ) |
default constructor
|
virtual |
destructor
|
private |
copy constructor
|
private |
helper function to build URL
|
signal |
signal when class is done and results can be collected
|
privateslot |
slot connected to signal downloadProgress
|
private |
finish a run and emit "done"
|
private |
execute query (upload file)
|
privateslot |
slot connected to signal gotRedirect
const String& getErrorMessage | ( | ) | const |
returns the error message, if hasError can be used to check whether an error has occurred
const QByteArray& getMascotXMLResponse | ( | ) | const |
returns the Mascot XML response which contains the identifications
|
private |
download result file
String getSearchIdentifier | ( | ) | const |
returns the search number
|
signal |
signal when class got a redirect
bool hasError | ( | ) | const |
predicate which returns true if an error occurred during the query
|
private |
Write HTTP header to error stream (for debugging)
|
private |
Write HTTP header to error stream (for debugging)
|
private |
login to Mascot server
|
private |
assignment operator
|
privateslot |
slot connected to the QNetworkAccessManager::finished signal
|
private |
parse new response header
|
private |
Remove host name information from an url, e.g., "http://www.google.de/search" -> "search".
The | url that will be manipulated. |
|
slot |
void setQuerySpectra | ( | const String & | exp | ) |
sets the query spectra, given in MGF file format
|
privateslot |
slot connected to QTimer (timeout_)
|
protectedvirtual |
This method is used to update extra member variables at the end of the setParameters() method.
Also call it at the end of the derived classes' copy constructor and assignment operator.
The default implementation is empty.
Reimplemented from DefaultParamHandler.
|
privateslot |
slot connected to signal uploadProgress
|
private |
boundary string that will be embedded into the HTTP requests
|
private |
|
private |
|
private |
Hostname of the mascot server.
|
private |
|
private |
|
private |
|
private |
Login required.
|
private |
|
private |
Path on mascot server.
|
private |
|
private |
Timeout after these many seconds.
|
private |
Use SSL connection.