~ubuntu-branches/ubuntu/karmic/basket/karmic

« back to all changes in this revision

Viewing changes to kontact_plugin/basketdcopiface_stub.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 Stub Implementation created by dcopidl2cpp from basketdcopiface.kidl
4
 
**
5
 
** WARNING! All changes made in this file will be lost!
6
 
**
7
 
*****************************************************************************/
8
 
 
9
 
#include "basketdcopiface_stub.h"
10
 
#include <dcopclient.h>
11
 
 
12
 
#include <kdatastream.h>
13
 
 
14
 
 
15
 
BasketDcopInterface_stub::BasketDcopInterface_stub( const QCString& app, const QCString& obj )
16
 
  : DCOPStub( app, obj )
17
 
{
18
 
}
19
 
 
20
 
BasketDcopInterface_stub::BasketDcopInterface_stub( DCOPClient* client, const QCString& app, const QCString& obj )
21
 
  : DCOPStub( client, app, obj )
22
 
{
23
 
}
24
 
 
25
 
BasketDcopInterface_stub::BasketDcopInterface_stub( const DCOPRef& ref )
26
 
  : DCOPStub( ref )
27
 
{
28
 
}
29
 
 
30
 
void BasketDcopInterface_stub::newBasket()
31
 
{
32
 
    if ( !dcopClient()  ) {
33
 
        setStatus( CallFailed );
34
 
        return;
35
 
    }
36
 
    QByteArray data;
37
 
    dcopClient()->send( app(), obj(), "newBasket()", data );
38
 
    setStatus( CallSucceeded );
39
 
}
40
 
 
41
 
void BasketDcopInterface_stub::handleCommandLine()
42
 
{
43
 
    if ( !dcopClient()  ) {
44
 
        setStatus( CallFailed );
45
 
        return;
46
 
    }
47
 
    QByteArray data, replyData;
48
 
    QCString replyType;
49
 
    if ( dcopClient()->call( app(), obj(), "handleCommandLine()", data, replyType, replyData ) ) {
50
 
        setStatus( CallSucceeded );
51
 
    } else { 
52
 
        callFailed();
53
 
    }
54
 
}
55
 
 
56