summaryrefslogtreecommitdiffstats
path: root/src/kde/kchmdcopiface_skel.cpp
blob: be1e994a98b198b04ca0c465b8caaaf9c4383423 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from kchmdcopiface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "./kchmdcopiface.h"

#include <kdatastream.h>


static const char* const KCHMDCOPIface_ftable[6][3] = {
    { "void", "loadHelpFile(TQString,TQString)", "loadHelpFile(TQString filename,TQString url)" },
    { "void", "openPage(TQString)", "openPage(TQString url)" },
    { "void", "guiFindInIndex(TQString)", "guiFindInIndex(TQString word)" },
    { "void", "guiSearchQuery(TQString)", "guiSearchQuery(TQString query)" },
    { TQSTRINGLIST_OBJECT_NAME_STRING, "searchQuery(TQString)", "searchQuery(TQString query)" },
    { 0, 0, 0 }
};
static const int KCHMDCOPIface_ftable_hiddens[5] = {
    0,
    0,
    0,
    0,
    0,
};

bool KCHMDCOPIface::process(const TQCString &fun, const TQByteArray &data, TQCString& replyType, TQByteArray &replyData)
{
    if ( fun == KCHMDCOPIface_ftable[0][1] ) { // void loadHelpFile(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 = KCHMDCOPIface_ftable[0][0]; 
	loadHelpFile(arg0, arg1 );
    } else if ( fun == KCHMDCOPIface_ftable[1][1] ) { // void openPage(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KCHMDCOPIface_ftable[1][0]; 
	openPage(arg0 );
    } else if ( fun == KCHMDCOPIface_ftable[2][1] ) { // void guiFindInIndex(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KCHMDCOPIface_ftable[2][0]; 
	guiFindInIndex(arg0 );
    } else if ( fun == KCHMDCOPIface_ftable[3][1] ) { // void guiSearchQuery(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KCHMDCOPIface_ftable[3][0]; 
	guiSearchQuery(arg0 );
    } else if ( fun == KCHMDCOPIface_ftable[4][1] ) { // TQStringList searchQuery(TQString)
	TQString arg0;
	TQDataStream arg( data, IO_ReadOnly );
	if (arg.atEnd()) return false;
	arg >> arg0;
	replyType = KCHMDCOPIface_ftable[4][0]; 
	TQDataStream _replyStream( replyData, IO_WriteOnly );
	_replyStream << searchQuery(arg0 );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

QCStringList KCHMDCOPIface::interfaces()
{
    QCStringList ifaces = DCOPObject::interfaces();
    ifaces += "KCHMDCOPIface";
    return ifaces;
}

QCStringList KCHMDCOPIface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; KCHMDCOPIface_ftable[i][2]; i++ ) {
	if (KCHMDCOPIface_ftable_hiddens[i])
	    continue;
	TQCString func = KCHMDCOPIface_ftable[i][0];
	func += ' ';
	func += KCHMDCOPIface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}