719
|
1 |
/*
|
|
2 |
* Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
872
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
719
|
6 |
* which accompanies this distribution, and is available
|
872
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
719
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
* @file
|
|
16 |
* This contains ths class CT_MsgSharedDataBase which creates a session object
|
|
17 |
*
|
|
18 |
*
|
|
19 |
*/
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
#ifndef __T_MSG_SHARED_DATA_BASE_H__
|
|
28 |
#define __T_MSG_SHARED_DATA_BASE_H__
|
|
29 |
|
|
30 |
|
|
31 |
/* Epoc includes */
|
|
32 |
#include <mtclreg.h>
|
|
33 |
#include <mtclbase.h>
|
|
34 |
|
|
35 |
|
|
36 |
/*
|
|
37 |
* This implements a class which creates and returns a session object which
|
|
38 |
* can be shared across test steps.It serves as a base class for other shared
|
|
39 |
* data objects which require the session object
|
|
40 |
*/
|
|
41 |
class CT_MsgSharedDataBase : public CBase, protected MMsvSessionObserver
|
|
42 |
{
|
|
43 |
public:
|
|
44 |
/*
|
|
45 |
* Destructor
|
|
46 |
*/
|
|
47 |
virtual ~CT_MsgSharedDataBase();
|
|
48 |
|
|
49 |
protected:
|
|
50 |
CT_MsgSharedDataBase();
|
|
51 |
|
|
52 |
/*
|
|
53 |
* Constructs the required session, registry objects
|
|
54 |
* Initialises the MTM object to NULL
|
|
55 |
*/
|
|
56 |
void ConstructL();
|
|
57 |
|
|
58 |
/*
|
|
59 |
* To be implemented by the derived classes to creates
|
|
60 |
* the required MTM objects
|
|
61 |
*/
|
|
62 |
virtual CBaseMtm* NewMtmL() = 0;
|
|
63 |
|
|
64 |
public:
|
|
65 |
/* Derived from MMsvSessionObserver */
|
|
66 |
void HandleSessionEventL(TMsvSessionEvent,TAny*,TAny*,TAny*) {};
|
|
67 |
|
|
68 |
public:
|
|
69 |
/* Session object */
|
|
70 |
CMsvSession* iSession;
|
|
71 |
/* Registry object required to create MTMs */
|
|
72 |
CClientMtmRegistry* iRegistry;
|
|
73 |
/* Set to NULL.To be Set for each specific Mtm by deriving class. */
|
|
74 |
CBaseMtm* iMtm;
|
|
75 |
};
|
|
76 |
|
|
77 |
#endif /* __T_MSG_SHARED_DATA_BASE_H__ */
|