qformdatabuilder.sip 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // qformdatabuilder.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtNetwork Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  8. //
  9. // This file may be used under the terms of the GNU General Public License
  10. // version 3.0 as published by the Free Software Foundation and appearing in
  11. // the file LICENSE included in the packaging of this file. Please review the
  12. // following information to ensure the GNU General Public License version 3.0
  13. // requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. //
  15. // If you do not wish to use this file under the terms of the GPL version 3.0
  16. // then you may purchase a commercial license. For more information contact
  17. // info@riverbankcomputing.com.
  18. //
  19. // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. %If (Qt_6_8_0 -)
  22. class QFormDataPartBuilder
  23. {
  24. %TypeHeaderCode
  25. #include <qformdatabuilder.h>
  26. %End
  27. public:
  28. QFormDataPartBuilder();
  29. QFormDataPartBuilder setBody(QByteArrayView data, QAnyStringView fileName = {}, QAnyStringView mimeType = {});
  30. QFormDataPartBuilder setBodyDevice(QIODevice *body, QAnyStringView fileName = {}, QAnyStringView mimeType = {});
  31. QFormDataPartBuilder setHeaders(const QHttpHeaders &headers);
  32. void swap(QFormDataPartBuilder &other /Constrained/);
  33. };
  34. %End
  35. %If (Qt_6_8_0 -)
  36. class QFormDataBuilder
  37. {
  38. %TypeHeaderCode
  39. #include <qformdatabuilder.h>
  40. %End
  41. public:
  42. enum class Option
  43. {
  44. Default,
  45. OmitRfc8187EncodedFilename,
  46. UseRfc7578PercentEncodedFilename,
  47. PreferLatin1EncodedFilename,
  48. StrictRfc7578,
  49. };
  50. typedef QFlags<QFormDataBuilder::Option> Options;
  51. QFormDataBuilder();
  52. ~QFormDataBuilder();
  53. void swap(QFormDataBuilder &other /Constrained/);
  54. QFormDataPartBuilder part(QAnyStringView name);
  55. QHttpMultiPart *buildMultiPart(QFormDataBuilder::Options options = {}) /Factory/;
  56. %MethodCode
  57. sipRes = sipCpp->buildMultiPart(*a0).release();
  58. %End
  59. private:
  60. %If (Qt_6_8_0 -)
  61. QFormDataBuilder(const QFormDataBuilder &);
  62. %End
  63. };
  64. %End