~ubuntu-branches/ubuntu/maverick/basket/maverick

« back to all changes in this revision

Viewing changes to src/basketdcopiface_skel.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Wenning
  • Date: 2009-04-29 05:48:39 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090429054839-54wapymcc7hjo68j
Tags: 1.0.3.1-0ubuntu1
* New upstream release
* Update debian/patches/12_desktop.diff
* Remove debian/patches/15_fix_gcc4.3.diff applied upstream
* Remove debian/patches/13_add_da.po.diff applied upstream
* debian/rules: Don't move around basket.desktop; upstream got it right

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/****************************************************************************
2
 
**
3
 
** DCOP Skeleton generated by dcopidl2cpp from basketdcopiface.kidl
4
 
**
5
 
** WARNING! All changes made in this file will be lost!
6
 
**
7
 
*****************************************************************************/
8
 
 
9
 
#include "./basketdcopiface.h"
10
 
 
11
 
#include <kdatastream.h>
12
 
 
13
 
 
14
 
static const char* const BasketDcopInterface_ftable[3][3] = {
15
 
    { "ASYNC", "newBasket()", "newBasket()" },
16
 
    { "void", "handleCommandLine()", "handleCommandLine()" },
17
 
    { 0, 0, 0 }
18
 
};
19
 
static const int BasketDcopInterface_ftable_hiddens[2] = {
20
 
    0,
21
 
    0,
22
 
};
23
 
 
24
 
bool BasketDcopInterface::process(const QCString &fun, const QByteArray &data, QCString& replyType, QByteArray &replyData)
25
 
{
26
 
    if ( fun == BasketDcopInterface_ftable[0][1] ) { // void newBasket()
27
 
        replyType = BasketDcopInterface_ftable[0][0]; 
28
 
        newBasket( );
29
 
    } else if ( fun == BasketDcopInterface_ftable[1][1] ) { // void handleCommandLine()
30
 
        replyType = BasketDcopInterface_ftable[1][0]; 
31
 
        handleCommandLine( );
32
 
    } else {
33
 
        return DCOPObject::process( fun, data, replyType, replyData );
34
 
    }
35
 
    return true;
36
 
}
37
 
 
38
 
QCStringList BasketDcopInterface::interfaces()
39
 
{
40
 
    QCStringList ifaces = DCOPObject::interfaces();
41
 
    ifaces += "BasketDcopInterface";
42
 
    return ifaces;
43
 
}
44
 
 
45
 
QCStringList BasketDcopInterface::functions()
46
 
{
47
 
    QCStringList funcs = DCOPObject::functions();
48
 
    for ( int i = 0; BasketDcopInterface_ftable[i][2]; i++ ) {
49
 
        if (BasketDcopInterface_ftable_hiddens[i])
50
 
            continue;
51
 
        QCString func = BasketDcopInterface_ftable[i][0];
52
 
        func += ' ';
53
 
        func += BasketDcopInterface_ftable[i][2];
54
 
        funcs << func;
55
 
    }
56
 
    return funcs;
57
 
}
58
 
 
59