diff options
Diffstat (limited to 'bibletime/bibletimeinterface_skel.cpp')
-rw-r--r-- | bibletime/bibletimeinterface_skel.cpp | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/bibletime/bibletimeinterface_skel.cpp b/bibletime/bibletimeinterface_skel.cpp new file mode 100644 index 0000000..7d956d6 --- /dev/null +++ b/bibletime/bibletimeinterface_skel.cpp @@ -0,0 +1,188 @@ +/**************************************************************************** +** +** DCOP Skeleton generated by dcopidl2cpp from bibletimeinterface.kidl +** +** WARNING! All changes made in this file will be lost! +** +*****************************************************************************/ + +#include "./bibletimeinterface.h" + +#include <kdatastream.h> +#include <qasciidict.h> + + +static const int BibleTimeInterface_fhash = 17; +static const char* const BibleTimeInterface_ftable[14][3] = { + { "void", "syncAllBibles(QString)", "syncAllBibles(QString key)" }, + { "void", "syncAllCommentaries(QString)", "syncAllCommentaries(QString key)" }, + { "void", "syncAllLexicons(QString)", "syncAllLexicons(QString key)" }, + { "void", "syncAllVerseBasedModules(QString)", "syncAllVerseBasedModules(QString key)" }, + { "void", "reloadModules()", "reloadModules()" }, + { "void", "openWindow(QString,QString)", "openWindow(QString moduleName,QString key)" }, + { "void", "openDefaultBible(QString)", "openDefaultBible(QString key)" }, + { "void", "closeAllModuleWindows()", "closeAllModuleWindows()" }, + { "QString", "getCurrentReference()", "getCurrentReference()" }, + { "QStringList", "searchInModule(QString,QString)", "searchInModule(QString moduleName,QString searchText)" }, + { "QStringList", "searchInOpenModules(QString)", "searchInOpenModules(QString searchText)" }, + { "QStringList", "searchInDefaultBible(QString)", "searchInDefaultBible(QString searchText)" }, + { "QStringList", "getModulesOfType(QString)", "getModulesOfType(QString type)" }, + { 0, 0, 0 } +}; +static const int BibleTimeInterface_ftable_hiddens[13] = { + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, +}; + +bool BibleTimeInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData) +{ + static QAsciiDict<int>* fdict = 0; + if ( !fdict ) { + fdict = new QAsciiDict<int>( BibleTimeInterface_fhash, true, false ); + for ( int i = 0; BibleTimeInterface_ftable[i][1]; i++ ) + fdict->insert( BibleTimeInterface_ftable[i][1], new int( i ) ); + } + int* fp = fdict->find( fun ); + switch ( fp?*fp:-1) { + case 0: { // void syncAllBibles(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[0][0]; + syncAllBibles(arg0 ); + } break; + case 1: { // void syncAllCommentaries(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[1][0]; + syncAllCommentaries(arg0 ); + } break; + case 2: { // void syncAllLexicons(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[2][0]; + syncAllLexicons(arg0 ); + } break; + case 3: { // void syncAllVerseBasedModules(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[3][0]; + syncAllVerseBasedModules(arg0 ); + } break; + case 4: { // void reloadModules() + replyType = BibleTimeInterface_ftable[4][0]; + reloadModules( ); + } break; + case 5: { // void openWindow(QString,QString) + QString arg0; + QString arg1; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + if (arg.atEnd()) return false; + arg >> arg1; + replyType = BibleTimeInterface_ftable[5][0]; + openWindow(arg0, arg1 ); + } break; + case 6: { // void openDefaultBible(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[6][0]; + openDefaultBible(arg0 ); + } break; + case 7: { // void closeAllModuleWindows() + replyType = BibleTimeInterface_ftable[7][0]; + closeAllModuleWindows( ); + } break; + case 8: { // QString getCurrentReference() + replyType = BibleTimeInterface_ftable[8][0]; + QDataStream _replyStream( replyData, IO_WriteOnly ); + _replyStream << getCurrentReference( ); + } break; + case 9: { // QStringList searchInModule(QString,QString) + QString arg0; + QString arg1; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + if (arg.atEnd()) return false; + arg >> arg1; + replyType = BibleTimeInterface_ftable[9][0]; + QDataStream _replyStream( replyData, IO_WriteOnly ); + _replyStream << searchInModule(arg0, arg1 ); + } break; + case 10: { // QStringList searchInOpenModules(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[10][0]; + QDataStream _replyStream( replyData, IO_WriteOnly ); + _replyStream << searchInOpenModules(arg0 ); + } break; + case 11: { // QStringList searchInDefaultBible(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[11][0]; + QDataStream _replyStream( replyData, IO_WriteOnly ); + _replyStream << searchInDefaultBible(arg0 ); + } break; + case 12: { // QStringList getModulesOfType(QString) + QString arg0; + QDataStream arg( data, IO_ReadOnly ); + if (arg.atEnd()) return false; + arg >> arg0; + replyType = BibleTimeInterface_ftable[12][0]; + QDataStream _replyStream( replyData, IO_WriteOnly ); + _replyStream << getModulesOfType(arg0 ); + } break; + default: + return DCOPObject::process( fun, data, replyType, replyData ); + } + return true; +} + +QCStringList BibleTimeInterface::interfaces() +{ + QCStringList ifaces = DCOPObject::interfaces(); + ifaces += "BibleTimeInterface"; + return ifaces; +} + +QCStringList BibleTimeInterface::functions() +{ + QCStringList funcs = DCOPObject::functions(); + for ( int i = 0; BibleTimeInterface_ftable[i][2]; i++ ) { + if (BibleTimeInterface_ftable_hiddens[i]) + continue; + QCString func = BibleTimeInterface_ftable[i][0]; + func += ' '; + func += BibleTimeInterface_ftable[i][2]; + funcs << func; + } + return funcs; +} + + |