screensaver/screensaverplugins/snsrbigclockscreensaverplugin/inc/snsroledanalogclockcontainer.h
changeset 61 2b1b11a301d2
child 69 87476091b3f5
equal deleted inserted replaced
60:30f14686fb04 61:2b1b11a301d2
       
     1 /*
       
     2 * Copyright (c) 2009 - 2010 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:  Container for oled analog clock.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SNSROLEDANALOGCLOCKCONTAINER_H
       
    19 #define SNSROLEDANALOGCLOCKCONTAINER_H
       
    20 
       
    21 #include "snsrbigclockcontainer.h"
       
    22 
       
    23 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin)
       
    24 
       
    25 class SnsrOledClockWidget;
       
    26 class HbLabel;
       
    27 
       
    28 class SnsrOledAnalogClockContainer : public SnsrBigClockContainer
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     SnsrOledAnalogClockContainer();
       
    35     ~SnsrOledAnalogClockContainer();
       
    36 
       
    37 public slots:
       
    38 
       
    39     virtual void update();
       
    40     virtual void changeLayout(Qt::Orientation orientation);
       
    41     void updatePosition();
       
    42 
       
    43 public: // from base classes
       
    44 
       
    45     virtual int updateIntervalInMilliseconds();
       
    46 
       
    47 private:
       
    48 
       
    49     QGraphicsWidget *mClockContainer;
       
    50     
       
    51     SnsrOledClockWidget *mOledClockWidget;
       
    52     HbLabel *mDateLabel;
       
    53     
       
    54     QPointF mDestPosition;
       
    55     bool mInitialize;
       
    56     
       
    57     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin)
       
    58 };
       
    59 
       
    60 #endif // SNSROLEDANALOGCLOCKCONTAINER_H