void KSSLD::cacheReload() { cacheClearList(); delete cfg; cfg = new KSimpleConfig("ksslpolicies", false); cacheLoadDefaultPolicies(); }
KSSLD::KSSLD(const QCString &name) : KDEDModule(name) { // ----------------------- FOR THE CACHE ------------------------------------ cfg = new KSimpleConfig("ksslpolicies", false); if (!KGlobal::dirs()->addResourceType("kssl", KStandardDirs::kde_default("data") + "kssl")) { // kdDebug(7029) << "Error adding (kssl, share/apps/kssl)" << endl; } cacheLoadDefaultPolicies(); certList.setAutoDelete(false); kossl = KOSSL::self(); // ----------------------- FOR THE HOME ------------------------------------- }
KSSLD::KSSLD(const TQCString &name) : KDEDModule(name) { // ----------------------- FOR THE CACHE ------------------------------------ cfg = new KSimpleConfig("ksslpolicies", false); cfg->setGroup("General"); if (2 != cfg->readNumEntry("policies version", 0)) { ::updatePoliciesConfig(cfg); } TDEGlobal::dirs()->addResourceType("kssl", TDEStandardDirs::kde_default("data") + "kssl"); caVerifyUpdate(); cacheLoadDefaultPolicies(); certList.setAutoDelete(false); kossl = KOSSL::self(); // ----------------------- FOR THE HOME ------------------------------------- }