GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::GpgData Class Reference
Collaboration diagram for GpgFrontend::GpgData:
Collaboration graph

Classes

struct  DataRefDeleter
 

Public Member Functions

 GpgData ()
 Construct a new Gpg Data object.
 
 GpgData (const void *buffer, size_t size, bool copy=true)
 Construct a new Gpg Data object. More...
 
 GpgData (int fd)
 Construct a new Gpg Data object. More...
 
 GpgData (std::shared_ptr< GFDataExchanger >)
 Construct a new Gpg Data object. More...
 
 GpgData (const QString &path, bool read)
 Construct a new Gpg Data object. More...
 
 GpgData (GFBuffer)
 Construct a new Gpg Data object.
 
 ~GpgData ()
 Destroy the Gpg Data object.
 
 operator gpgme_data_t ()
 
auto Read2GFBuffer () -> GFBuffer
 

Private Attributes

GFBuffer cached_buffer_
 
std::unique_ptr< struct gpgme_data, DataRefDeleterdata_ref_ = nullptr
 
FILE * fp_ = nullptr
 
int fd_ = -1
 
struct gpgme_data_cbs data_cbs_
 
std::shared_ptr< GFDataExchangerdata_ex_
 

Constructor & Destructor Documentation

◆ GpgData() [1/4]

GpgFrontend::GpgData::GpgData ( const void *  buffer,
size_t  size,
bool  copy = true 
)

Construct a new Gpg Data object.

Parameters
buffer
size
copy

◆ GpgData() [2/4]

GpgFrontend::GpgData::GpgData ( int  fd)
explicit

Construct a new Gpg Data object.

Parameters
fd

◆ GpgData() [3/4]

GpgFrontend::GpgData::GpgData ( std::shared_ptr< GFDataExchanger ex)
explicit

Construct a new Gpg Data object.

Parameters
fd

◆ GpgData() [4/4]

GpgFrontend::GpgData::GpgData ( const QString &  path,
bool  read 
)
explicit

Construct a new Gpg Data object.

Parameters
path

Member Function Documentation

◆ operator gpgme_data_t()

GpgFrontend::GpgData::operator gpgme_data_t ( )
Returns
gpgme_data_t

◆ Read2GFBuffer()


The documentation for this class was generated from the following files: