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

Classes

class  Impl
 

Public Member Functions

 GpgKeyGetter (int channel=kGpgFrontendDefaultChannel)
 Construct a new Gpg Key Getter object. More...
 
 ~GpgKeyGetter ()
 Destroy the Gpg Key Getter object.
 
auto GetKey (const QString &key_id, bool use_cache=true) -> GpgKey
 Get the Key object. More...
 
auto GetKeys (const KeyIdArgsListPtr &key_ids) -> KeyListPtr
 Get the Keys object. More...
 
auto GetPubkey (const QString &key_id, bool use_cache=true) -> GpgKey
 Get the Pubkey object. More...
 
auto FetchKey () -> KeyLinkListPtr
 Get all the keys by receiving a linked list. More...
 
auto FlushKeyCache () -> bool
 flush the keys in the cache
 
auto GetKeysCopy (const KeyListPtr &keys) -> KeyListPtr
 Get the Keys Copy object. More...
 
auto GetKeysCopy (const KeyLinkListPtr &keys) -> KeyLinkListPtr
 Get the Keys Copy object. More...
 
- Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< GpgKeyGetter >
 SingletonFunctionObject (const SingletonFunctionObject< GpgKeyGetter > &)=delete
 prohibit copy
 
 SingletonFunctionObject (GpgKeyGetter &&)=delete
 Construct a new Singleton Function Object object.
 
 SingletonFunctionObject (const GpgKeyGetter &)=delete
 Construct a new Singleton Function Object object.
 
auto operator= (const SingletonFunctionObject< GpgKeyGetter > &) -> SingletonFunctionObject &=delete
 prohibit copy More...
 
void operator= (const GpgKeyGetter &)=delete
 
auto GetChannel () const -> int
 Get the Channel object. More...
 
- Public Member Functions inherited from GpgFrontend::ChannelObject
 ChannelObject () noexcept
 Construct a new Default Channel Object object.
 
virtual ~ChannelObject () noexcept
 Destroy the Channel Object object.
 
 ChannelObject (int channel, QString type)
 Construct a new Channel Object object. More...
 
auto GetChannel () const -> int
 Get the Channel object. More...
 
void SetChannel (int channel)
 Set the Channel object. More...
 

Private Attributes

SecureUniquePtr< Implp_
 

Additional Inherited Members

- Static Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< GpgKeyGetter >
static auto GetInstance (int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> GpgKeyGetter &
 Get the Instance object. More...
 
static auto CreateInstance (int channel, const std::function< ChannelObjectPtr(void)> &factory) -> GpgKeyGetter &
 Create a Instance object. More...
 
static void ReleaseChannel (int channel)
 
static auto GetDefaultChannel () -> int
 Get the Default Channel object. More...
 
static auto GetAllChannelId () -> std::vector< int >
 Get all the channel ids. More...
 
- Static Public Member Functions inherited from GpgFrontend::ChannelObject
static auto GetDefaultChannel () -> int
 Get the Default Channel object. More...
 
- Protected Member Functions inherited from GpgFrontend::SingletonFunctionObject< GpgKeyGetter >
 SingletonFunctionObject ()=default
 Construct a new Singleton Function Object object.
 
 SingletonFunctionObject (int channel)
 Construct a new Singleton Function Object object. More...
 
virtual ~SingletonFunctionObject ()=default
 Destroy the Singleton Function Object object.
 

Constructor & Destructor Documentation

◆ GpgKeyGetter()

GpgFrontend::GpgKeyGetter::GpgKeyGetter ( int  channel = kGpgFrontendDefaultChannel)
explicit

Construct a new Gpg Key Getter object.

Parameters
channel

Member Function Documentation

◆ FetchKey()

auto GpgFrontend::GpgKeyGetter::FetchKey ( ) -> KeyLinkListPtr

Get all the keys by receiving a linked list.

Returns
KeyLinkListPtr

◆ GetKey()

auto GpgFrontend::GpgKeyGetter::GetKey ( const QString &  key_id,
bool  use_cache = true 
) -> GpgKey

Get the Key object.

Parameters
fpr
Returns
GpgKey

◆ GetKeys()

auto GpgFrontend::GpgKeyGetter::GetKeys ( const KeyIdArgsListPtr &  key_ids) -> KeyListPtr

Get the Keys object.

Parameters
ids
Returns
KeyListPtr

◆ GetKeysCopy() [1/2]

auto GpgFrontend::GpgKeyGetter::GetKeysCopy ( const KeyLinkListPtr &  keys) -> KeyLinkListPtr

Get the Keys Copy object.

Parameters
keys
Returns
KeyLinkListPtr

◆ GetKeysCopy() [2/2]

auto GpgFrontend::GpgKeyGetter::GetKeysCopy ( const KeyListPtr &  keys) -> KeyListPtr

Get the Keys Copy object.

Parameters
keys
Returns
KeyListPtr

◆ GetPubkey()

auto GpgFrontend::GpgKeyGetter::GetPubkey ( const QString &  key_id,
bool  use_cache = true 
) -> GpgKey

Get the Pubkey object.

Parameters
fpr
Returns
GpgKey

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