This is the verbatim text of the qsocknot.h include file. It is is provided only for illustration; the copyright remains with Troll Tech


/****************************************************************************
** $Id: qsocknot.h,v 2.1 1997/08/06 15:05:47 hanord Exp $
**
** Definition of QSocketNotifier class
**
** Created : 951114
**
** Copyright (C) 1995-1997 by Troll Tech AS.  All rights reserved.
**
*****************************************************************************/

#ifndef QSOCKNOT_H
#define QSOCKNOT_H

#include "qobject.h"


class QSocketNotifier : public QObject
{
    Q_OBJECT
public:
    enum Type { Read, Write, Exception };

    QSocketNotifier( int socket, Type, QObject *parent=0, const char *name=0 );
   ~QSocketNotifier();

    int         socket()        const;
    Type        type()          const;

    bool        isEnabled()     const;
    void        setEnabled( bool );

signals:
    void        activated( int socket );

protected:
    bool        event( QEvent * );

private:
    int         sockfd;
    Type        sntype;
    bool        snenabled;

private:        // Disabled copy constructor and operator=
    QSocketNotifier( const QSocketNotifier & ) {}
    QSocketNotifier &operator=( const QSocketNotifier & ) { return *this; }
};


inline int QSocketNotifier::socket() const
{ return sockfd; }

inline QSocketNotifier::Type QSocketNotifier::type() const
{ return sntype; }

inline bool QSocketNotifier::isEnabled() const
{ return snenabled; }


#endif // QSOCKNOT_H


Generated at 23:50, 1998/03/16 for Qt version 1.33 by the webmaster at Troll Tech