|
CARDS 2.3.99
Package manager for the NuTyX GNU/Linux distribution
|
Interface Class to access Cards Library Method through inheritence. More...
#include <cards_client.h>
Protected Member Functions | |
| Cards_client () | |
| Constructor. More... | |
| ~Cards_client () | |
| Destructor. More... | |
| set< string > | ListOfInstalledPackages () |
| Get list of installed package. More... | |
| void | InstallPackages (const set< string > &pPackageList) |
| Install a package list. More... | |
| void | RemovePackages (const set< string > &pPackageList) |
| Remove a package list. More... | |
Protected Member Functions inherited from Pkgdbh | |
| std::set< std::string > | getFilesOfPackage (const std::string &packageName) |
| int | getListOfPackageNames (const std::string &path) |
| std::pair< std::string, pkginfo_t > | getInfosPackage (const std::string &packageName) |
| void | buildSimpleDatabase () |
| void | buildCompleteDatabase (const bool &silent) |
| void | buildDatabase (const bool &progress, const bool &simple, const bool &all, const bool &files, const std::string &packageName) |
| void | addPackageFilesRefsToDB (const std::string &name, const pkginfo_t &info) |
| bool | checkPackageNameUptodate (const std::pair< std::string, pkginfo_t > &archiveName) |
| bool | checkPackageNameBuildDateSame (const std::pair< std::string, time_t > &dependencieNameBuild) |
| void | removePackageFiles (const std::string &name) |
| void | removePackageFiles (const std::string &name, const std::set< std::string > &keep_list) |
| void | removePackageFilesRefsFromDB (const std::string &name) |
| void | removePackageFilesRefsFromDB (std::set< std::string > files, const std::set< std::string > &keep_list) |
| std::set< std::string > | getConflictsFilesList (const std::string &name, const pkginfo_t &info) |
| std::pair< std::string, pkginfo_t > | openArchivePackage (const std::string &filename) |
| std::set< std::pair< std::string, time_t > > | getPackageDependencies (const std::string &filename) |
| void | extractAndRunPREfromPackage (const std::string &filename) |
| void | installArchivePackage (const std::string &filename, const std::set< std::string > &keep_list, const std::set< std::string > &non_install_files) |
| void | moveMetaFilesPackage (const std::string &name, pkginfo_t &info) |
| void | readRulesFile () |
| void | getInstallRulesList (const std::vector< rule_t > &rules, rule_event_t event, std::vector< rule_t > &found) const |
| bool | checkRuleAppliesToFile (const rule_t &rule, const std::string &file) |
| void | getFootprintPackage (std::string &filename) |
| std::set< std::string > | getFilesOfPackage (const std::string &packageName) |
| int | getListOfPackageNames (const std::string &path) |
| std::pair< std::string, pkginfo_t > | getInfosPackage (const std::string &packageName) |
| void | buildSimpleDatabase () |
| void | buildCompleteDatabase (const bool &silent) |
| void | buildDatabase (const bool &progress, const bool &simple, const bool &all, const bool &files, const std::string &packageName) |
| void | addPackageFilesRefsToDB (const std::string &name, const pkginfo_t &info) |
| bool | checkPackageNameUptodate (const std::pair< std::string, pkginfo_t > &archiveName) |
| bool | checkPackageNameBuildDateSame (const std::pair< std::string, time_t > &dependencieNameBuild) |
| void | removePackageFiles (const std::string &name) |
| void | removePackageFiles (const std::string &name, const std::set< std::string > &keep_list) |
| void | removePackageFilesRefsFromDB (const std::string &name) |
| void | removePackageFilesRefsFromDB (std::set< std::string > files, const std::set< std::string > &keep_list) |
| std::set< std::string > | getConflictsFilesList (const std::string &name, const pkginfo_t &info) |
| std::pair< std::string, pkginfo_t > | openArchivePackage (const std::string &filename) |
| std::set< std::pair< std::string, time_t > > | getPackageDependencies (const std::string &filename) |
| void | extractAndRunPREfromPackage (const std::string &filename) |
| void | installArchivePackage (const std::string &filename, const std::set< std::string > &keep_list, const std::set< std::string > &non_install_files) |
| void | moveMetaFilesPackage (const std::string &name, pkginfo_t &info) |
| void | readRulesFile () |
| void | getInstallRulesList (const std::vector< rule_t > &rules, rule_event_t event, std::vector< rule_t > &found) const |
| bool | checkRuleAppliesToFile (const rule_t &rule, const std::string &file) |
| void | getFootprintPackage (std::string &filename) |
Protected Member Functions inherited from Pkgrepo | |
| int | parseConfig (const char *fileName) |
| void | parsePkgRepoCollectionFile () |
| void | parseCollectionDirectory () |
| void | parseCurrentPackagePkgRepoFile () |
| void | parsePackagePkgfileFile () |
| int | parseConfig (const char *fileName) |
| void | parsePkgRepoCollectionFile () |
| void | parseCollectionDirectory () |
| void | parseCurrentPackagePkgRepoFile () |
| void | parsePackagePkgfileFile () |
Additional Inherited Members | |
Public Member Functions inherited from Pkginst | |
| Pkginst (const std::string &commandName, const char *configFileName) | |
| void | generateDependencies (const std::pair< std::string, time_t > &packageName) |
| void | generateDependencies () |
| Pkginst (const std::string &commandName, const char *configFileName) | |
| void | generateDependencies (const std::pair< std::string, time_t > &packageName) |
| void | generateDependencies () |
Public Member Functions inherited from Pkgadd | |
| Pkgadd () | |
| Pkgadd (const std::string &commandName) | |
| void | parseArguments (int argc, char **argv) |
| void | preRun () |
| void | postRun () |
| virtual void | run () |
| virtual void | run (int argc, char **argv) |
| virtual void | printHelp () const |
| Pkgadd () | |
| Pkgadd (const std::string &commandName) | |
| void | parseArguments (int argc, char **argv) |
| void | preRun () |
| void | postRun () |
| virtual void | run () |
| virtual void | run (int argc, char **argv) |
| virtual void | printHelp () const |
Public Member Functions inherited from Pkgdbh | |
| Pkgdbh (const std::string &name) | |
| virtual void | progressInfo () const |
| virtual void | treatErrors (const std::string &s) const |
| void | print_version () const |
| int | getNumberOfPackages () |
| std::set< std::string > | getListOfPackageName () |
| bool | checkPackageNameExist (const std::string &name) const |
| Pkgdbh (const std::string &name) | |
| virtual void | progressInfo () const |
| virtual void | treatErrors (const std::string &s) const |
| void | print_version () const |
| int | getNumberOfPackages () |
| std::set< std::string > | getListOfPackageName () |
| bool | checkPackageNameExist (const std::string &name) const |
Public Member Functions inherited from Repodwl | |
| Repodwl (const char *fileName) | |
| void | downloadPortsPkgRepo (const std::string &packageName) |
| void | downloadPackageFileName (const std::string &packageFileName) |
| bool | checkBinaryExist (const std::string &packageName) |
| std::string | getPackageFileName (const std::string &packageName) |
| std::string | getPackageFileNameSignature (const std::string &packageName) |
| Repodwl (const char *fileName) | |
| void | downloadPortsPkgRepo (const std::string &packageName) |
| void | downloadPackageFileName (const std::string &packageFileName) |
| bool | checkBinaryExist (const std::string &packageName) |
| std::string | getPackageFileName (const std::string &packageName) |
| std::string | getPackageFileNameSignature (const std::string &packageName) |
Public Member Functions inherited from Pkgrepo | |
| Pkgrepo (const std::string &fileName) | |
| std::set< std::string > | getListOutOfDate () |
| std::string | getPortDir (const std::string &portName) |
| std::string | getBasePortName (const std::string &portName) |
| std::string | getBasePackageName (const std::string &packageName) |
| std::string | getBasePackageVersion (const std::string &packageName) |
| std::string | getPortVersion (const std::string &portName) |
| int | getBasePackageRelease (const std::string &packageName) |
| int | getPortRelease (const std::string &portName) |
| bool | checkPortExist (const std::string &portName) |
| std::set< std::string > | getListOfPackagesFromCollection (const std::string &collectionName) |
| time_t | getBinaryBuildTime (const std::string &portName) |
| std::set< std::string > | getBinaryPackageList () |
| std::vector< RepoInfo > | getRepoInfo () |
| unsigned int | getPortsList () |
| bool | getBinaryPackageInfo (const std::string &packageName) |
| bool | getPortInfo (const std::string &portName) |
| Pkgrepo (const std::string &fileName) | |
| std::set< std::string > | getListOutOfDate () |
| std::string | getPortDir (const std::string &portName) |
| std::string | getBasePortName (const std::string &portName) |
| std::string | getBasePackageName (const std::string &packageName) |
| std::string | getBasePackageVersion (const std::string &packageName) |
| std::string | getPortVersion (const std::string &portName) |
| int | getBasePackageRelease (const std::string &packageName) |
| int | getPortRelease (const std::string &portName) |
| bool | checkPortExist (const std::string &portName) |
| std::set< std::string > | getListOfPackagesFromCollection (const std::string &collectionName) |
| time_t | getBinaryBuildTime (const std::string &portName) |
| std::set< std::string > | getBinaryPackageList () |
| std::vector< RepoInfo > | getRepoInfo () |
| unsigned int | getPortsList () |
| bool | getBinaryPackageInfo (const std::string &packageName) |
| bool | getPortInfo (const std::string &portName) |
Static Public Member Functions inherited from Pkgrepo | |
| static int | parseConfig (const char *fileName, Config &config) |
| static int | parseConfig (const char *fileName, Config &config) |
Protected Attributes inherited from Pkginst | |
| std::vector< std::string > | m_dependenciesList |
Protected Attributes inherited from Pkgadd | |
| bool | m_runPrePost |
| bool | m_upgrade |
| bool | m_force |
Protected Attributes inherited from Pkgdbh | |
| std::string | m_packageArchiveName |
| std::string | m_packageName |
| std::string | m_packageArchiveVersion |
| std::string | m_packageArchiveRelease |
| std::string | m_packageArchiveCollection |
| std::string | m_packageVersion |
| std::string | m_packageRelease |
| std::string | m_packageCollection |
| std::string | m_utilName |
| std::string | m_root |
| std::string | m_build |
| std::vector< rule_t > | m_actionRules |
| std::set< std::pair< std::string, int > > | m_postInstallList |
| alias_t | m_listOfAlias |
| packages_t | m_listOfInstPackages |
| packages_t | m_listOfDepotPackages |
| action | m_actualAction |
| error | m_actualError |
Protected Attributes inherited from Pkgrepo | |
| bool | m_parsePkgRepoCollectionFile |
| bool | m_parseCollectionDirectory |
| bool | m_parsePackagePkgfileFile |
| std::vector< PortsDirectory >::iterator | m_PortsDirectory_i |
| std::vector< BasePackageInfo >::iterator | m_BasePackageInfo_i |
| std::vector< PortFilesList >::iterator | m_PortFilesList_i |
| std::vector< PortFilesList > | m_portFilesList |
| std::string | m_packageFileName |
| std::string | m_packageFileNameSignature |
| std::string | m_configFileName |
| Config | m_config |
| std::vector< PortsDirectory > | m_portsDirectoryList |
Interface Class to access Cards Library Method through inheritence.
This class ensure interface cards with GUI application need non-blocking operation, This is a single instance (singleton) that ensure only one instance of cards library.
|
protected |
Constructor.
Constructor of Cards_client class
|
protected |
|
protected |
Install a package list.
Launch Cards Install process
|
protected |
Get list of installed package.
Get a string list of installed packages.
Return string array content installed package
|
protected |
Remove a package list.
Install a package list.
Launch Cards Remove process