logsui/logsengine/logssymbianos/tsrc/ut_logssymbianos/inc/ut_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 #ifndef UT_LOGSSYSTEMTIMEOBSERVER_H
       
    18 #define UT_LOGSSYSTEMTIMEOBSERVER_H
       
    19 
       
    20 #include <QObject>
       
    21 
       
    22 class LogsSystemTimeObserver;
       
    23 
       
    24 class UT_LogsSystemTimeObserver : public QObject                 
       
    25 {
       
    26      Q_OBJECT
       
    27     
       
    28 private slots:
       
    29 
       
    30 /*
       
    31  * In addition, there are four private slots that are not treated as testfunctions. 
       
    32  * They will be executed by the testing framework and can be used to initialize and clean up 
       
    33  * either the entire test or the current test function.
       
    34  * 
       
    35  * initTestCase() will be called before the first testfunction is executed.
       
    36  * cleanupTestCase() will be called after the last testfunction was executed.
       
    37  * init() will be called before each testfunction is executed.
       
    38  * cleanup() will be called after every testfunction.
       
    39 */
       
    40     void initTestCase();
       
    41     void cleanupTestCase();
       
    42     void init();
       
    43     void cleanup();
       
    44 
       
    45 private slots: //test methods
       
    46      
       
    47     void testConstructor();
       
    48     void testEnvironmentChangeCallback();
       
    49  
       
    50 private:
       
    51  
       
    52     LogsSystemTimeObserver* mTimeObserver; 
       
    53 };
       
    54 
       
    55 
       
    56 #endif //UT_LOGSSYSTEMTIMEOBSERVER_H