xca/lib/db_key.cpp
chris cf347d7d4a removed changes of yesterday
all data is loaded in containers on startup
2002-07-10 00:21:45 +00:00

30 lines
535 B
C++

#include "db_key.h"
db_key::db_key(DbEnv *dbe, string DBfile, string DB, QListBox *l)
:db_base(dbe, DBfile, DB, l)
{
loadContainer();
updateView();
}
pki_base *db_key::newPKI(){
return new pki_key("");
}
QStringList db_key::getPrivateDesc()
{
pki_key *pki;
QStringList x;
for ( pki = (pki_key *)container.first(); pki != 0; pki = (pki_key *)container.next() ) {
cerr << pki->getDescription().c_str();
if (pki->isPrivKey()) {
x.append(pki->getDescription().c_str());
cerr << "found " <<endl;
}
}
return x;
}