Pacm module

PackagePair

Pairing of the installed and remote metadata for the same package ID.

#include <icy/pacm/package.h>

struct PackagePair

Defined in src/pacm/include/icy/pacm/package.h:328

Public Attributes

ReturnNameDescription
LocalPackage *localReturns true if there are no possible updates for this package, false otherwise.
RemotePackage *remote

local

LocalPackage * local

Type: LocalPackage *

Defined in src/pacm/include/icy/pacm/package.h:357

Returns true if there are no possible updates for this package, false otherwise.


remote

RemotePackage * remote

Type: RemotePackage *

Defined in src/pacm/include/icy/pacm/package.h:358

Public Methods

ReturnNameDescription
PackagePair
~PackagePair virtualDefaulted destructor.
boolvalid virtual constReturns true if at least one of local/remote is set and that pointer is itself valid().
std::stringid constReturns the package ID, preferring the local package if available.
std::stringname constReturns the package display name, preferring the local package if available.
std::stringtype constReturns the package type, preferring the local package if available.
std::stringauthor constReturns the package author, preferring the local package if available.
boolhasExtension constReturns true when either side carries extension metadata.

PackagePair

PackagePair(LocalPackage * local = nullptr, RemotePackage * remote = nullptr)

Defined in src/pacm/include/icy/pacm/package.h:332

Parameters

ParameterTypeDescription
localLocalPackage *Pointer to the locally installed package, or nullptr if not installed.
remoteRemotePackage *Pointer to the remote package record, or nullptr if not known.

~PackagePair

virtual

virtual ~PackagePair() = default

Defined in src/pacm/include/icy/pacm/package.h:333

Defaulted destructor.


valid

virtual const

virtual bool valid() const

Defined in src/pacm/include/icy/pacm/package.h:336

Returns true if at least one of local/remote is set and that pointer is itself valid().


id

const

std::string id() const

Defined in src/pacm/include/icy/pacm/package.h:339

Returns the package ID, preferring the local package if available.


name

const

std::string name() const

Defined in src/pacm/include/icy/pacm/package.h:342

Returns the package display name, preferring the local package if available.


type

const

std::string type() const

Defined in src/pacm/include/icy/pacm/package.h:345

Returns the package type, preferring the local package if available.


author

const

std::string author() const

Defined in src/pacm/include/icy/pacm/package.h:348

Returns the package author, preferring the local package if available.


hasExtension

const

bool hasExtension() const

Defined in src/pacm/include/icy/pacm/package.h:351

Returns true when either side carries extension metadata.