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");
|
return m_props->getStringValue("id");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string Package::qualifiedId() const
|
||||||
|
{
|
||||||
|
return m_catalog->id() + "." + id();
|
||||||
|
}
|
||||||
|
|
||||||
std::string Package::md5() const
|
std::string Package::md5() const
|
||||||
{
|
{
|
||||||
return m_props->getStringValue("md5");
|
return m_props->getStringValue("md5");
|
||||||
|
@ -60,6 +60,11 @@ public:
|
|||||||
|
|
||||||
std::string id() 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,
|
* human-readable name - note this is probably not localised,
|
||||||
* although this is not ruled out for the future.
|
* although this is not ruled out for the future.
|
||||||
|
Loading…
Reference in New Issue
Block a user