Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

messagemodel.h Example File
messageviewer/messagemodel.h

    /****************************************************************************
    **
    ** This file is part of the Qt Extended Opensource Package.
    **
    ** Copyright (C) 2009 Trolltech ASA.
    **
    ** $QT_EXTENDED_DUAL_LICENSE$
    **
    ****************************************************************************/

    #ifndef MESSAGEMODEL_H
    #define MESSAGEMODEL_H

    #include <QContactModel>
    #include <QStandardItemModel>

    class QContact;
    class QMailMessageId;

    class MessageModel : public QStandardItemModel
    {
        Q_OBJECT

    public:
        explicit MessageModel(QObject* parent = 0);
        virtual ~MessageModel();

        void setContact(const QContact&);

        bool isEmpty() const;

        QMailMessageId messageId(const QModelIndex& index);
    };

    #endif


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3