messagingfw/msgtest/integration/biomsg/inc/t_bio.h
changeset 0 8e480a14352b
equal deleted inserted replaced
-1:000000000000 0:8e480a14352b
       
     1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #include "smstestutils.h"
       
    17 
       
    18 #include <msvapi.h>
       
    19 
       
    20 #include <smsuaddr.h>
       
    21 
       
    22 class CEntryObserver : public CBase, public MMsvEntryObserver
       
    23 	{
       
    24 public:
       
    25 	void HandleEntryEventL(TMsvEntryEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);
       
    26 	~CEntryObserver();
       
    27 public:
       
    28 	CEntryObserver(CSmsTestUtils& aTestUtils, CMsvEntrySelection& aReceived, const TInt& aCurrentMessageNum);
       
    29 	CMsvEntrySelection* iNew;
       
    30 	CSmsTestUtils& iTestUtils;
       
    31 	CMsvEntrySelection& iReceived;
       
    32 	const TInt& iCurrentMessageNum;
       
    33 	};
       
    34 
       
    35 class CSendReceive;
       
    36 class CParserTest;
       
    37 class CTestIap;
       
    38 class CTestWap;
       
    39 class CWatcher;
       
    40 class CWatcherWait;
       
    41 class CBioSmokeTest : public CBase
       
    42 	{
       
    43 public:
       
    44 	static CBioSmokeTest* NewL(RTest& aTest);
       
    45 	void StartL();
       
    46 
       
    47 private:
       
    48 	CBioSmokeTest();
       
    49 	~CBioSmokeTest();
       
    50 
       
    51 	void ConstructL(RTest& aTest);
       
    52 
       
    53 	void StartWatcherL();
       
    54 	void CancelWatcher();
       
    55 
       
    56 	CMsvSession& Session()	{return *iSmsTestUtils->iMsvSession;}
       
    57 	CMsvEntry& MsvEntry()	{return *iSmsTestUtils->iMsvEntry;}
       
    58 	CSmsClientMtm& Client()	{return *iSmsTestUtils->iSmsClientMtm;}
       
    59 
       
    60 private:
       
    61 
       
    62 	CSmsTestUtils*		iSmsTestUtils;
       
    63 
       
    64 	CSendReceive*		iSendReceive;
       
    65 	CParserTest*		iParserTest;
       
    66 
       
    67 	CEntryObserver*		iEntryObserver;
       
    68 
       
    69 	CMsvEntrySelection* iReceived;
       
    70 	TInt				iCountWaits;
       
    71 
       
    72 	CTestUtilsWatcherStarter* iWatcher;
       
    73 	CMsvEntry*			iEntryForObserver;
       
    74 	TInt				iCurrentMessageNum;
       
    75 
       
    76 	CTestTimer*			iTimer;
       
    77 
       
    78 	enum TBioSmokeState
       
    79 		{
       
    80 		EBioSmokeSendRecv,
       
    81 		EBioSmokeParseProcess,
       
    82 		EBioSmokeTestIap,
       
    83 		EBioSmokeTestWap
       
    84 		} iBioSmokeState;
       
    85 
       
    86 	RSocketServ iSocketServ;	//< A Socket Server
       
    87 	RSocket iSocket;			//< A Socket
       
    88 	};