diff options
author | saturneric <[email protected]> | 2023-12-24 06:55:40 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-24 06:55:40 +0000 |
commit | 8f1844b23ea137e645800c8ed0ec5a50f33787fe (patch) | |
tree | 31ee73588483de365654f638478ccb7a11c0a188 /src/core/model/GFBuffer.h | |
parent | fix: test the initialization of gui application (diff) | |
download | GpgFrontend-8f1844b23ea137e645800c8ed0ec5a50f33787fe.tar.gz GpgFrontend-8f1844b23ea137e645800c8ed0ec5a50f33787fe.zip |
fix: test the encrypt async api on gui app
Diffstat (limited to 'src/core/model/GFBuffer.h')
-rw-r--r-- | src/core/model/GFBuffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/model/GFBuffer.h b/src/core/model/GFBuffer.h index 297c5fc7..cc233e86 100644 --- a/src/core/model/GFBuffer.h +++ b/src/core/model/GFBuffer.h @@ -43,6 +43,8 @@ class GPGFRONTEND_CORE_EXPORT GFBuffer { explicit GFBuffer(QByteArray buffer); + explicit GFBuffer(QString str); + auto operator==(const GFBuffer& o) const -> bool; auto Data() -> std::byte*; @@ -51,6 +53,8 @@ class GPGFRONTEND_CORE_EXPORT GFBuffer { auto Size() -> size_t; + auto ConvertToQByteArray() -> QByteArray; + private: std::shared_ptr<std::vector<std::byte>> buffer_; }; |