telephonyprotocols/umtsgprsscpr/Test/te_spud/inc/SpudManInterfaceTest.h
author hgs
Mon, 28 Jun 2010 17:02:18 +0100
changeset 45 28dbf5a297f4
parent 44 8b72faa1200f
permissions -rw-r--r--
201024_05
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
44
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     1
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     2
// All rights reserved.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     7
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     8
// Initial Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    10
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    11
// Contributors:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    12
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    13
// Description:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    14
// Declaration of the SpudManInterface for SPUD FSM unit tests
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    15
// 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    16
//
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    17
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    18
/**
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    19
 @file 
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    20
 @internalComponent
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    21
*/
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    22
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    23
#ifndef SPUDMANINTERFACETEST_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    24
#define SPUDMANINTERFACETEST_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    25
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    26
#include <networking/mspudmaninterface.h>
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    27
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    28
// forward declarations
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    29
class CTestRequestListener;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    30
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    31
/** Implementation of MSpudManInterface used to test the FSM */
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    32
class TSpudManInterfaceTest : public MSpudManInterface
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    33
	{
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    34
	public:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    35
	TSpudManInterfaceTest(CInputRequestListener& aListener);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    36
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    37
	void Input(TContextId aPdpId, TInt aEvent, TInt aParam);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    38
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    39
	void SetContextTerminationErrorAndStop(TContextId aContextId, TInt aErrorCode);
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    40
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    41
private:
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    42
	/** Used as the interface between the thread running the active objects and the test execute thread.
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    43
		Contains the data passed to/from Input requests */
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    44
	CInputRequestListener& iListener;
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    45
	};
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    46
	
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    47
#endif
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    48
// SPUDMANINTERFACETEST_H
8b72faa1200f 201024_02
hgs
parents:
diff changeset
    49