summaryrefslogtreecommitdiffstats
path: root/src/newstuff/manager.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2014-10-03 02:05:47 +0200
committerSlávek Banko <[email protected]>2014-10-03 02:05:47 +0200
commite4b4d01f652d8ae191a7ce029f8bb37f67f77fdb (patch)
treefe5a47fae20d118fbbd27f895d16ba37cba5eca6 /src/newstuff/manager.cpp
parent683b668876ba41533f2a0bc415c1f0268fb69e1a (diff)
downloadtellico-e4b4d01f652d8ae191a7ce029f8bb37f67f77fdb.tar.gz
tellico-e4b4d01f652d8ae191a7ce029f8bb37f67f77fdb.zip
Update for recent TDENewStuff changes
Diffstat (limited to 'src/newstuff/manager.cpp')
-rw-r--r--src/newstuff/manager.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/newstuff/manager.cpp b/src/newstuff/manager.cpp
index cfd2292..304a110 100644
--- a/src/newstuff/manager.cpp
+++ b/src/newstuff/manager.cpp
@@ -28,7 +28,7 @@
#include <tdeio/job.h>
#include <tdefileitem.h>
#include <tdeversion.h>
-#include <knewstuff/entry.h>
+#include <tdenewstuff/entry.h>
#include <kstandarddirs.h>
#include <tqfileinfo.h>
@@ -94,7 +94,7 @@ bool Manager::installTemplate(const KURL& url_, const TQString& entryName_) {
} else {
// remove ".xsl"
xslFile.truncate(xslFile.length()-4);
- TDEConfigGroup config(TDEGlobal::config(), "KNewStuffFiles");
+ TDEConfigGroup config(TDEGlobal::config(), "TDENewStuffFiles");
config.writeEntry(xslFile, allFiles);
m_urlNameMap.insert(url_, xslFile);
}
@@ -106,7 +106,7 @@ bool Manager::installTemplate(const KURL& url_, const TQString& entryName_) {
}
bool Manager::removeTemplate(const TQString& name_) {
- TDEConfigGroup fileGroup(TDEGlobal::config(), "KNewStuffFiles");
+ TDEConfigGroup fileGroup(TDEGlobal::config(), "TDENewStuffFiles");
TQStringList files = fileGroup.readListEntry(name_);
// at least, delete xsl file
if(files.isEmpty()) {
@@ -130,7 +130,7 @@ bool Manager::removeTemplate(const TQString& name_) {
// remove config entries even if unsuccessful
fileGroup.deleteEntry(name_);
- TDEConfigGroup statusGroup(TDEGlobal::config(), "KNewStuffStatus");
+ TDEConfigGroup statusGroup(TDEGlobal::config(), "TDENewStuffStatus");
TQString entryName = statusGroup.readEntry(name_);
statusGroup.deleteEntry(name_);
statusGroup.deleteEntry(entryName);
@@ -209,7 +209,7 @@ bool Manager::installScript(const KURL& url_) {
}
{
- TDEConfigGroup config(TDEGlobal::config(), "KNewStuffFiles");
+ TDEConfigGroup config(TDEGlobal::config(), "TDENewStuffFiles");
config.writeEntry(info->sourceName, archiveFiles(archiveDir));
m_urlNameMap.insert(url_, info->sourceName);
}
@@ -225,7 +225,7 @@ bool Manager::installScript(const KURL& url_) {
}
bool Manager::removeScript(const TQString& name_) {
- TDEConfigGroup fileGroup(TDEGlobal::config(), "KNewStuffFiles");
+ TDEConfigGroup fileGroup(TDEGlobal::config(), "TDENewStuffFiles");
TQStringList files = fileGroup.readListEntry(name_);
bool success = true;
@@ -244,7 +244,7 @@ bool Manager::removeScript(const TQString& name_) {
// remove config entries even if unsuccessful
fileGroup.deleteEntry(name_);
- TDEConfigGroup statusGroup(TDEGlobal::config(), "KNewStuffStatus");
+ TDEConfigGroup statusGroup(TDEGlobal::config(), "TDENewStuffStatus");
TQString entryName = statusGroup.readEntry(name_);
statusGroup.deleteEntry(name_);
statusGroup.deleteEntry(entryName);
@@ -253,7 +253,7 @@ bool Manager::removeScript(const TQString& name_) {
}
Tellico::NewStuff::InstallStatus Manager::installStatus(KNS::Entry* entry_) {
- TDEConfigGroup config(TDEGlobal::config(), "KNewStuffStatus");
+ TDEConfigGroup config(TDEGlobal::config(), "TDENewStuffStatus");
TQString datestring = config.readEntry(entry_->name());
if(datestring.isEmpty()) {
return NotInstalled;
@@ -268,7 +268,7 @@ Tellico::NewStuff::InstallStatus Manager::installStatus(KNS::Entry* entry_) {
}
// also check that executable files exists
- TDEConfigGroup fileGroup(TDEGlobal::config(), "KNewStuffFiles");
+ TDEConfigGroup fileGroup(TDEGlobal::config(), "TDENewStuffFiles");
TQStringList files = fileGroup.readListEntry(entry_->name());
TQString path = Tellico::saveLocation(TQString::fromLatin1("data-sources/"));
for(TQStringList::ConstIterator it = files.begin(); it != files.end(); ++it) {
@@ -394,7 +394,7 @@ void Manager::slotInstallFinished() {
if(newScript && newScript->successfulInstall()) {
const TQString name = m_urlNameMap[newScript->url()];
KNS::Entry* entry = m_scriptEntryMap[newScript];
- TDEConfigGroup config(TDEGlobal::config(), "KNewStuffStatus");
+ TDEConfigGroup config(TDEGlobal::config(), "TDENewStuffStatus");
// have to keep a config entry that maps the name of the file to the name
// of the newstuff entry, so we can track which entries are installed
// name and entry-name() are probably the same for scripts, but not a problem