Logo Search packages:      
Sourcecode: qapt version File versions  Download package

bool QApt::Backend::init (  ) 

Initializes the Apt database for usage. It sets up everything the backend will need to perform all operations. Please note that you _MUST_ call this function before doing any further operations in the backend, or else risk encountering undefined behavior.

true if initialization was successful

false if there was a problem initializing

Definition at line 106 of file backend.cpp.

References reloadCache().

    if (!pkgInitConfig(*_config)) {
        return false;

    if (!pkgInitSystem(*_config, _system)) {
        return false;

    d->cache = new Cache(this);

    return true;

Generated by  Doxygen 1.6.0   Back to index