messagingapp/msgui/layoutplugins/unifiedviewerplugin/inc/unifiedviewerplugin.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 16 Apr 2010 14:56:15 +0300
changeset 23 238255e8b033
permissions -rw-r--r--
Revision: 201011 Kit: 201015

/*
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Nokia Corporation - initial contribution.
 *
 * Contributors:
 *
 * Description:
 *
 */

#ifndef UNIFIEDVIEWERPLUGIN_H
#define UNIFIEDVIEWERPLUGIN_H

// INCLUDES
#include <QtPlugin>
#include <hbstyleinterface.h>
#include <hbglobal.h>

/**
 * TODO: add comment
 */
class UnifiedViewerPlugin : public QObject, public HbStyleInterface
{
Q_OBJECT
    Q_INTERFACES(HbStyleInterface)

public:
    /**
     * Inherited from HbStyleInterface
     * @see HbStyleInterface docs
     */
    int primitiveCount() const;

    /**
     * Inherited from HbStyleInterface
     * @see HbStyleInterface docs
     */
    QGraphicsItem *createPrimitive(HbStyle::Primitive primitive,
        QGraphicsItem *parent = 0) const;

    /**
     * Inherited from HbStyleInterface
     * @see HbStyleInterface docs
     */
    void updatePrimitive(QGraphicsItem *item, HbStyle::Primitive primitive,
        const QStyleOption *option) const;

    /**
     * Inherited from HbStyleInterface
     * @see HbStyleInterface docs
     */
    QString layoutPath() const;

};

#endif // UNIFIEDVIEWERPLUGIN_H
// EOF