summaryrefslogtreecommitdiffstats
path: root/src/fetch/fetchmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/fetchmanager.cpp')
-rw-r--r--src/fetch/fetchmanager.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/fetch/fetchmanager.cpp b/src/fetch/fetchmanager.cpp
index fb83e9f..449a6e9 100644
--- a/src/fetch/fetchmanager.cpp
+++ b/src/fetch/fetchmanager.cpp
@@ -94,11 +94,11 @@ void Manager::loadFetchers() {
m_configMap.clear();
KConfig* config = KGlobal::config();
- if(config->hasGroup(TQString::tqfromLatin1("Data Sources"))) {
- KConfigGroup configGroup(config, TQString::tqfromLatin1("Data Sources"));
+ if(config->hasGroup(TQString::fromLatin1("Data Sources"))) {
+ KConfigGroup configGroup(config, TQString::fromLatin1("Data Sources"));
int nSources = configGroup.readNumEntry("Sources Count", 0);
for(int i = 0; i < nSources; ++i) {
- TQString group = TQString::tqfromLatin1("Data Source %1").tqarg(i);
+ TQString group = TQString::fromLatin1("Data Source %1").tqarg(i);
Fetcher::Ptr f = createFetcher(config, group);
if(f) {
m_configMap.insert(f, group);
@@ -359,7 +359,7 @@ Tellico::Fetch::FetcherVec Manager::defaultFetchers() {
vec.append(new GoogleScholarFetcher(this));
vec.append(new DiscogsFetcher(this));
// only add IBS if user includes italian
- if(KGlobal::locale()->languagesTwoAlpha().contains(TQString::tqfromLatin1("it"))) {
+ if(KGlobal::locale()->languagesTwoAlpha().contains(TQString::fromLatin1("it"))) {
vec.append(new IBSFetcher(this));
}
return vec;
@@ -374,7 +374,7 @@ Tellico::Fetch::FetcherVec Manager::createUpdateFetchers(int collType_) {
KConfigGroup config(KGlobal::config(), "Data Sources");
int nSources = config.readNumEntry("Sources Count", 0);
for(int i = 0; i < nSources; ++i) {
- TQString group = TQString::tqfromLatin1("Data Source %1").tqarg(i);
+ TQString group = TQString::fromLatin1("Data Source %1").tqarg(i);
// needs the KConfig*
Fetcher::Ptr f = createFetcher(KGlobal::config(), group);
if(f && f->canFetch(collType_) && f->canUpdate()) {
@@ -409,8 +409,8 @@ Tellico::Fetch::Fetcher::Ptr Manager::createUpdateFetcher(int collType_, const T
return fetcher;
}
-void Manager::updatetqStatus(const TQString& message_) {
- emit signaltqStatus(message_);
+void Manager::updateStatus(const TQString& message_) {
+ emit signalStatus(message_);
}
Tellico::Fetch::TypePairList Manager::typeList() {
@@ -440,7 +440,7 @@ Tellico::Fetch::TypePairList Manager::typeList() {
list.append(TypePair(DiscogsFetcher::defaultName(), Discogs));
// now find all the scripts distributed with tellico
- TQStringList files = KGlobal::dirs()->findAllResources("appdata", TQString::tqfromLatin1("data-sources/*.spec"),
+ TQStringList files = KGlobal::dirs()->findAllResources("appdata", TQString::fromLatin1("data-sources/*.spec"),
false, true);
for(TQStringList::Iterator it = files.begin(); it != files.end(); ++it) {
KConfig spec(*it, false, false);
@@ -587,7 +587,7 @@ TQPixmap Manager::fetcherIcon(Fetch::Fetcher::CPtr fetcher_, int group_, int siz
if(fetcher_->type() == Fetch::Z3950) {
const Fetch::Z3950Fetcher* f = static_cast<const Fetch::Z3950Fetcher*>(fetcher_.data());
KURL u;
- u.setProtocol(TQString::tqfromLatin1("http"));
+ u.setProtocol(TQString::fromLatin1("http"));
u.setHost(f->host());
TQString icon = favIcon(u);
if(u.isValid() && !icon.isEmpty()) {
@@ -599,16 +599,16 @@ TQPixmap Manager::fetcherIcon(Fetch::Fetcher::CPtr fetcher_, int group_, int siz
const Fetch::ExecExternalFetcher* f = static_cast<const Fetch::ExecExternalFetcher*>(fetcher_.data());
const TQString p = f->execPath();
KURL u;
- if(p.find(TQString::tqfromLatin1("allocine")) > -1) {
- u = TQString::tqfromLatin1("http://www.allocine.fr");
- } else if(p.find(TQString::tqfromLatin1("ministerio_de_cultura")) > -1) {
- u = TQString::tqfromLatin1("http://www.mcu.es");
- } else if(p.find(TQString::tqfromLatin1("dark_horse_comics")) > -1) {
- u = TQString::tqfromLatin1("http://www.darkhorse.com");
- } else if(p.find(TQString::tqfromLatin1("boardgamegeek")) > -1) {
- u = TQString::tqfromLatin1("http://www.boardgamegeek.com");
- } else if(f->source().find(TQString::tqfromLatin1("amarok"), 0, false /*case-sensitive*/) > -1) {
- return LOAD_ICON(TQString::tqfromLatin1("amarok"), group_, size_);
+ if(p.find(TQString::fromLatin1("allocine")) > -1) {
+ u = TQString::fromLatin1("http://www.allocine.fr");
+ } else if(p.find(TQString::fromLatin1("ministerio_de_cultura")) > -1) {
+ u = TQString::fromLatin1("http://www.mcu.es");
+ } else if(p.find(TQString::fromLatin1("dark_horse_comics")) > -1) {
+ u = TQString::fromLatin1("http://www.darkhorse.com");
+ } else if(p.find(TQString::fromLatin1("boardgamegeek")) > -1) {
+ u = TQString::fromLatin1("http://www.boardgamegeek.com");
+ } else if(f->source().find(TQString::fromLatin1("amarok"), 0, false /*case-sensitive*/) > -1) {
+ return LOAD_ICON(TQString::fromLatin1("amarok"), group_, size_);
}
if(!u.isEmpty() && u.isValid()) {
TQString icon = favIcon(u);
@@ -628,13 +628,13 @@ TQPixmap Manager::fetcherIcon(Fetch::Type type_, int group_, int size_) {
case IMDB:
name = favIcon("http://imdb.com"); break;
case Z3950:
- name = TQString::tqfromLatin1("network"); break; // rather arbitrary
+ name = TQString::fromLatin1("network"); break; // rather arbitrary
case SRU:
- name = TQString::tqfromLatin1("network_local"); break; // just to be different than z3950
+ name = TQString::fromLatin1("network_local"); break; // just to be different than z3950
case Entrez:
name = favIcon("http://www.ncbi.nlm.nih.gov"); break;
case ExecExternal:
- name = TQString::tqfromLatin1("exec"); break;
+ name = TQString::fromLatin1("exec"); break;
case Yahoo:
name = favIcon("http://yahoo.com"); break;
case AnimeNfo:
@@ -644,7 +644,7 @@ TQPixmap Manager::fetcherIcon(Fetch::Type type_, int group_, int size_) {
case ISBNdb:
name = favIcon("http://isbndb.com"); break;
case GCstarPlugin:
- name = TQString::tqfromLatin1("gcstar"); break;
+ name = TQString::fromLatin1("gcstar"); break;
case CrossRef:
name = favIcon("http://crossref.org"); break;
case Arxiv: