logsui/logsengine/logssymbianos/tsrc/ut_logssymbianos/inc/ut_logsdbconnector.h
changeset 0 4a5361db8937
child 17 90fe74753f71
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 UT_LOGSDBCONNECTOR_H
       
    18 #define UT_LOGSDBCONNECTOR_H
       
    19 
       
    20 #include <QObject>
       
    21 #include <QList>
       
    22 
       
    23 class LogsDbConnector;
       
    24 class LogsEvent;
       
    25 
       
    26 class UT_LogsDbConnector : 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 testConstructor();
       
    50     void testInit();
       
    51     void testClearList();
       
    52     void testClearEvents();
       
    53     void testMarkEventsSeen();
       
    54     void testReadDuplicates();
       
    55     void testStart();
       
    56     void testReadCompleted();
       
    57     void testErrorOccurred();
       
    58     void testUpdateDetails();
       
    59     void testClearMissedCallsCounter();
       
    60     void testRefreshData();
       
    61     void testCompressData();
       
    62     void testPredictiveSearchStatus();
       
    63     void testSetPredictiveSearch();
       
    64     
       
    65 private:
       
    66  
       
    67     LogsDbConnector* mDbConnector; 
       
    68     QList<LogsEvent*> mEvents;
       
    69 
       
    70 };
       
    71 
       
    72 
       
    73 #endif //UT_LOGSDBCONNECTOR_H