0
|
1 |
/*
|
|
2 |
* Copyright (c) 2002-2007 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 the License "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: Forwards Tsy requests from Symbian OS to Domestic OS
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef CMmMessageManager_H
|
|
21 |
#define CMmMessageManager_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include "cmmmessagemanagerbase.h"
|
|
25 |
#include "ctsy/pluginapi/cmmdatapackage.h"
|
|
26 |
#include "ctsy/serviceapi/mmtsy_ipcdefs.h"
|
|
27 |
#include "pcktcs.h"
|
|
28 |
#include "satcs.h"
|
|
29 |
#include "etelcdmacs.h"
|
|
30 |
#include "etelmmcs.h"
|
|
31 |
|
|
32 |
// CONSTANTS
|
|
33 |
//none
|
|
34 |
|
|
35 |
// MACROS
|
|
36 |
//none
|
|
37 |
|
|
38 |
// DATA TYPES
|
|
39 |
//none
|
|
40 |
|
|
41 |
// FUNCTION PROTOTYPES
|
|
42 |
//none
|
|
43 |
|
|
44 |
// FORWARD DECLARATIONS
|
|
45 |
class CMmPhoneTsy;
|
|
46 |
class CMmMessageRouterBase;
|
|
47 |
|
|
48 |
// CLASS DECLARATION
|
|
49 |
/**
|
|
50 |
* Forwards Tsy requests from Symbian OS to Domestic OS
|
|
51 |
*
|
|
52 |
* @lib (unknown)
|
|
53 |
* @since 2.6
|
|
54 |
*/
|
|
55 |
class CMmMessageManager : public CMmMessageManagerBase
|
|
56 |
{
|
|
57 |
|
|
58 |
// public methods
|
|
59 |
public:
|
|
60 |
|
|
61 |
/**
|
|
62 |
* Creates a new CMmMessageManager object
|
|
63 |
* @return reference to created CMmMessageManager type of object
|
|
64 |
*/
|
|
65 |
static CMmMessageManager* NewL();
|
|
66 |
|
|
67 |
/**
|
|
68 |
* Destructor
|
|
69 |
*/
|
|
70 |
virtual ~CMmMessageManager();
|
|
71 |
|
|
72 |
/**
|
|
73 |
* Creates and initialises class attributes
|
|
74 |
*/
|
|
75 |
void ConstructL();
|
|
76 |
|
|
77 |
/**
|
|
78 |
* Forwards a request to DOS layer, request doesn't contain data
|
|
79 |
*/
|
|
80 |
virtual TInt HandleRequestL(
|
|
81 |
const TInt aIpc );
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Forwards a request to DOS layer, request contains
|
|
85 |
* packaged data by Common TSY
|
|
86 |
*/
|
|
87 |
virtual TInt HandleRequestL(
|
|
88 |
const TInt aIpc,
|
|
89 |
const CMmDataPackage* aDataPackage );
|
|
90 |
|
|
91 |
/**
|
|
92 |
* Forwards a request to DOS layer, request contains
|
|
93 |
* packaged data by Etel Server.
|
|
94 |
*/
|
|
95 |
virtual TInt HandleRequestL(
|
|
96 |
const TInt aIpc,
|
|
97 |
const TDataPackage* aDataPackage );
|
|
98 |
|
|
99 |
/**
|
|
100 |
* Completes a request or a notification with no data
|
|
101 |
*/
|
|
102 |
virtual void Complete( TInt aIpc, TInt aResult );
|
|
103 |
|
|
104 |
/**
|
|
105 |
* Completes a request or a notification with packaged data
|
|
106 |
*/
|
|
107 |
virtual void Complete( TInt aIpc, CMmDataPackage* data,
|
|
108 |
TInt aResult );
|
|
109 |
|
|
110 |
/**
|
|
111 |
* Registers a Tsy object for request and notification completions
|
|
112 |
*/
|
|
113 |
virtual void RegisterTsyObject( TTsyObjects aTsyObjectType,
|
|
114 |
CBase* aTsyObject );
|
|
115 |
|
|
116 |
/**
|
|
117 |
* Deregisters a Tsy object for request and notification completions
|
|
118 |
*/
|
|
119 |
virtual void DeregisterTsyObject( CBase* aTsyObject );
|
|
120 |
|
|
121 |
/**
|
|
122 |
* Sets the message router object
|
|
123 |
*/
|
|
124 |
void SetMessageRouter( CMmMessageRouterBase* aMessageRouter );
|
|
125 |
|
|
126 |
// protected methods
|
|
127 |
protected:
|
|
128 |
|
|
129 |
|
|
130 |
// private methods
|
|
131 |
private:
|
|
132 |
|
|
133 |
/**
|
|
134 |
* Default constructor
|
|
135 |
*/
|
|
136 |
CMmMessageManager();
|
|
137 |
|
|
138 |
// public attributes
|
|
139 |
public:
|
|
140 |
|
|
141 |
// protected attributes
|
|
142 |
protected:
|
|
143 |
|
|
144 |
//writing package for Handlers (only one at the moment)
|
|
145 |
CMmDataPackage iDataPackage;
|
|
146 |
|
|
147 |
CMmMessageRouterBase* iMessageRouter;
|
|
148 |
// private attributes
|
|
149 |
private:
|
|
150 |
|
|
151 |
};
|
|
152 |
|
|
153 |
|
|
154 |
#endif // CMmMessageManager_H
|
|
155 |
|
|
156 |
// End of file
|