File: basketdcopiface_skel.cpp

package info (click to toggle)
basket 1.0.2-5
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 14,272 kB
  • ctags: 3,211
  • sloc: cpp: 28,424; sh: 9,518; perl: 2,730; makefile: 235
file content (59 lines) | stat: -rw-r--r-- 1,672 bytes parent folder | download
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
/****************************************************************************
**
** DCOP Skeleton generated by dcopidl2cpp from basketdcopiface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "./basketdcopiface.h"

#include <kdatastream.h>


static const char* const BasketDcopInterface_ftable[3][3] = {
    { "ASYNC", "newBasket()", "newBasket()" },
    { "void", "handleCommandLine()", "handleCommandLine()" },
    { 0, 0, 0 }
};
static const int BasketDcopInterface_ftable_hiddens[2] = {
    0,
    0,
};

bool BasketDcopInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
{
    if ( fun == BasketDcopInterface_ftable[0][1] ) { // void newBasket()
	replyType = BasketDcopInterface_ftable[0][0]; 
	newBasket( );
    } else if ( fun == BasketDcopInterface_ftable[1][1] ) { // void handleCommandLine()
	replyType = BasketDcopInterface_ftable[1][0]; 
	handleCommandLine( );
    } else {
	return DCOPObject::process( fun, data, replyType, replyData );
    }
    return true;
}

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

QCStringList BasketDcopInterface::functions()
{
    QCStringList funcs = DCOPObject::functions();
    for ( int i = 0; BasketDcopInterface_ftable[i][2]; i++ ) {
	if (BasketDcopInterface_ftable_hiddens[i])
	    continue;
	QCString func = BasketDcopInterface_ftable[i][0];
	func += ' ';
	func += BasketDcopInterface_ftable[i][2];
	funcs << func;
    }
    return funcs;
}