Logo Search packages:      
Sourcecode: debconf-kde version File versions  Download package

void DebconfKde::DebconfFrontend::newConnection (  ) [private, slot]

Called when a new connection is received on the socket If we are already handlyng a connection we refuse the others

Definition at line 76 of file debconf.cpp.

  : QObject(parent), m_socket(0)
{
    m_server = new QLocalServer(this);
    QFile::remove(socketName);
    m_server->listen(socketName);
    connect(m_server, SIGNAL(newConnection()), this, SLOT(newConnection()));
}

void DebconfFrontend::newConnection()
{
    kDebug();
    if (m_socket) {
        QLocalSocket *socket = m_server->nextPendingConnection();
        socket->disconnectFromServer();
        socket->deleteLater();
        return;

Generated by  Doxygen 1.6.0   Back to index