Home · All Classes · Grouped Classes · Annotated · Functions

changelistener_p.h Example File
content/changelistener/changelistener_p.h

    /****************************************************************************
    **
    ** Copyright (C) 2000-2007 TROLLTECH ASA. All rights reserved.
    **
    ** This file is part of the Opensource Edition of the Qtopia Toolkit.
    **
    ** $TROLLTECH_DUAL_LICENSE$
    **
    ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
    ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
    **
    ****************************************************************************/

    #ifndef CHANGELISTENER_P_H
    #define CHANGELISTENER_P_H

    #include "changelistener.h"
    #include <QWidget>
    #include <QContent>

    class QContentSet;
    class QLabel;
    class QTimer;

    class ChangeListenerPrivate : public QObject
    {
        Q_OBJECT

        friend class ChangeListener;

    private:

        ChangeListenerPrivate(QWidget *parent = 0);

        ~ChangeListenerPrivate();

        // Number of milliseconds to delay between generating each picture.
        static const int MILLISECONDS_DELAY;
        // Number of pictures supplied for generation.
        static const int NUM_PICS;
        // Names of the image files that will be used for picture generation.
        static const QString picNames[];
        // Name of the category that each image document will be stored under.
        static const QString category;

        // Mirrors the current set of picture documents generated by this class.
        QContentSet *contentSet;
        // Label used to display the current picture.
        QLabel *imageLabel;
        // Timer used for periodic document generation.
        QTimer *timer;
        // Index which points to the current file.
        int cursor;

    private slots:

        void startGenerating();

        void stopGenerating();

        void generate();

        void changed(const QContentIdList &,QContent::ChangeType);
    };

    #endif
    // CHANGELISTENER_P_H


Copyright © 2007 Trolltech Trademarks
Qtopia 4.3.0