Pkg: qualified ID accessor.

This commit is contained in:
James Turner 2014-06-12 08:50:09 +01:00
parent dd2bf418b9
commit 083b364afd
2 changed files with 10 additions and 0 deletions

View File

@ -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");

View File

@ -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.