logsui/logsengine/tsrc/at_logsengine/inc/at_logsengine.h
changeset 0 4a5361db8937
child 21 2f0af9ba7665
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     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 AT_LOGSENGINE_H
       
    18 #define AT_LOGSENGINE_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <e32base.h>
       
    22 
       
    23 class LogsModel;
       
    24 class LogsCustomFilter;
       
    25 
       
    26 class AT_LogsEngine : public QObject                 
       
    27 {
       
    28      Q_OBJECT
       
    29     
       
    30 private slots:
       
    31 
       
    32 /*
       
    33  * In addition, there are four private slots that are not treated as testfunctions. 
       
    34  * They will be executed by the testing framework and can be used to initialize and clean up 
       
    35  * either the entire test or the current test function.
       
    36  * 
       
    37  * initTestCase() will be called before the first testfunction is executed.
       
    38  * cleanupTestCase() will be called after the last testfunction was executed.
       
    39  * init() will be called before each testfunction is executed.
       
    40  * cleanup() will be called after every testfunction.
       
    41 */
       
    42     void initTestCase();
       
    43     void cleanupTestCase();
       
    44     void init();
       
    45     void cleanup();
       
    46 
       
    47 private slots: //test methods
       
    48      
       
    49     void testAllEvents();
       
    50     void testFilteredEvents();
       
    51     void testHomeScreenUsecase();
       
    52     void testMarkEventsSeen();
       
    53     void testClearEvents();
       
    54 private:
       
    55     void clearEventsL();
       
    56     void writeEventsL();
       
    57     void executeL(const TDesC& exeName, const TDesC& commandLine);
       
    58     
       
    59 private:
       
    60  
       
    61     LogsModel* mModel; 
       
    62 
       
    63 };
       
    64 
       
    65 
       
    66 #endif //AT_LOGSENGINE_H