logsui/logsengine/logssymbianos/inc/logssystemtimeobserver.h
changeset 15 76d2cf7a585e
parent 13 52d644758b05
child 17 90fe74753f71
equal deleted inserted replaced
13:52d644758b05 15:76d2cf7a585e
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LOGSSYSTEMTIMEOBSERVER_H
       
    19 #define LOGSSYSTEMTIMEOBSERVER_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <QObject>
       
    23 
       
    24 // FORWARD DECLARATION
       
    25 class CEnvironmentChangeNotifier;
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 
       
    30 
       
    31 /**
       
    32  * LogsSystemTimeObserver is used to observe changes in system locale settings
       
    33  */
       
    34 class LogsSystemTimeObserver : public QObject
       
    35     {
       
    36     Q_OBJECT
       
    37     
       
    38 public:
       
    39         
       
    40     explicit LogsSystemTimeObserver(QObject* parent = 0);
       
    41     
       
    42     virtual ~LogsSystemTimeObserver();
       
    43 
       
    44 signals:
       
    45 
       
    46     void timeFormatChanged();
       
    47 
       
    48     
       
    49 private:
       
    50     
       
    51     static TInt EnvironmentChangeCallback(TAny* aThis);
       
    52 
       
    53 private: // data
       
    54         
       
    55     CEnvironmentChangeNotifier* mEnvChangeNotifier;
       
    56     
       
    57 private:    
       
    58     friend class UT_LogsSystemTimeObserver;
       
    59     };
       
    60 
       
    61 #endif      // LOGSSYSTEMTIMEOBSERVER_H
       
    62 
       
    63 // End of File
       
    64       
       
    65 
       
    66         
       
    67