homescreenapp/widgetplugins/hsclockwidgetplugin/styles/hsanalogclockstyleplugin/inc/hsanalogclockstyleplugin.h
changeset 39 4e8ebe173323
parent 36 cdae8c6c3876
child 42 517f4fb5ec74
child 46 23b5d6a29cce
equal deleted inserted replaced
36:cdae8c6c3876 39:4e8ebe173323
     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:  Analog clock style plugin.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSANALOGCLOCKSTYLEPLUGIN_H
       
    19 #define HSANALOGCLOCKSTYLEPLUGIN_H
       
    20 
       
    21 #include <QtPlugin>
       
    22 
       
    23 #include <hbstyleinterface.h>
       
    24 #include <hbglobal.h>
       
    25 
       
    26 #include <hstest_global.h>
       
    27 
       
    28 HOMESCREEN_TEST_CLASS(T_HsAnalogClockStylePlugin)
       
    29 
       
    30 class HsAnalogClockStylePlugin: public QObject, public HbStyleInterface
       
    31 {
       
    32     Q_OBJECT
       
    33     Q_INTERFACES(HbStyleInterface)
       
    34 
       
    35 public:
       
    36     int primitiveCount() const;
       
    37     QGraphicsItem *createPrimitive(HbStyle::Primitive primitive, QGraphicsItem *parent = 0) const;
       
    38     void updatePrimitive(QGraphicsItem *item, HbStyle::Primitive primitive, const QStyleOption *option) const;
       
    39     QString layoutPath() const;
       
    40 	
       
    41 	HOMESCREEN_TEST_FRIEND_CLASS(T_HsAnalogClockStylePlugin)
       
    42 
       
    43 };
       
    44 
       
    45 #endif // HSANALOGCLOCKSTYLEPLUGIN_H