homescreenapp/widgetplugins/hsclockwidgetplugin/inc/hsclockwidgettype_symbian.h
changeset 46 23b5d6a29cce
parent 39 4e8ebe173323
child 48 11a8fa9275d5
child 51 4785f57bf3d4
equal deleted inserted replaced
39:4e8ebe173323 46:23b5d6a29cce
     1 /*
       
     2 * Copyright (c) 2008 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:  Clock widget
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef HSCLOCKWIDGETTYPE_H
       
    19 #define HSCLOCKWIDGETTYPE_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QString>
       
    23 #include <hstest_global.h>
       
    24 
       
    25 HOMESCREEN_TEST_CLASS(TestClockWidget)
       
    26 
       
    27 class CEnvironmentChangeNotifier;
       
    28 class HsClockWidgetType : public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31     
       
    32 public:
       
    33 
       
    34     HsClockWidgetType(QObject *parent = 0);
       
    35     ~HsClockWidgetType();
       
    36 
       
    37     QString type() const;
       
    38     
       
    39     static TInt EnvironmentChanged( TAny* aObj );
       
    40     
       
    41 signals:
       
    42     void typeChanged(QString type);
       
    43         
       
    44 private: 
       
    45     void createObserver();
       
    46     QString localeTypeString()const;
       
    47     
       
    48 private slots:
       
    49     void onTypeChanged();
       
    50 
       
    51 
       
    52 private:
       
    53     CEnvironmentChangeNotifier *mDateTimeNotifier;
       
    54     
       
    55     QString mClockType;
       
    56 
       
    57     Q_DISABLE_COPY(HsClockWidgetType)
       
    58 
       
    59     HOMESCREEN_TEST_FRIEND_CLASS(TestClockWidget)
       
    60 
       
    61 };
       
    62 
       
    63 #endif