AvogadroLibs  1.93.1
Classes | Public Member Functions | List of all members
PQRRequest Class Reference
Inheritance diagram for PQRRequest:

Public Member Functions

 PQRRequest (QTableWidget *, QLabel *, QLineEdit *, QLabel *, PQRWidget *)
 Constructor to initialize the NetworkAcessManager and set pointers to the widget's ui elements. More...
 
 ~PQRRequest () override
 Free the ui pointers.
 
void sendRequest (QString)
 Sends a network request to search for molecules from PQR;. More...
 
void sendRequest (QString, QString)
 Sends a network request to download a file from PQR. More...
 
void sendPNGRequest (QString url)
 Sends a network request to download a png form PQR. More...
 
QString molSelected (int)
 Called when a molecule is selected to display information about the molecule and start grabbing the SVG preview. More...
 

Constructor & Destructor Documentation

◆ PQRRequest()

PQRRequest ( QTableWidget *  ,
QLabel *  ,
QLineEdit *  ,
QLabel *  ,
PQRWidget  
)
Parameters
twPointer to ui's table widget
gvPointer to ui's graphics view for SVG preview
ndPointer to the name display
fdPointer to the formula display

Member Function Documentation

◆ sendRequest() [1/2]

void sendRequest ( QString  )
Parameters
urlThe url to query

◆ sendRequest() [2/2]

void sendRequest ( QString  ,
QString   
)
Parameters
urlThe url to send the request to
mol2The mol2 representation of the molecule to download

◆ sendPNGRequest()

void sendPNGRequest ( QString  url)
Parameters
urlThe url to send the request to

◆ molSelected()

QString molSelected ( int  )
Parameters
numThe row number of the table result selected
Returns
The mol2 of the result for the widget to reference

The documentation for this class was generated from the following file: