Home · All Classes · Grouped Classes · Annotated · Functions

notesdemo_p.h Example File
content/notesdemo/notesdemo_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 NOTESDEMO_P_H
    #define NOTESDEMO_P_H

    #include "notesdemo.h"

    #include <QObject>

    class QDocumentSelector;
    class TextDialog;
    class QTextDocument;
    class QContent;

    class NotesDemoPrivate : public QObject
    {
        Q_OBJECT

        friend class NotesDemo;

    private:

        NotesDemoPrivate(QObject *parent = 0);

        QDocumentSelector *documentSelector() const { return _documentSelector; }

        TextDialog *textDialog();

        bool readContent(QTextDocument *,QContent &);
        bool writeContent(QTextDocument *,QContent &);

        // Widget for displaying the list of documents, or allowing you to create a new one.
        QDocumentSelector *_documentSelector;
        // Widget for creating a new document, or editing an existing one.
        TextDialog *_textDialog;

    private slots:

        void newDocument();

        void openDocument(const QContent&);
    };

    #endif
    // NOTESDEMO_P_H


Copyright © 2007 Trolltech Trademarks
Qtopia 4.3.0