phonesrv_plat/phone_client_ussd_api/tsrc/mt_ussd.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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:  Implementation of the Mt_Ussd class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _MT_USSD_H
       
    20 #define _MT_USSD_H
       
    21 
       
    22 #include <QtTest/QtTest>
       
    23 #include <QString>
       
    24 #include <QStringList>
       
    25 #include <QSignalSpy>
       
    26 #include <QMetaType>
       
    27 #include <QObject>
       
    28 
       
    29 
       
    30 // Class forwards
       
    31 class CPhCltUssd;
       
    32 
       
    33 /**
       
    34  *  Mt_Ussd module test class.
       
    35  * 
       
    36  *  Tests Mt_Ussd interface.
       
    37  *  See cpp file for more information. 
       
    38  *
       
    39  *  @lib phoneclient.lib
       
    40  *  @since S60 <TB10.1>
       
    41  */
       
    42 class Mt_Ussd : public QObject
       
    43 {
       
    44     Q_OBJECT
       
    45 
       
    46 public:
       
    47     Mt_Ussd();
       
    48 
       
    49     virtual ~Mt_Ussd();
       
    50 
       
    51 private slots: 
       
    52 
       
    53      /**
       
    54      * Called before the first testfunction is executed.
       
    55      */
       
    56     void initTestCase();
       
    57 
       
    58      /**
       
    59      * Called after the last testfunction has been executed.
       
    60      */
       
    61     void cleanupTestCase();
       
    62 
       
    63     /**
       
    64 	* Test SendUssd with Unicode string
       
    65 	*/
       
    66     void testSendUssdUnicode();
       
    67     
       
    68 	/**
       
    69 	* Test sendUssd
       
    70 	*/    
       
    71     void testSendUssd();
       
    72     
       
    73 	/**
       
    74 	* Test sendUssd with given DCS
       
    75 	*/    
       
    76     void testSendUssdWithDCS();
       
    77     
       
    78 	/**
       
    79 	* Test sendUssd by BTN string
       
    80 	*/    
       
    81     void testSendUssdBtn();
       
    82 
       
    83 	/**
       
    84 	* Test sendUssd by CMCC string
       
    85 	*/    
       
    86     void testSendUssdCmcc();    
       
    87     
       
    88 	
       
    89 private:  //data
       
    90 
       
    91     CPhCltUssd* mUssd;
       
    92 };
       
    93 
       
    94 #endif // _MT_VMBXENGINE_H