aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/model/GFBuffer.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-24 06:55:40 +0000
committersaturneric <[email protected]>2023-12-24 06:55:40 +0000
commit8f1844b23ea137e645800c8ed0ec5a50f33787fe (patch)
tree31ee73588483de365654f638478ccb7a11c0a188 /src/core/model/GFBuffer.h
parentfix: test the initialization of gui application (diff)
downloadGpgFrontend-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.h4
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_;
};