File: basketdcopiface_stub.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 (56 lines) | stat: -rw-r--r-- 1,338 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
/****************************************************************************
**
** DCOP Stub Implementation created by dcopidl2cpp from basketdcopiface.kidl
**
** WARNING! All changes made in this file will be lost!
**
*****************************************************************************/

#include "basketdcopiface_stub.h"
#include <dcopclient.h>

#include <kdatastream.h>


BasketDcopInterface_stub::BasketDcopInterface_stub( const QCString& app, const QCString& obj )
  : DCOPStub( app, obj )
{
}

BasketDcopInterface_stub::BasketDcopInterface_stub( DCOPClient* client, const QCString& app, const QCString& obj )
  : DCOPStub( client, app, obj )
{
}

BasketDcopInterface_stub::BasketDcopInterface_stub( const DCOPRef& ref )
  : DCOPStub( ref )
{
}

void BasketDcopInterface_stub::newBasket()
{
    if ( !dcopClient()  ) {
	setStatus( CallFailed );
	return;
    }
    QByteArray data;
    dcopClient()->send( app(), obj(), "newBasket()", data );
    setStatus( CallSucceeded );
}

void BasketDcopInterface_stub::handleCommandLine()
{
    if ( !dcopClient()  ) {
	setStatus( CallFailed );
	return;
    }
    QByteArray data, replyData;
    QCString replyType;
    if ( dcopClient()->call( app(), obj(), "handleCommandLine()", data, replyType, replyData ) ) {
	setStatus( CallSucceeded );
    } else { 
	callFailed();
    }
}