|
|
@ -34,15 +34,15 @@ Watcher::Watcher( const TQCString& name )
|
|
|
|
m_daemons.setAutoDelete( true );
|
|
|
|
m_daemons.setAutoDelete( true );
|
|
|
|
|
|
|
|
|
|
|
|
// safety, for clients that die without unregistering
|
|
|
|
// safety, for clients that die without unregistering
|
|
|
|
KApplication::dcopClient()->setNotifications( true );
|
|
|
|
TDEApplication::dcopClient()->setNotifications( true );
|
|
|
|
connect( KApplication::dcopClient(),
|
|
|
|
connect( TDEApplication::dcopClient(),
|
|
|
|
TQT_SIGNAL( applicationRemoved( const TQCString& )),
|
|
|
|
TQT_SIGNAL( applicationRemoved( const TQCString& )),
|
|
|
|
TQT_SLOT( slotAppUnregistered( const TQCString& )));
|
|
|
|
TQT_SLOT( slotAppUnregistered( const TQCString& )));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Watcher::~Watcher()
|
|
|
|
Watcher::~Watcher()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KApplication::dcopClient()->setNotifications( false );
|
|
|
|
TDEApplication::dcopClient()->setNotifications( false );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool Watcher::requireDaemon( const TQCString& clientAppId,
|
|
|
|
bool Watcher::requireDaemon( const TQCString& clientAppId,
|
|
|
@ -51,7 +51,7 @@ bool Watcher::requireDaemon( const TQCString& clientAppId,
|
|
|
|
uint timeout /* seconds */,
|
|
|
|
uint timeout /* seconds */,
|
|
|
|
int restartOnFailure )
|
|
|
|
int restartOnFailure )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( !KApplication::dcopClient()->isApplicationRegistered( clientAppId ) )
|
|
|
|
if ( !TDEApplication::dcopClient()->isApplicationRegistered( clientAppId ) )
|
|
|
|
kdWarning() << "Watcher::requireDaemon: " << daemonKey
|
|
|
|
kdWarning() << "Watcher::requireDaemon: " << daemonKey
|
|
|
|
<< ": Client AppID is not registered with DCOP: "
|
|
|
|
<< ": Client AppID is not registered with DCOP: "
|
|
|
|
<< clientAppId << endl;
|
|
|
|
<< clientAppId << endl;
|
|
|
|