libzypp 8.13.6
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Friends

zypp::PublicKey::Impl Struct Reference

PublicKey implementation. More...

List of all members.

Public Member Functions

 Impl ()
 Impl (const Pathname &keyfile)
 Impl (const filesystem::TmpFile &sharedfile)
std::string asString () const
std::string id () const
std::string name () const
std::string fingerprint () const
std::string gpgPubkeyVersion () const
std::string gpgPubkeyRelease () const
Date created () const
Date expires () const
std::string expiresAsString () const
Pathname path () const
bool expired () const
int daysToLive () const

Static Public Member Functions

static shared_ptr< Implnullimpl ()
 Offer default Impl.

Protected Member Functions

void readFromFile ()

Private Member Functions

Implclone () const
 clone for RWCOW_pointer

Private Attributes

filesystem::TmpFile _data_file
std::string _id
std::string _name
std::string _fingerprint
Date _created
Date _expires

Friends

ImplrwcowClone (const Impl *rhs)

Detailed Description

PublicKey implementation.

Definition at line 44 of file PublicKey.cc.


Constructor & Destructor Documentation

zypp::PublicKey::Impl::Impl ( ) [inline]

Definition at line 46 of file PublicKey.cc.

Referenced by clone().

zypp::PublicKey::Impl::Impl ( const Pathname &  keyfile) [inline]
zypp::PublicKey::Impl::Impl ( const filesystem::TmpFile sharedfile) [inline]

Definition at line 63 of file PublicKey.cc.

References readFromFile().


Member Function Documentation

static shared_ptr<Impl> zypp::PublicKey::Impl::nullimpl ( ) [inline, static]

Offer default Impl.

Definition at line 69 of file PublicKey.cc.

std::string zypp::PublicKey::Impl::asString ( ) const [inline]

Definition at line 75 of file PublicKey.cc.

References created(), daysToLive(), fingerprint(), zypp::str::form(), zypp::str::hexstring(), and name().

Referenced by readFromFile().

std::string zypp::PublicKey::Impl::id ( ) const [inline]

Definition at line 84 of file PublicKey.cc.

References _id.

std::string zypp::PublicKey::Impl::name ( ) const [inline]

Definition at line 87 of file PublicKey.cc.

References _name.

Referenced by asString().

std::string zypp::PublicKey::Impl::fingerprint ( ) const [inline]

Definition at line 90 of file PublicKey.cc.

References _fingerprint.

Referenced by asString().

std::string zypp::PublicKey::Impl::gpgPubkeyVersion ( ) const [inline]

Definition at line 93 of file PublicKey.cc.

References _id, and zypp::str::toLower().

std::string zypp::PublicKey::Impl::gpgPubkeyRelease ( ) const [inline]

Definition at line 96 of file PublicKey.cc.

References _created, and zypp::str::hexstring().

Date zypp::PublicKey::Impl::created ( ) const [inline]

Definition at line 99 of file PublicKey.cc.

References _created.

Referenced by asString().

Date zypp::PublicKey::Impl::expires ( ) const [inline]

Definition at line 102 of file PublicKey.cc.

References _expires.

Referenced by daysToLive(), and expired().

std::string zypp::PublicKey::Impl::expiresAsString ( ) const [inline]

Definition at line 105 of file PublicKey.cc.

References _, _expires, _PL, zypp::Date::asString(), daysToLive(), and zypp::str::form().

Pathname zypp::PublicKey::Impl::path ( ) const [inline]

Definition at line 132 of file PublicKey.cc.

References _data_file, and zypp::filesystem::TmpPath::path().

bool zypp::PublicKey::Impl::expired ( ) const [inline]

Definition at line 135 of file PublicKey.cc.

References expires(), and zypp::Date::now().

int zypp::PublicKey::Impl::daysToLive ( ) const [inline]

Definition at line 141 of file PublicKey.cc.

References zypp::Date::day, expires(), and zypp::Date::now().

Referenced by asString(), and expiresAsString().

void zypp::PublicKey::Impl::readFromFile ( ) [inline, protected]
Impl* zypp::PublicKey::Impl::clone ( ) const [inline, private]

clone for RWCOW_pointer

Definition at line 262 of file PublicKey.cc.

References Impl().


Friends And Related Function Documentation

Impl* rwcowClone ( const Impl rhs) [friend]

Member Data Documentation

Definition at line 251 of file PublicKey.cc.

Referenced by Impl(), path(), and readFromFile().

std::string zypp::PublicKey::Impl::_id [private]

Definition at line 253 of file PublicKey.cc.

Referenced by gpgPubkeyVersion(), id(), and readFromFile().

std::string zypp::PublicKey::Impl::_name [private]

Definition at line 254 of file PublicKey.cc.

Referenced by name(), and readFromFile().

std::string zypp::PublicKey::Impl::_fingerprint [private]

Definition at line 255 of file PublicKey.cc.

Referenced by fingerprint(), and readFromFile().

Definition at line 256 of file PublicKey.cc.

Referenced by created(), gpgPubkeyRelease(), and readFromFile().

Definition at line 257 of file PublicKey.cc.

Referenced by expires(), expiresAsString(), and readFromFile().


The documentation for this struct was generated from the following file: