diff options
Diffstat (limited to 'src/core/dcopinterface.h')
-rw-r--r-- | src/core/dcopinterface.h | 51 |
1 files changed, 27 insertions, 24 deletions
diff --git a/src/core/dcopinterface.h b/src/core/dcopinterface.h index 018de80..e0c6c73 100644 --- a/src/core/dcopinterface.h +++ b/src/core/dcopinterface.h @@ -19,40 +19,40 @@ #include <dcopobject.h> #include <kurl.h> -#include <qstringlist.h> // used in generated dcopinterface_skel.cpp +#include <tqstringlist.h> // used in generated dcopinterface_skel.cpp namespace Tellico { class ApplicationInterface : public DCOPObject { K_DCOP k_dcop: - bool importTellico(const QString& file, const QString& action) + bool importTellico(const TQString& file, const TQString& action) { return importFile(Import::TellicoXML, KURL::fromPathOrURL(file), actionType(action)); } - bool importBibtex(const QString& file, const QString& action) + bool importBibtex(const TQString& file, const TQString& action) { return importFile(Import::Bibtex, KURL::fromPathOrURL(file), actionType(action)); } - bool importMODS(const QString& file, const QString& action) + bool importMODS(const TQString& file, const TQString& action) { return importFile(Import::MODS, KURL::fromPathOrURL(file), actionType(action)); } - bool importRIS(const QString& file, const QString& action) + bool importRIS(const TQString& file, const TQString& action) { return importFile(Import::RIS, KURL::fromPathOrURL(file), actionType(action)); } - bool exportXML(const QString& file) + bool exportXML(const TQString& file) { return exportCollection(Export::TellicoXML, KURL::fromPathOrURL(file)); } - bool exportZip(const QString& file) + bool exportZip(const TQString& file) { return exportCollection(Export::TellicoZip, KURL::fromPathOrURL(file)); } - bool exportBibtex(const QString& file) + bool exportBibtex(const TQString& file) { return exportCollection(Export::Bibtex, KURL::fromPathOrURL(file)); } - bool exportHTML(const QString& file) + bool exportHTML(const TQString& file) { return exportCollection(Export::HTML, KURL::fromPathOrURL(file)); } - bool exportCSV(const QString& file) + bool exportCSV(const TQString& file) { return exportCollection(Export::CSV, KURL::fromPathOrURL(file)); } - bool exportPilotDB(const QString& file) + bool exportPilotDB(const TQString& file) { return exportCollection(Export::PilotDB, KURL::fromPathOrURL(file)); } - QValueList<long> selectedEntries() const; - QValueList<long> filteredEntries() const; + TQValueList<long> selectedEntries() const; + TQValueList<long> filteredEntries() const; - virtual void openFile(const QString& file) = 0; - virtual void setFilter(const QString& text) = 0; + virtual void openFile(const TQString& file) = 0; + virtual void setFilter(const TQString& text) = 0; virtual bool showEntry(long id) = 0; protected: @@ -61,24 +61,27 @@ protected: virtual bool exportCollection(Export::Format format, const KURL& url) = 0; private: - Import::Action actionType(const QString& actionName); + Import::Action actionType(const TQString& actionName); }; class CollectionInterface : public DCOPObject { K_DCOP k_dcop: - CollectionInterface() : DCOPObject("collection") {} - long addEntry(); bool removeEntry(long entryID); - QStringList values(const QString& fieldName) const; - QStringList values(long entryID, const QString& fieldName) const; - QStringList bibtexKeys() const; - QString bibtexKey(long entryID) const; + TQStringList values(const TQString& fieldName) const; + TQStringList values(long entryID, const TQString& fieldName) const; + TQStringList bibtexKeys() const; + TQString bibtexKey(long entryID) const; + + bool setFieldValue(long entryID, const TQString& fieldName, const TQString& value); + bool addFieldValue(long entryID, const TQString& fieldName, const TQString& value); - bool setFieldValue(long entryID, const QString& fieldName, const QString& value); - bool addFieldValue(long entryID, const QString& fieldName, const QString& value); + friend class MainWindow; + +protected: + CollectionInterface() : DCOPObject("collection") {} }; } // end namespace |