summaryrefslogtreecommitdiffstats
path: root/src/fetch/bibsonomyfetcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/bibsonomyfetcher.cpp')
-rw-r--r--src/fetch/bibsonomyfetcher.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/fetch/bibsonomyfetcher.cpp b/src/fetch/bibsonomyfetcher.cpp
index 9a4e130..a6fd18a 100644
--- a/src/fetch/bibsonomyfetcher.cpp
+++ b/src/fetch/bibsonomyfetcher.cpp
@@ -25,7 +25,7 @@
#include <klocale.h>
#include <tqlabel.h>
-#include <layout.h>
+#include <tqlayout.h>
namespace {
// always bibtex
@@ -43,7 +43,7 @@ BibsonomyFetcher::~BibsonomyFetcher() {
}
TQString BibsonomyFetcher::defaultName() {
- return TQString::fromLatin1("Bibsonomy");
+ return TQString::tqfromLatin1("Bibsonomy");
}
TQString BibsonomyFetcher::source() const {
@@ -63,7 +63,7 @@ void BibsonomyFetcher::search(FetchKey key_, const TQString& value_) {
m_started = true;
if(!canFetch(Kernel::self()->collectionType())) {
- message(i18n("%1 does not allow searching for this collection type.").arg(source()), MessageHandler::Warning);
+ message(i18n("%1 does not allow searching for this collection type.").tqarg(source()), MessageHandler::Warning);
stop();
return;
}
@@ -136,13 +136,13 @@ void BibsonomyFetcher::slotComplete(KIO::Job* job_) {
// might get aborted
break;
}
- TQString desc = entry->field(TQString::fromLatin1("author"))
- + TQChar('/') + entry->field(TQString::fromLatin1("publisher"));
- if(!entry->field(TQString::fromLatin1("year")).isEmpty()) {
- desc += TQChar('/') + entry->field(TQString::fromLatin1("year"));
+ TQString desc = entry->field(TQString::tqfromLatin1("author"))
+ + TQChar('/') + entry->field(TQString::tqfromLatin1("publisher"));
+ if(!entry->field(TQString::tqfromLatin1("year")).isEmpty()) {
+ desc += TQChar('/') + entry->field(TQString::tqfromLatin1("year"));
}
- SearchResult* r = new SearchResult(this, entry->title(), desc, entry->field(TQString::fromLatin1("isbn")));
+ SearchResult* r = new SearchResult(this, entry->title(), desc, entry->field(TQString::tqfromLatin1("isbn")));
m_entries.insert(r->uid, Data::EntryPtr(entry));
emit signalResultFound(r);
}
@@ -155,16 +155,16 @@ Tellico::Data::EntryPtr BibsonomyFetcher::fetchEntry(uint uid_) {
}
KURL BibsonomyFetcher::searchURL(FetchKey key_, const TQString& value_) const {
- KURL u(TQString::fromLatin1(BIBSONOMY_BASE_URL));
- u.setPath(TQString::fromLatin1("/bib/"));
+ KURL u(TQString::tqfromLatin1(BIBSONOMY_BASE_URL));
+ u.setPath(TQString::tqfromLatin1("/bib/"));
switch(key_) {
case Person:
- u.addPath(TQString::fromLatin1("author/%1").arg(value_));
+ u.addPath(TQString::tqfromLatin1("author/%1").tqarg(value_));
break;
case Keyword:
- u.addPath(TQString::fromLatin1("search/%1").arg(value_));
+ u.addPath(TQString::tqfromLatin1("search/%1").tqarg(value_));
break;
default:
@@ -172,13 +172,13 @@ KURL BibsonomyFetcher::searchURL(FetchKey key_, const TQString& value_) const {
return KURL();
}
- u.addQueryItem(TQString::fromLatin1("items"), TQString::number(BIBSONOMY_MAX_RESULTS));
+ u.addQueryItem(TQString::tqfromLatin1("items"), TQString::number(BIBSONOMY_MAX_RESULTS));
myDebug() << "BibsonomyFetcher::search() - url: " << u.url() << endl;
return u;
}
void BibsonomyFetcher::updateEntry(Data::EntryPtr entry_) {
- TQString title = entry_->field(TQString::fromLatin1("title"));
+ TQString title = entry_->field(TQString::tqfromLatin1("title"));
if(!title.isEmpty()) {
search(Fetch::Keyword, title);
return;