summaryrefslogtreecommitdiffstats
path: root/src/core/dcopinterface_skel.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/core/dcopinterface_skel.cpp
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/core/dcopinterface_skel.cpp')
-rw-r--r--src/core/dcopinterface_skel.cpp228
1 files changed, 114 insertions, 114 deletions
diff --git a/src/core/dcopinterface_skel.cpp b/src/core/dcopinterface_skel.cpp
index 9edf4ad..49bdce0 100644
--- a/src/core/dcopinterface_skel.cpp
+++ b/src/core/dcopinterface_skel.cpp
@@ -9,26 +9,26 @@
#include "./dcopinterface.h"
#include <kdatastream.h>
-#include <qasciidict.h>
+#include <tqasciidict.h>
namespace Tellico {
static const int ApplicationInterface_fhash = 17;
static const char* const ApplicationInterface_ftable[16][3] = {
- { "bool", "importTellico(QString,QString)", "importTellico(QString file,QString action)" },
- { "bool", "importBibtex(QString,QString)", "importBibtex(QString file,QString action)" },
- { "bool", "importMODS(QString,QString)", "importMODS(QString file,QString action)" },
- { "bool", "importRIS(QString,QString)", "importRIS(QString file,QString action)" },
- { "bool", "exportXML(QString)", "exportXML(QString file)" },
- { "bool", "exportZip(QString)", "exportZip(QString file)" },
- { "bool", "exportBibtex(QString)", "exportBibtex(QString file)" },
- { "bool", "exportHTML(QString)", "exportHTML(QString file)" },
- { "bool", "exportCSV(QString)", "exportCSV(QString file)" },
- { "bool", "exportPilotDB(QString)", "exportPilotDB(QString file)" },
- { "QValueList<long int>", "selectedEntries()", "selectedEntries()" },
- { "QValueList<long int>", "filteredEntries()", "filteredEntries()" },
- { "void", "openFile(QString)", "openFile(QString file)" },
- { "void", "setFilter(QString)", "setFilter(QString text)" },
+ { "bool", "importTellico(TQString,TQString)", "importTellico(TQString file,TQString action)" },
+ { "bool", "importBibtex(TQString,TQString)", "importBibtex(TQString file,TQString action)" },
+ { "bool", "importMODS(TQString,TQString)", "importMODS(TQString file,TQString action)" },
+ { "bool", "importRIS(TQString,TQString)", "importRIS(TQString file,TQString action)" },
+ { "bool", "exportXML(TQString)", "exportXML(TQString file)" },
+ { "bool", "exportZip(TQString)", "exportZip(TQString file)" },
+ { "bool", "exportBibtex(TQString)", "exportBibtex(TQString file)" },
+ { "bool", "exportHTML(TQString)", "exportHTML(TQString file)" },
+ { "bool", "exportCSV(TQString)", "exportCSV(TQString file)" },
+ { "bool", "exportPilotDB(TQString)", "exportPilotDB(TQString file)" },
+ { "TQValueList<long int>", "selectedEntries()", "selectedEntries()" },
+ { "TQValueList<long int>", "filteredEntries()", "filteredEntries()" },
+ { "void", "openFile(TQString)", "openFile(TQString file)" },
+ { "void", "setFilter(TQString)", "setFilter(TQString text)" },
{ "bool", "showEntry(long int)", "showEntry(long int id)" },
{ 0, 0, 0 }
};
@@ -50,139 +50,139 @@ static const int ApplicationInterface_ftable_hiddens[15] = {
0,
};
-bool ApplicationInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
+bool ApplicationInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
- static QAsciiDict<int>* fdict = 0;
+ static TQAsciiDict<int>* fdict = 0;
if ( !fdict ) {
- fdict = new QAsciiDict<int>( ApplicationInterface_fhash, true, false );
+ fdict = new TQAsciiDict<int>( ApplicationInterface_fhash, true, false );
for ( int i = 0; ApplicationInterface_ftable[i][1]; i++ )
fdict->insert( ApplicationInterface_ftable[i][1], new int( i ) );
}
- int* fp = fdict->find( fun );
+ int* fp = fdict->tqfind( fun );
switch ( fp?*fp:-1) {
- case 0: { // bool importTellico(QString,QString)
- QString arg0;
- QString arg1;
- QDataStream arg( data, IO_ReadOnly );
+ case 0: { // bool importTellico(TQString,TQString)
+ TQString arg0;
+ TQString arg1;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
arg >> arg1;
replyType = ApplicationInterface_ftable[0][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << importTellico(arg0, arg1 );
} break;
- case 1: { // bool importBibtex(QString,QString)
- QString arg0;
- QString arg1;
- QDataStream arg( data, IO_ReadOnly );
+ case 1: { // bool importBibtex(TQString,TQString)
+ TQString arg0;
+ TQString arg1;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
arg >> arg1;
replyType = ApplicationInterface_ftable[1][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << importBibtex(arg0, arg1 );
} break;
- case 2: { // bool importMODS(QString,QString)
- QString arg0;
- QString arg1;
- QDataStream arg( data, IO_ReadOnly );
+ case 2: { // bool importMODS(TQString,TQString)
+ TQString arg0;
+ TQString arg1;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
arg >> arg1;
replyType = ApplicationInterface_ftable[2][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << importMODS(arg0, arg1 );
} break;
- case 3: { // bool importRIS(QString,QString)
- QString arg0;
- QString arg1;
- QDataStream arg( data, IO_ReadOnly );
+ case 3: { // bool importRIS(TQString,TQString)
+ TQString arg0;
+ TQString arg1;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
arg >> arg1;
replyType = ApplicationInterface_ftable[3][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << importRIS(arg0, arg1 );
} break;
- case 4: { // bool exportXML(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 4: { // bool exportXML(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[4][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << exportXML(arg0 );
} break;
- case 5: { // bool exportZip(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 5: { // bool exportZip(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[5][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << exportZip(arg0 );
} break;
- case 6: { // bool exportBibtex(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 6: { // bool exportBibtex(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[6][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << exportBibtex(arg0 );
} break;
- case 7: { // bool exportHTML(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 7: { // bool exportHTML(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[7][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << exportHTML(arg0 );
} break;
- case 8: { // bool exportCSV(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 8: { // bool exportCSV(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[8][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << exportCSV(arg0 );
} break;
- case 9: { // bool exportPilotDB(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 9: { // bool exportPilotDB(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[9][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << exportPilotDB(arg0 );
} break;
- case 10: { // QValueList<long int> selectedEntries()
+ case 10: { // TQValueList<long int> selectedEntries()
replyType = ApplicationInterface_ftable[10][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << selectedEntries( );
} break;
- case 11: { // QValueList<long int> filteredEntries()
+ case 11: { // TQValueList<long int> filteredEntries()
replyType = ApplicationInterface_ftable[11][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << filteredEntries( );
} break;
- case 12: { // void openFile(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 12: { // void openFile(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[12][0];
openFile(arg0 );
} break;
- case 13: { // void setFilter(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 13: { // void setFilter(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[13][0];
@@ -190,11 +190,11 @@ bool ApplicationInterface::process(const QCString &fun, const QByteArray &data,
} break;
case 14: { // bool showEntry(long int)
long int arg0;
- QDataStream arg( data, IO_ReadOnly );
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = ApplicationInterface_ftable[14][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << showEntry(arg0 );
} break;
default:
@@ -216,7 +216,7 @@ QCStringList ApplicationInterface::functions()
for ( int i = 0; ApplicationInterface_ftable[i][2]; i++ ) {
if (ApplicationInterface_ftable_hiddens[i])
continue;
- QCString func = ApplicationInterface_ftable[i][0];
+ TQCString func = ApplicationInterface_ftable[i][0];
func += ' ';
func += ApplicationInterface_ftable[i][2];
funcs << func;
@@ -227,7 +227,7 @@ QCStringList ApplicationInterface::functions()
} // namespace
#include <kdatastream.h>
-#include <qasciidict.h>
+#include <tqasciidict.h>
namespace Tellico {
@@ -235,12 +235,12 @@ static const int CollectionInterface_fhash = 11;
static const char* const CollectionInterface_ftable[9][3] = {
{ "long int", "addEntry()", "addEntry()" },
{ "bool", "removeEntry(long int)", "removeEntry(long int entryID)" },
- { "QStringList", "values(QString)", "values(QString fieldName)" },
- { "QStringList", "values(long int,QString)", "values(long int entryID,QString fieldName)" },
- { "QStringList", "bibtexKeys()", "bibtexKeys()" },
- { "QString", "bibtexKey(long int)", "bibtexKey(long int entryID)" },
- { "bool", "setFieldValue(long int,QString,QString)", "setFieldValue(long int entryID,QString fieldName,QString value)" },
- { "bool", "addFieldValue(long int,QString,QString)", "addFieldValue(long int entryID,QString fieldName,QString value)" },
+ { TQSTRINGLIST_OBJECT_NAME_STRING, "values(TQString)", "values(TQString fieldName)" },
+ { TQSTRINGLIST_OBJECT_NAME_STRING, "values(long int,TQString)", "values(long int entryID,TQString fieldName)" },
+ { TQSTRINGLIST_OBJECT_NAME_STRING, "bibtexKeys()", "bibtexKeys()" },
+ { TQSTRING_OBJECT_NAME_STRING, "bibtexKey(long int)", "bibtexKey(long int entryID)" },
+ { "bool", "setFieldValue(long int,TQString,TQString)", "setFieldValue(long int entryID,TQString fieldName,TQString value)" },
+ { "bool", "addFieldValue(long int,TQString,TQString)", "addFieldValue(long int entryID,TQString fieldName,TQString value)" },
{ 0, 0, 0 }
};
static const int CollectionInterface_ftable_hiddens[8] = {
@@ -254,70 +254,70 @@ static const int CollectionInterface_ftable_hiddens[8] = {
0,
};
-bool CollectionInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
+bool CollectionInterface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
- static QAsciiDict<int>* fdict = 0;
+ static TQAsciiDict<int>* fdict = 0;
if ( !fdict ) {
- fdict = new QAsciiDict<int>( CollectionInterface_fhash, true, false );
+ fdict = new TQAsciiDict<int>( CollectionInterface_fhash, true, false );
for ( int i = 0; CollectionInterface_ftable[i][1]; i++ )
fdict->insert( CollectionInterface_ftable[i][1], new int( i ) );
}
- int* fp = fdict->find( fun );
+ int* fp = fdict->tqfind( fun );
switch ( fp?*fp:-1) {
case 0: { // long int addEntry()
replyType = CollectionInterface_ftable[0][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << addEntry( );
} break;
case 1: { // bool removeEntry(long int)
long int arg0;
- QDataStream arg( data, IO_ReadOnly );
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = CollectionInterface_ftable[1][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << removeEntry(arg0 );
} break;
- case 2: { // QStringList values(QString)
- QString arg0;
- QDataStream arg( data, IO_ReadOnly );
+ case 2: { // TQStringList values(TQString)
+ TQString arg0;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = CollectionInterface_ftable[2][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << values(arg0 );
} break;
- case 3: { // QStringList values(long int,QString)
+ case 3: { // TQStringList values(long int,TQString)
long int arg0;
- QString arg1;
- QDataStream arg( data, IO_ReadOnly );
+ TQString arg1;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
arg >> arg1;
replyType = CollectionInterface_ftable[3][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << values(arg0, arg1 );
} break;
- case 4: { // QStringList bibtexKeys()
+ case 4: { // TQStringList bibtexKeys()
replyType = CollectionInterface_ftable[4][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << bibtexKeys( );
} break;
- case 5: { // QString bibtexKey(long int)
+ case 5: { // TQString bibtexKey(long int)
long int arg0;
- QDataStream arg( data, IO_ReadOnly );
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
replyType = CollectionInterface_ftable[5][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << bibtexKey(arg0 );
} break;
- case 6: { // bool setFieldValue(long int,QString,QString)
+ case 6: { // bool setFieldValue(long int,TQString,TQString)
long int arg0;
- QString arg1;
- QString arg2;
- QDataStream arg( data, IO_ReadOnly );
+ TQString arg1;
+ TQString arg2;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
@@ -325,14 +325,14 @@ bool CollectionInterface::process(const QCString &fun, const QByteArray &data, Q
if (arg.atEnd()) return false;
arg >> arg2;
replyType = CollectionInterface_ftable[6][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << setFieldValue(arg0, arg1, arg2 );
} break;
- case 7: { // bool addFieldValue(long int,QString,QString)
+ case 7: { // bool addFieldValue(long int,TQString,TQString)
long int arg0;
- QString arg1;
- QString arg2;
- QDataStream arg( data, IO_ReadOnly );
+ TQString arg1;
+ TQString arg2;
+ TQDataStream arg( data, IO_ReadOnly );
if (arg.atEnd()) return false;
arg >> arg0;
if (arg.atEnd()) return false;
@@ -340,7 +340,7 @@ bool CollectionInterface::process(const QCString &fun, const QByteArray &data, Q
if (arg.atEnd()) return false;
arg >> arg2;
replyType = CollectionInterface_ftable[7][0];
- QDataStream _replyStream( replyData, IO_WriteOnly );
+ TQDataStream _replyStream( replyData, IO_WriteOnly );
_replyStream << addFieldValue(arg0, arg1, arg2 );
} break;
default:
@@ -362,7 +362,7 @@ QCStringList CollectionInterface::functions()
for ( int i = 0; CollectionInterface_ftable[i][2]; i++ ) {
if (CollectionInterface_ftable_hiddens[i])
continue;
- QCString func = CollectionInterface_ftable[i][0];
+ TQCString func = CollectionInterface_ftable[i][0];
func += ' ';
func += CollectionInterface_ftable[i][2];
funcs << func;