diff -r 594d59766373 -r 7d48bed6ce0c phonesrv_plat/phone_client_ussd_api/tsrc/mt_ussd.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phonesrv_plat/phone_client_ussd_api/tsrc/mt_ussd.h Tue Aug 31 15:45:17 2010 +0300 @@ -0,0 +1,94 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of the Mt_Ussd class +* +*/ + + +#ifndef _MT_USSD_H +#define _MT_USSD_H + +#include +#include +#include +#include +#include +#include + + +// Class forwards +class CPhCltUssd; + +/** + * Mt_Ussd module test class. + * + * Tests Mt_Ussd interface. + * See cpp file for more information. + * + * @lib phoneclient.lib + * @since S60 + */ +class Mt_Ussd : public QObject +{ + Q_OBJECT + +public: + Mt_Ussd(); + + virtual ~Mt_Ussd(); + +private slots: + + /** + * Called before the first testfunction is executed. + */ + void initTestCase(); + + /** + * Called after the last testfunction has been executed. + */ + void cleanupTestCase(); + + /** + * Test SendUssd with Unicode string + */ + void testSendUssdUnicode(); + + /** + * Test sendUssd + */ + void testSendUssd(); + + /** + * Test sendUssd with given DCS + */ + void testSendUssdWithDCS(); + + /** + * Test sendUssd by BTN string + */ + void testSendUssdBtn(); + + /** + * Test sendUssd by CMCC string + */ + void testSendUssdCmcc(); + + +private: //data + + CPhCltUssd* mUssd; +}; + +#endif // _MT_VMBXENGINE_H