Fix some error
[kdeaccessibility.git] / ksayit / src / ksayit_stub.cpp
blobebac46643d532c1acc346bd52f18a293705f6f14
1 /****************************************************************************
2 **
3 ** DCOP Stub Implementation created by dcopidl2cpp from ksayit.kidl
4 **
5 ** WARNING! All changes made in this file will be lost!
6 **
7 *****************************************************************************/
9 #include "ksayit_stub.h"
10 #include <dcopclient.h>
12 #include <kdatastream.h>
13 //Added by qt3to4:
14 #include <Q3CString>
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 )
28 : DCOPStub( ref )
32 void KSayItApp_stub::dcopSayText( QString arg0 )
34 if ( !dcopClient() ) {
35 setStatus( CallFailed );
36 return;
38 QByteArray data;
39 QDataStream arg( data, QIODevice::WriteOnly );
40 arg << arg0;
41 dcopClient()->send( app(), obj(), "dcopSayText(QString)", data );
42 setStatus( CallSucceeded );
45 void KSayItApp_stub::dcopStop()
47 if ( !dcopClient() ) {
48 setStatus( CallFailed );
49 return;
51 QByteArray data;
52 dcopClient()->send( app(), obj(), "dcopStop()", data );
53 setStatus( CallSucceeded );
56 void KSayItApp_stub::dcopSayXmlFile( KURL arg0 )
58 if ( !dcopClient() ) {
59 setStatus( CallFailed );
60 return;
62 QByteArray data;
63 QDataStream arg( data, QIODevice::WriteOnly );
64 arg << arg0;
65 dcopClient()->send( app(), obj(), "dcopSayXmlFile(KURL)", data );
66 setStatus( CallSucceeded );