Esempio n. 1
0
void QCopX11Client::isRegisteredReply( const QString& ch, bool known )
{
    if ( known )
        sendChannelCommand( QCopCmd_IsRegistered, ch );
    else
        sendChannelCommand( QCopCmd_IsNotRegistered, ch );
}
void QCopClient::handleRegisterMonitor(const QString& ch)
{
    QCopThreadData *td = QCopThreadData::instance();

    // Add the monitor to the server's list.
    QCopServerMap::Iterator it = td->serverMonitorMap.find(ch);
    if (it == td->serverMonitorMap.end())
        it = td->serverMonitorMap.insert(ch, QList<QCopClient*>());
    it.value().append(this);

    // Inform the client about the current state of the channel.
    if (td->serverMap.contains(ch))
        sendChannelCommand(QCopCmd_MonitorRegistered, ch);
    else
        sendChannelCommand(QCopCmd_MonitorUnregistered, ch);
}
Esempio n. 3
0
void QCopX11Client::requestRegistered( const QString& ch )
{
    sendChannelCommand( QCopCmd_RequestRegistered, ch );
}
Esempio n. 4
0
void QCopX11Client::detachChannel( const QString& ch )
{
    sendChannelCommand( QCopCmd_DetachChannel, ch );
}
Esempio n. 5
0
void QCopX11Client::registerChannel( const QString& ch )
{
    sendChannelCommand( QCopCmd_RegisterChannel, ch );
}