wccpostfilerequest.h 630 B

123456789101112131415161718192021222324252627282930
  1. #ifndef WCCPOSTFILEREQUEST_H
  2. #define WCCPOSTFILEREQUEST_H
  3. #include "wccnetworkrequestbase.h"
  4. #include "wccapi_export.h"
  5. #include <QFile>
  6. namespace WccNameSpace {
  7. namespace Internal {
  8. class WCCAPI_EXPORT WccPostFileRequest : public WccNetworkRequestBase
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit WccPostFileRequest(QObject *parent);
  13. WccPostFileRequest(QObject *parent, int id, const QString &url, const QString &fileName, const QByteArray &cookie, const QString &contentType = "");
  14. ~WccPostFileRequest();
  15. QFile* file();
  16. void requestFinished();
  17. private:
  18. QFile *m_sendFile;
  19. };
  20. }
  21. }
  22. #endif // WCCPOSTFILEREQUEST_H