#include <icy/pacm/package.h>Pairing of the installed and remote metadata for the same package ID.
| Return | Name | Description |
|---|---|---|
LocalPackage * | local | Returns true if there are no possible updates for this package, false otherwise. |
RemotePackage * | remote |
LocalPackage * localReturns true if there are no possible updates for this package, false otherwise.
RemotePackage * remote| Return | Name | Description |
|---|---|---|
PackagePair | #### Parameters | |
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. |
PackagePair(LocalPackage * local, RemotePackage * remote)local Pointer to the locally installed package, or nullptr if not installed.
remote Pointer to the remote package record, or nullptr if not known.
virtual const
virtual bool valid() constReturns true if at least one of local/remote is set and that pointer is itself valid().
const
std::string id() constReturns the package ID, preferring the local package if available.
const
std::string name() constReturns the package display name, preferring the local package if available.
const
std::string type() constReturns the package type, preferring the local package if available.
const
std::string author() constReturns the package author, preferring the local package if available.