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