PackagePair
#include <icy/pacm/package.h>
struct PackagePairDefined in src/pacm/include/icy/pacm/package.h:328
Public Attributes
| Return | Name | Description |
|---|---|---|
LocalPackage * | local | Returns true if there are no possible updates for this package, false otherwise. |
RemotePackage * | remote |
local
LocalPackage * localType: 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 * remoteType: RemotePackage *
Defined in src/pacm/include/icy/pacm/package.h:358
Public Methods
| Return | Name | Description |
|---|---|---|
PackagePair | ||
~PackagePair virtual | Defaulted destructor. | |
bool | valid virtual const | Returns true if at least one of local/remote is set and that pointer is itself valid(). |
std::string | id const | Returns the package ID, preferring the local package if available. |
std::string | name const | Returns the package display name, preferring the local package if available. |
std::string | type const | Returns the package type, preferring the local package if available. |
std::string | author const | Returns the package author, preferring the local package if available. |
bool | hasExtension const | Returns 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
| Parameter | Type | Description |
|---|---|---|
local | LocalPackage * | Pointer to the locally installed package, or nullptr if not installed. |
remote | RemotePackage * | Pointer to the remote package record, or nullptr if not known. |
~PackagePair
virtual
virtual ~PackagePair() = defaultDefined in src/pacm/include/icy/pacm/package.h:333
Defaulted destructor.
valid
virtual const
virtual bool valid() constDefined 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() constDefined in src/pacm/include/icy/pacm/package.h:339
Returns the package ID, preferring the local package if available.
name
const
std::string name() constDefined 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() constDefined in src/pacm/include/icy/pacm/package.h:345
Returns the package type, preferring the local package if available.
author
const
std::string author() constDefined in src/pacm/include/icy/pacm/package.h:348
Returns the package author, preferring the local package if available.
hasExtension
const
bool hasExtension() constDefined in src/pacm/include/icy/pacm/package.h:351
Returns true when either side carries extension metadata.
