messagingapp/msgui/layoutplugins/unifiededitorplugin/src/unifiededitorplugin.cpp
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
child 38 4e4b6adb1024
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
     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:
       
    15  *
       
    16  */
       
    17 
       
    18 // INCLUDES
       
    19 #include <hbstyle.h>
       
    20 #include "debugtraces.h"
       
    21 
       
    22 // USER INCLUDES
       
    23 #include "unifiededitorplugin.h"
       
    24 
       
    25 //---------------------------------------------------------------
       
    26 // UnifiedEditorPlugin::primitiveCount
       
    27 // @see header file
       
    28 //---------------------------------------------------------------
       
    29 int UnifiedEditorPlugin::primitiveCount() const
       
    30 {
       
    31     return 1;
       
    32 }
       
    33 
       
    34 //---------------------------------------------------------------
       
    35 // UnifiedEditorPlugin::createPrimitive
       
    36 // @see header file
       
    37 //---------------------------------------------------------------
       
    38 QGraphicsItem* UnifiedEditorPlugin::createPrimitive(
       
    39     HbStyle::Primitive primitive, QGraphicsItem *parent) const
       
    40 {
       
    41     Q_UNUSED(primitive);
       
    42     Q_UNUSED(parent);
       
    43     return NULL;
       
    44 }
       
    45 
       
    46 //---------------------------------------------------------------
       
    47 // UnifiedEditorPlugin::updatePrimitive
       
    48 // @see header file
       
    49 //---------------------------------------------------------------
       
    50 void UnifiedEditorPlugin::updatePrimitive(QGraphicsItem *item,
       
    51     HbStyle::Primitive primitive, const QStyleOption *option) const
       
    52 {
       
    53     Q_UNUSED(item);
       
    54     Q_UNUSED(primitive);
       
    55     Q_UNUSED(option);
       
    56 }
       
    57 
       
    58 //---------------------------------------------------------------
       
    59 // UnifiedEditorPlugin::layoutPath
       
    60 // @see header file
       
    61 //---------------------------------------------------------------
       
    62 QString UnifiedEditorPlugin::layoutPath() const
       
    63 {
       
    64 #ifdef _DEBUG_TRACES_
       
    65     qDebug() << "UnifiedEditorPlugin::layoutPath";
       
    66 #endif
       
    67 
       
    68 
       
    69     QString path = QString(":/");
       
    70 
       
    71 #ifdef _DEBUG_TRACES_
       
    72     qDebug() << "layout plugin resources:" << path;
       
    73 #endif
       
    74 
       
    75     return path;
       
    76 }
       
    77 
       
    78 Q_EXPORT_PLUGIN2(UnifiedEditorPlugin, UnifiedEditorPlugin)