Pkg: qualified ID accessor.
This commit is contained in:
parent
dd2bf418b9
commit
083b364afd
@ -135,6 +135,11 @@ std::string Package::id() const
|
||||
return m_props->getStringValue("id");
|
||||
}
|
||||
|
||||
std::string Package::qualifiedId() const
|
||||
{
|
||||
return m_catalog->id() + "." + id();
|
||||
}
|
||||
|
||||
std::string Package::md5() const
|
||||
{
|
||||
return m_props->getStringValue("md5");
|
||||
|
@ -59,6 +59,11 @@ public:
|
||||
bool isInstalled() const;
|
||||
|
||||
std::string id() const;
|
||||
|
||||
/**
|
||||
* Fully-qualified ID, including our catalog'd ID
|
||||
*/
|
||||
std::string qualifiedId() const;
|
||||
|
||||
/**
|
||||
* human-readable name - note this is probably not localised,
|
||||
|
Loading…
Reference in New Issue
Block a user