satui/satapp/tsrc/ut_satapp/inc/ut_csatuiobserver.h
changeset 15 d7fc66ccd6fb
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
       
     1 /*
       
     2 * Copyright (c) 2010 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: Unit test CSatUiObserver class
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef UT_CSATUIOBSERVER_H
       
    19 #define UT_CSATUIOBSERVER_H
       
    20 
       
    21 #include <QtTest/QtTest>
       
    22 #include <QObject>
       
    23 
       
    24 // Class forwards
       
    25 class CSatUiObserver;
       
    26 class DummyEventProvider;
       
    27 
       
    28 /**
       
    29  *  CSatUiObserver unit test class.
       
    30  * 
       
    31  *  @since S60 <TB10.1>
       
    32  */
       
    33 class Ut_CSatUiObserver : public QObject
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38      /**
       
    39      * Constructor.
       
    40      */
       
    41     Ut_CSatUiObserver(QObject *parent = 0);
       
    42      /**
       
    43      * Destructor.
       
    44      */
       
    45     virtual ~Ut_CSatUiObserver();
       
    46 
       
    47 private slots:
       
    48 
       
    49      /**
       
    50      * Called before the first testfunction is executed.
       
    51      * Handles the SetUpMenu command.
       
    52      */
       
    53     void initTestCase();
       
    54 
       
    55      /**
       
    56      * Called after the last testfunction has been executed.
       
    57      * 
       
    58      */
       
    59     void cleanupTestCase();
       
    60 
       
    61      /**
       
    62      * Test CSatUiObserver's ConnectRSatSessionL.
       
    63      * 
       
    64      */
       
    65     void testConnectRSatSession();
       
    66 
       
    67      /**
       
    68      * Test CSatUiObserver's Adapter.
       
    69      * 
       
    70      */
       
    71     void testAdapter();
       
    72 
       
    73      /**
       
    74      * Test CSatUiObserver's DisconnectRSatSession.
       
    75      * 
       
    76      */
       
    77     void testDisconnectRSatSession();
       
    78 
       
    79      /**
       
    80      * Test CSatUiObserver's ProfileState.
       
    81      * 
       
    82      */
       
    83     void testProfileState();
       
    84 
       
    85     /**
       
    86      * Test CSatUiObserver's SetImplementer.
       
    87      * 
       
    88      */
       
    89     void testSetImplementer();
       
    90 
       
    91     /**
       
    92      * Test CSatUiObserver's testDisplayText's input param list.
       
    93      * 
       
    94      */
       
    95     void testDisplayText_data();
       
    96 
       
    97      /**
       
    98      * Test CSatUiObserver's DisplayTextL.
       
    99      * 
       
   100      */
       
   101     void testDisplayText();
       
   102 
       
   103     /**
       
   104      * Test CSatUiObserver's testSetUpMenu's input param list.
       
   105      * 
       
   106      */
       
   107     void testSetUpMenu_data();
       
   108 
       
   109      /**
       
   110      * Test CSatUiObserver's SetUpMenuL.
       
   111      * 
       
   112      */
       
   113     void testSetUpMenu();
       
   114 
       
   115      /**
       
   116      * Test CSatUiObserver's testGetInkey's input param list.
       
   117      * 
       
   118      */
       
   119     void testGetInkey_data();
       
   120 
       
   121      /**
       
   122      * Test CSatUiObserver's GetInkeyL.
       
   123      * 
       
   124      */
       
   125     void testGetInkey();
       
   126 
       
   127      /**
       
   128      * Test CSatUiObserver's testGetInput's input param list.
       
   129      * 
       
   130      */
       
   131     void testGetInput_data();
       
   132 
       
   133      /**
       
   134      * Test CSatUiObserver's GetInputL.
       
   135      * 
       
   136      */
       
   137     void testGetInput();
       
   138 
       
   139      /**
       
   140      * Test CSatUiObserver's testConfirmCommand's input param list.
       
   141      * 
       
   142      */
       
   143     void testConfirmCommand_data();
       
   144 
       
   145      /**
       
   146      * Test CSatUiObserver's ConfirmCommand.
       
   147      * 
       
   148      */
       
   149     void testConfirmCommand();
       
   150     
       
   151     
       
   152     /**
       
   153     * Test CSatUiObserver's Notification input param list.
       
   154     * 
       
   155     */
       
   156    void testNotification_data();
       
   157 
       
   158     /**
       
   159     * Test CSatUiObserver's Notification.
       
   160     * 
       
   161     */
       
   162    void testNotification();
       
   163 
       
   164 
       
   165    /**
       
   166    * Test CSatUiObserver's EventNotification input param list.
       
   167    * 
       
   168    */
       
   169     void testEventNotification_data();
       
   170 
       
   171    /**
       
   172    * Test CSatUiObserver's Notification.
       
   173    * 
       
   174    */
       
   175     void testEventNotification();
       
   176 
       
   177   /**
       
   178    * Test CSatUiObserver's testSetUpMenu's input param list.
       
   179    * 
       
   180    */
       
   181     void testSelectItem_data();
       
   182 
       
   183    /**
       
   184    * Test CSatUiObserver's SetUpMenuL.
       
   185    * 
       
   186    */
       
   187     void testSelectItem();
       
   188 
       
   189   /**
       
   190    * Test CSatUiObserver's testPlayTone input param list.
       
   191    * 
       
   192    */
       
   193     void testPlayTone_data();
       
   194 
       
   195    /**
       
   196    * Test CSatUiObserver's testPlayTone.
       
   197    * 
       
   198    */
       
   199     void testPlayTone();
       
   200 
       
   201 private:
       
   202 
       
   203      /**
       
   204      * Own.
       
   205      * 
       
   206      */
       
   207     CSatUiObserver *mSatObserver;
       
   208 
       
   209     /**
       
   210      * Own.
       
   211      * 
       
   212      */
       
   213     DummyEventProvider *mImplementer;
       
   214 
       
   215 };
       
   216 
       
   217 #endif // UT_CSATUIOBSERVER_H