messagingapp/msgui/layoutplugins/conversationviewplugin/inc/conversationviewplugin.h
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 30 6a20128ce557
child 32 f3f513612312
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description: Layout plugin for all the widgets present in
       
    15  * conversation view.
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef CONVERSATIONVIEWPLUGIN_H
       
    20 #define CONVERSATIONVIEWPLUGIN_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <QtPlugin>
       
    24 #include <hbstyleinterface.h>
       
    25 #include <hbglobal.h>
       
    26 
       
    27 /**
       
    28  * This class represents the conversationview layout plugin
       
    29  * to define styling information for all the widgets present in
       
    30  * the conversation view.
       
    31  */
       
    32 class ConversationViewPlugin : public QObject, public HbStyleInterface
       
    33 {
       
    34     Q_OBJECT Q_INTERFACES(HbStyleInterface)
       
    35 
       
    36 public:
       
    37     /**
       
    38      * Inherited from HbStyleInterface
       
    39      * @see HbStyleInterface docs
       
    40      */
       
    41     int primitiveCount() const;
       
    42 
       
    43     /**
       
    44      * Inherited from HbStyleInterface
       
    45      * @see HbStyleInterface docs
       
    46      */
       
    47     QGraphicsItem    *createPrimitive( HbStyle::Primitive primitive, QGraphicsItem *parent = 0 ) const;
       
    48 
       
    49     /**
       
    50      * Inherited from HbStyleInterface
       
    51      * @see HbStyleInterface docs
       
    52      */
       
    53     void updatePrimitive( QGraphicsItem *item, HbStyle::Primitive primitive, const QStyleOption *option ) const;
       
    54 
       
    55     /**
       
    56      * Inherited from HbStyleInterface
       
    57      * @see HbStyleInterface docs
       
    58      */
       
    59     QString layoutPath() const;
       
    60 
       
    61 };
       
    62 
       
    63 #endif // CONVERSATIONVIEWPLUGIN_H