summaryrefslogtreecommitdiffstats
path: root/src/newstuff/dialog.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/dialog.cpp
parent683b668876ba41533f2a0bc415c1f0268fb69e1a (diff)
downloadtellico-e4b4d01f652d8ae191a7ce029f8bb37f67f77fdb.tar.gz
tellico-e4b4d01f652d8ae191a7ce029f8bb37f67f77fdb.zip
Update for recent TDENewStuff changes
Diffstat (limited to 'src/newstuff/dialog.cpp')
-rw-r--r--src/newstuff/dialog.cpp22
1 files changed, 8 insertions, 14 deletions
diff --git a/src/newstuff/dialog.cpp b/src/newstuff/dialog.cpp
index d8e30dd..786eb98 100644
--- a/src/newstuff/dialog.cpp
+++ b/src/newstuff/dialog.cpp
@@ -26,8 +26,8 @@
#include <tdeio/job.h>
#include <tdeio/netaccess.h>
#include <tdeaccelmanager.h>
-#include <knewstuff/entry.h>
-#include <knewstuff/provider.h>
+#include <tdenewstuff/entry.h>
+#include <tdenewstuff/provider.h>
#include <tdetempfile.h>
#include <tqlabel.h>
@@ -228,21 +228,15 @@ Dialog::Dialog(NewStuff::DataType type_, TQWidget* parent_)
connect(loader, TQT_SIGNAL(percent(TDEIO::Job*, unsigned long)), TQT_SLOT(slotShowPercent(TDEIO::Job*, unsigned long)));
connect(loader, TQT_SIGNAL(error()), TQT_SLOT(slotProviderError()));
- TDEConfigGroup config(TDEGlobal::config(), "KNewStuff");
+ TDEConfigGroup config(TDEGlobal::config(), "TDENewStuff");
TQString prov = config.readEntry("ProvidersUrl");
if(prov.isEmpty()) {
- if(m_type == EntryTemplate) {
- prov = TQString::fromLatin1("http://periapsis.org/tellico/newstuff/tellicotemplates-providers.php");
- TQString alt = TQString::fromLatin1("http://download.kde.org/khotnewstuff/tellicotemplates-providers.xml");
- loader->setAlternativeProvider(alt);
- } else {
- prov = TQString::fromLatin1("http://periapsis.org/tellico/newstuff/tellicoscripts-providers.php");
- }
+ prov = TQString::fromLatin1("https://www.trinitydesktop.org/ocs/providers.xml");
}
if(m_type == EntryTemplate) {
- m_typeName = TQString::fromLatin1("tellico/entry-template");
+ m_typeName = TQString::fromLatin1("tellico template");
} else {
- m_typeName = TQString::fromLatin1("tellico/data-source");
+ m_typeName = TQString::fromLatin1("tellico script");
}
loader->load(m_typeName, prov);
@@ -301,9 +295,9 @@ void Dialog::slotResult(TDEIO::Job* job_) {
return;
}
- TQDomElement knewstuff = dom.documentElement();
+ TQDomElement tdenewstuff = dom.documentElement();
- for(TQDomNode pn = knewstuff.firstChild(); !pn.isNull(); pn = pn.nextSibling()) {
+ for(TQDomNode pn = tdenewstuff.firstChild(); !pn.isNull(); pn = pn.nextSibling()) {
TQDomElement stuff = pn.toElement();
if(stuff.isNull()) {
continue;