|
1 /** |
|
2 * Copyright (c) 2005-2009 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 "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: |
|
15 * base class for mesh-machine based ESock sub-sessions |
|
16 * THIS API IS INTERNAL TO NETWORKING AND IS SUBJECT TO CHANGE AND NOT FOR EXTERNAL USE |
|
17 * |
|
18 * |
|
19 */ |
|
20 |
|
21 |
|
22 |
|
23 /** |
|
24 @file |
|
25 @internalTechnology |
|
26 */ |
|
27 |
|
28 #ifndef _SS_MMNODE_SUBSESS_H_ |
|
29 #define _SS_MMNODE_SUBSESS_H_ |
|
30 |
|
31 #include <ss_std.h> |
|
32 #include <comms-infras/ss_mmnode.h> |
|
33 |
|
34 namespace ESock |
|
35 { |
|
36 |
|
37 //base class for mesh-machine based subsessions |
|
38 class CMMSockSubSession : public CSockSubSession, |
|
39 public ACFMMNodeIdBase |
|
40 { |
|
41 protected: |
|
42 CMMSockSubSession(const MeshMachine::TNodeActivityMap& aActivityMap, CSockSession* aSession, CPlayer* aPlayer, const TSubSessionUniqueId aSubSessionUniqueId) |
|
43 : CSockSubSession(aSession, aPlayer, aSubSessionUniqueId), |
|
44 ACFMMNodeIdBase(aActivityMap) |
|
45 { |
|
46 } |
|
47 |
|
48 virtual void HandleMessageReturnValue(MeshMachine::TNodeContextBase& aContext); |
|
49 void ConstructL(); |
|
50 |
|
51 virtual void CommsApiExtBindIfaceL(const RMessage2& aMessage); |
|
52 virtual void CommsApiExtIfaceSendReceiveL(const RMessage2& aMessage); |
|
53 virtual void CloseExtensionInterface(const RMessage2& aMessage); |
|
54 virtual void CancelAndCloseAllClientExtIfaces(); |
|
55 |
|
56 public: |
|
57 void ReceivedL(TUint16 aIpcId, const Messages::TSignatureBase& aCFMessage); //Very useful function not to have to construct a message on the stack |
|
58 virtual Messages::RNodeInterface* ServiceProvider() const |
|
59 { |
|
60 return ACFMMNodeIdBase::ServiceProvider(); |
|
61 } |
|
62 }; |
|
63 |
|
64 } //namespace Esock |
|
65 |
|
66 |
|
67 #endif |
|
68 //_SS_MMNODE_SUBSESS_H_ |
|
69 |