Qt Toolkit - qshared.h include file

# qshared.h

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

    /****************************************************************************
    ** $Id: qshared.h,v 2.3 1998/07/03 00:09:46 hanord Exp $
    **
    ** Definition of QShared struct
    **
    ** Created : 940112
    **
    ** Copyright (C) 1992-1999 Troll Tech AS.  All rights reserved.
    **
    ** This file is part of Qt Free Edition, version 1.45.
    **
    ** See the file LICENSE included in the distribution for the usage
    ** and distribution terms, or http://www.troll.no/free-license.html.
    **
    ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
    ** your own programs or libraries.
    **
    ** Please see http://www.troll.no/pricing.html for information about
    ** Qt Professional Edition, which is this same library but with a
    ** license which allows creation of commercial/proprietary software.
    **
    *****************************************************************************/

    #ifndef QSHARED_H
    #define QSHARED_H

    #ifndef QT_H
    #include "qglobal.h"
    #endif // QT_H

    struct QShared
    {
        QShared()           { count = 1; }
        void ref()          { count++; }
        bool deref()        { return !--count; }
        uint count;
    };

    #endif // QSHARED_H