Heart 1.3.848.aa44c26
Heart is base back end library for your c++ Qt projects.
|
The PakcageManager class contains all processed packages. Working like a cache of packages. More...
#include <packagemanager.h>
Public Member Functions | |
PackageManager () | |
~PackageManager () | |
const Package * | getPkgFromArhive (const unsigned int &id) const |
getPkgFromArhive This method return pointer to package from archive. | |
bool | contains (const unsigned int &id) const |
contains This method checks if the package contains in this container by id. | |
void | processed (const Package &pkg, char processResult) |
processed This method add a package to the archive. | |
The PakcageManager class contains all processed packages. Working like a cache of packages.
Definition at line 25 of file packagemanager.h.
QH::PackageManager::PackageManager | ( | ) |
Definition at line 18 of file packagemanager.cpp.
QH::PackageManager::~PackageManager | ( | ) |
Definition at line 23 of file packagemanager.cpp.
bool QH::PackageManager::contains | ( | const unsigned int & | id | ) | const |
contains This method checks if the package contains in this container by id.
id | This is unique key of package. In Default implementation it is qHash of package. |
Definition at line 39 of file packagemanager.cpp.
const Package * QH::PackageManager::getPkgFromArhive | ( | const unsigned int & | id | ) | const |
getPkgFromArhive This method return pointer to package from archive.
id | This is id of the requirement package. |
Definition at line 31 of file packagemanager.cpp.
void QH::PackageManager::processed | ( | const Package & | pkg, |
char | processResult | ||
) |
processed This method add a package to the archive.
pkg | This is object of the package. |
processResult | This is result of method parsePackage. For more information see ParserResult enum. |
Definition at line 44 of file packagemanager.cpp.