phoneclientserver/phoneclient/tsrc/public/basic/ut_ussd/ut_ussd.h
changeset 15 d7fc66ccd6fb
child 27 7eb70891911c
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
       
     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 
       
    18 
       
    19 // include files
       
    20 #include <QObject> // base class
       
    21 
       
    22 // forward declarations
       
    23 class CPhCltUssd;
       
    24 class CPhCltUssdImp;
       
    25 class CPhCltUssdSatClient;
       
    26 
       
    27 // class declaration
       
    28 class Ut_Ussd: public QObject
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 private slots: // test cases
       
    33     
       
    34     // Test for CPhCltUssd
       
    35     void testTestEnv();
       
    36     void openAndCloseApi();
       
    37     void sendUssd16bit_data();
       
    38     void sendUssd16bit();
       
    39     void sendUssd8bit_data();
       
    40     void sendUssd8bit();
       
    41     void sendCancel();
       
    42 
       
    43     // Test for CPhCltUssdSatClient
       
    44     void openAndCloseSatApi();
       
    45     void sendSatMessage_data();
       
    46     void sendSatMessage();
       
    47 
       
    48     // receiving messages
       
    49 	void sendReceive_data();
       
    50 	void sendReceive();
       
    51 	void testMultipleIncomingMessages();
       
    52 
       
    53     // cases for internal api
       
    54 	void testUssdInternalApi_data();
       
    55 	void testUssdInternalApi();
       
    56 
       
    57 private: // tet blocks
       
    58 
       
    59     void createUssdApi(bool ui);
       
    60     void createUssdInternalApi(bool ui);
       
    61     void createUssdSatApi(bool ui);
       
    62 	void send(const QString& msg);
       
    63 	void receive(const QString& msg, int type);
       
    64 	void networkRelease(int error);
       
    65 	void activeSleep(int ms);
       
    66 
       
    67 
       
    68 private: // test-related members
       
    69 
       
    70     // phone client
       
    71     CPhCltUssd *m_ussdApi;
       
    72     CPhCltUssdImp *m_ussdInternalApi;
       
    73     CPhCltUssdSatClient *m_ussdSatApi;
       
    74 
       
    75 };
       
    76