screensaver/screensaverplugins/snsrbigclockscreensaverplugin/inc/snsrdigitalclockcontainer.h
changeset 97 66b5fe3c07fd
parent 95 32e56106abf2
child 98 e6f74eb7f69f
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 digital clock.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef SNSRDIGITALCLOCKCONTAINER_H
       
    19 #define SNSRDIGITALCLOCKCONTAINER_H
       
    20 
       
    21 #include "snsrbigclockcontainer.h"
       
    22 
       
    23 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin)
       
    24 
       
    25 class SnsrLabel;
       
    26 class SnsrSwipeWidget;
       
    27 
       
    28 class SnsrDigitalClockContainer : public SnsrBigClockContainer
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33 
       
    34     SnsrDigitalClockContainer();
       
    35     ~SnsrDigitalClockContainer();
       
    36 
       
    37 public slots:
       
    38 
       
    39     virtual void update();
       
    40 
       
    41 public: // from base classes
       
    42 
       
    43     virtual int updateIntervalInMilliseconds();
       
    44 
       
    45 protected: // from base classes
       
    46 
       
    47     virtual void loadWidgets();
       
    48 
       
    49 private: // data
       
    50 
       
    51     SnsrLabel *mTimeLabel;
       
    52     SnsrLabel *mAmPmLabel;
       
    53     SnsrLabel *mDateLabel;
       
    54     SnsrSwipeWidget *mSwipeWidget;
       
    55 
       
    56     SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin)
       
    57 };
       
    58 
       
    59 #endif // SNSRDIGITALCLOCKCONTAINER_H