1 /****************************************************************************
3 ** DCOP Stub Implementation created by dcopidl2cpp from ksayit.kidl
5 ** WARNING! All changes made in this file will be lost!
7 *****************************************************************************/
9 #include "ksayit_stub.h"
10 #include <dcopclient.h>
12 #include <kdatastream.h>
17 KSayItApp_stub::KSayItApp_stub( const Q3CString
& app
, const Q3CString
& obj
)
18 : DCOPStub( app
, obj
)
22 KSayItApp_stub::KSayItApp_stub( DCOPClient
* client
, const Q3CString
& app
, const Q3CString
& obj
)
23 : DCOPStub( client
, app
, obj
)
27 KSayItApp_stub::KSayItApp_stub( const DCOPRef
& ref
)
32 void KSayItApp_stub::dcopSayText( QString arg0
)
34 if ( !dcopClient() ) {
35 setStatus( CallFailed
);
39 QDataStream
arg( data
, QIODevice::WriteOnly
);
41 dcopClient()->send( app(), obj(), "dcopSayText(QString)", data
);
42 setStatus( CallSucceeded
);
45 void KSayItApp_stub::dcopStop()
47 if ( !dcopClient() ) {
48 setStatus( CallFailed
);
52 dcopClient()->send( app(), obj(), "dcopStop()", data
);
53 setStatus( CallSucceeded
);
56 void KSayItApp_stub::dcopSayXmlFile( KURL arg0
)
58 if ( !dcopClient() ) {
59 setStatus( CallFailed
);
63 QDataStream
arg( data
, QIODevice::WriteOnly
);
65 dcopClient()->send( app(), obj(), "dcopSayXmlFile(KURL)", data
);
66 setStatus( CallSucceeded
);