Changeset db91752 in terepaima for terepaima-0.4.16/sources/mainwindow.h
- Timestamp:
- Feb 20, 2018, 9:54:34 AM (6 years ago)
- Branches:
- stretch
- Children:
- 30f3152
- Parents:
- 5ce8751
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
terepaima-0.4.16/sources/mainwindow.h
r5de5cc7 rdb91752 47 47 #include <QUrlQuery> 48 48 49 50 49 #include "cryptotoken.h" 50 51 #include <QFile> 52 #include <QFileInfo> 53 #include <QDir> 51 54 //__________________________________ 52 55 … … 88 91 89 92 friend class MainWindowAdaptor; 93 QNetworkReply *reply; 90 94 91 95 public: … … 94 98 QSize sizeHint() const; 95 99 QMenu* createPopupMenu(); 100 96 101 97 102 public slots: … … 281 286 void on_selectCertificate(); 282 287 void on_activateButtonCertificate(); 288 void on_uploadFile(); 283 289 284 290 void on_managePIN(); … … 287 293 void on_close_windowCertificate(); 288 294 void on_close_windowPIN(); 295 void httpReadyRead(); 296 void httpDownloadFinished(); 289 297 //QString verify_signature(); 290 298 //QStringList verify_signature(); … … 301 309 void dragEnterEvent(QDragEnterEvent* event); 302 310 void dropEvent(QDropEvent* event); 303 QString _currentrest; 311 QFile *file; //para descargar el archivo firmado 312 QString _currentrest; //respuesta del servidor murachi 304 313 305 314 //_________________________________________Web services Methods______________________________________________________ … … 319 328 void slotError(QNetworkReply::NetworkError e); 320 329 330 void handleNetworkDataMP(QNetworkReply *networkReply); 331 void handleDownloadFile(); 321 332 public: 322 333 void setCurrentRest(const QString& r) { _currentrest = r;} … … 328 339 329 340 void callMurachi(); 341 void downloadSignedFile(); 342 343 QString executeRest(const QString &url, const QString &name, const QString &pass, QHttpMultiPart *postData); 330 344 private: 331 345 Q_DISABLE_COPY(MainWindow) … … 560 574 561 575 QString currentHash; 576 QString fileId; 577 QString signedfile; 562 578 QNetworkCookieJar *cookiesJar; 563 579 564 580 QNetworkAccessManager *manager; 581 QNetworkReply *response; 582 QUrl url; 583 QFile localFile; 584 565 585 //_______________________________________________________________________ 566 586 bool m_bookmarksMenuIsDirty;
Note: See TracChangeset
for help on using the changeset viewer.