screensaver/snsrplugins/snsrbigclockscreensaverplugin/inc/snsroledanalogclockcontainer.h
changeset 97 66b5fe3c07fd
parent 86 e4f038c420f7
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
       
     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 SnsrLabel;
       
    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     void updatePosition();
       
    41 
       
    42 public: // from base classes
       
    43 
       
    44     virtual int updateIntervalInMilliseconds();
       
    45     virtual Screensaver::ScreenPowerMode displayPowerMode();
       
    46     virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow);
       
    47     virtual bool isOrientationLocked();
       
    48 
       
    49 protected: // from base classes
       
    50 
       
    51     virtual void loadWidgets();
       
    52 
       
    53 private:
       
    54 
       
    55     QGraphicsWidget *mClockContainer;
       
    56     
       
    57     SnsrOledClockWidget *mOledClockWidget;
       
    58     SnsrLabel *mDateLabel;
       
    59     
       
    60     QPointF mDestPosition;
       
    61     bool mInitialize;
       
    62     
       
    63     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin)
       
    64 };
       
    65 
       
    66 #endif // SNSROLEDANALOGCLOCKCONTAINER_H