summaryrefslogtreecommitdiffstats
path: root/src/core/dcopinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/dcopinterface.cpp')
-rw-r--r--src/core/dcopinterface.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/core/dcopinterface.cpp b/src/core/dcopinterface.cpp
index f375b6b..bd7014c 100644
--- a/src/core/dcopinterface.cpp
+++ b/src/core/dcopinterface.cpp
@@ -22,8 +22,8 @@
using Tellico::ApplicationInterface;
using Tellico::CollectionInterface;
-Tellico::Import::Action ApplicationInterface::actionType(const QString& actionName) {
- QString name = actionName.lower();
+Tellico::Import::Action ApplicationInterface::actionType(const TQString& actionName) {
+ TQString name = actionName.lower();
if(name == Latin1Literal("append")) {
return Import::Append;
} else if(name == Latin1Literal("merge")) {
@@ -32,8 +32,8 @@ Tellico::Import::Action ApplicationInterface::actionType(const QString& actionNa
return Import::Replace;
}
-QValueList<long> ApplicationInterface::selectedEntries() const {
- QValueList<long> ids;
+TQValueList<long> ApplicationInterface::selectedEntries() const {
+ TQValueList<long> ids;
Data::EntryVec entries = Controller::self()->selectedEntries();
for(Data::EntryVecIt entry = entries.begin(); entry != entries.end(); ++entry) {
ids << entry->id();
@@ -41,8 +41,8 @@ QValueList<long> ApplicationInterface::selectedEntries() const {
return ids;
}
-QValueList<long> ApplicationInterface::filteredEntries() const {
- QValueList<long> ids;
+TQValueList<long> ApplicationInterface::filteredEntries() const {
+ TQValueList<long> ids;
Data::EntryVec entries = Controller::self()->visibleEntries();
for(Data::EntryVecIt entry = entries.begin(); entry != entries.end(); ++entry) {
ids << entry->id();
@@ -73,8 +73,8 @@ bool CollectionInterface::removeEntry(long id_) {
return coll->entryById(id_) == 0;
}
-QStringList CollectionInterface::values(const QString& fieldName_) const {
- QStringList results;
+TQStringList CollectionInterface::values(const TQString& fieldName_) const {
+ TQStringList results;
Data::CollPtr coll = Data::Document::self()->collection();
if(!coll) {
return results;
@@ -93,8 +93,8 @@ QStringList CollectionInterface::values(const QString& fieldName_) const {
return results;
}
-QStringList CollectionInterface::values(long id_, const QString& fieldName_) const {
- QStringList results;
+TQStringList CollectionInterface::values(long id_, const TQString& fieldName_) const {
+ TQStringList results;
Data::CollPtr coll = Data::Document::self()->collection();
if(!coll) {
return results;
@@ -113,27 +113,27 @@ QStringList CollectionInterface::values(long id_, const QString& fieldName_) con
return results;
}
-QStringList CollectionInterface::bibtexKeys() const {
+TQStringList CollectionInterface::bibtexKeys() const {
Data::CollPtr coll = Data::Document::self()->collection();
if(!coll || coll->type() != Data::Collection::Bibtex) {
- return QStringList();
+ return TQStringList();
}
return BibtexHandler::bibtexKeys(Controller::self()->selectedEntries());
}
-QString CollectionInterface::bibtexKey(long id_) const {
+TQString CollectionInterface::bibtexKey(long id_) const {
Data::CollPtr coll = Data::Document::self()->collection();
if(!coll || coll->type() != Data::Collection::Bibtex) {
- return QString();
+ return TQString();
}
Data::EntryPtr entry = coll->entryById(id_);
if(!entry) {
- return QString();
+ return TQString();
}
return BibtexHandler::bibtexKeys(entry).first();
}
-bool CollectionInterface::setFieldValue(long id_, const QString& fieldName_, const QString& value_) {
+bool CollectionInterface::setFieldValue(long id_, const TQString& fieldName_, const TQString& value_) {
Data::CollPtr coll = Data::Document::self()->collection();
if(!coll) {
return false;
@@ -150,7 +150,7 @@ bool CollectionInterface::setFieldValue(long id_, const QString& fieldName_, con
return true;
}
-bool CollectionInterface::addFieldValue(long id_, const QString& fieldName_, const QString& value_) {
+bool CollectionInterface::addFieldValue(long id_, const TQString& fieldName_, const TQString& value_) {
Data::CollPtr coll = Data::Document::self()->collection();
if(!coll) {
return false;
@@ -160,10 +160,10 @@ bool CollectionInterface::addFieldValue(long id_, const QString& fieldName_, con
return false;
}
Data::EntryPtr oldEntry = new Data::Entry(*entry);
- QStringList values = entry->fields(fieldName_, false);
- QStringList newValues = values;
+ TQStringList values = entry->fields(fieldName_, false);
+ TQStringList newValues = values;
newValues << value_;
- if(!entry->setField(fieldName_, newValues.join(QString::fromLatin1("; ")))) {
+ if(!entry->setField(fieldName_, newValues.join(TQString::tqfromLatin1("; ")))) {
return false;
}
Kernel::self()->modifyEntries(oldEntry, entry);