19 #include <tqcstring.h>
20 #include <tqdatastream.h>
22 #include <dcopclient.h>
24 #include <tdeapplication.h>
25 #include <tdecmoduleproxy.h>
28 #include "tdecmoduleproxyIfaceImpl.h"
31 #include <tqmessagebox.h>
33 TDECModuleProxyIfaceImpl::TDECModuleProxyIfaceImpl(
const TQCString& name,
35 : DCOPObject(
name ), TQObject( 0,
name ),
38 connect( p, TQ_SIGNAL( changed(
bool)),
39 TQ_SLOT( changedRelay(
bool)));
40 connect( p, TQ_SIGNAL( quickHelpChanged()),
41 TQ_SLOT( quickHelpRelay()));
44 void TDECModuleProxyIfaceImpl::save()
50 void TDECModuleProxyIfaceImpl::load()
56 void TDECModuleProxyIfaceImpl::defaults()
62 TQString TDECModuleProxyIfaceImpl::applicationName()
64 return kapp->caption();
67 TQString TDECModuleProxyIfaceImpl::quickHelp()
69 return p->quickHelp();
72 bool TDECModuleProxyIfaceImpl::changed()
77 void TDECModuleProxyIfaceImpl::changedRelay(
bool c )
80 TQDataStream stream(data, IO_WriteOnly);
82 emitDCOPSignal(
"changed(bool)", data );
85 void TDECModuleProxyIfaceImpl::quickHelpRelay()
88 emitDCOPSignal(
"quickHelpChanged()", data );
97 TDECModuleProxyRootCommunicatorImpl::TDECModuleProxyRootCommunicatorImpl
99 : DCOPObject(
name ), TQObject( 0,
name ),
109 kapp->dcopClient()->connectDCOPSignal( 0, p->dcopName(),
110 "changed(bool)", objId(),
"changed(bool)",
false );
112 kapp->dcopClient()->connectDCOPSignal( 0, p->dcopName(),
113 "quickHelpChanged()", objId(),
"quickHelpChanged()",
false );
117 void TDECModuleProxyRootCommunicatorImpl::changed(
bool c )
120 p->moduleChanged( c );
123 void TDECModuleProxyRootCommunicatorImpl::quickHelpChanged()
126 p->emitQuickHelpChanged();
129 #include "tdecmoduleproxyIfaceImpl.moc"
Encapsulates a TDECModule for embedding.
kndbgstream & endl(kndbgstream &s)
kdbgstream kdDebug(int area=0)
TQString name(StdAccel id)