equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef __SS_FACTORYCONTAINERMAP_H__ |
|
22 #define __SS_FACTORYCONTAINERMAP_H__ |
|
23 |
|
24 #include <comms-infras/ss_common.h> |
|
25 |
|
26 namespace ESock |
|
27 { |
|
28 |
|
29 NONSHARABLE_CLASS(RPlaneFCMap) |
|
30 { |
|
31 public: |
|
32 void Close(); |
|
33 TInt AddPlaneFC(const Den::TPlayerRole& aPlane, const Messages::TNodeId& aFC); |
|
34 Messages::TNodeId GetPlaneFC(const Den::TPlayerRole& aPlane); |
|
35 void DropFCOfPeer(const Den::TPlayerRole& aPlane, CommsFW::TWorkerId aPeerWorker); |
|
36 |
|
37 private: |
|
38 class TPlaneFCEntry |
|
39 { |
|
40 public: |
|
41 static TInt Cmp(const TPlaneFCEntry& aLHS, const TPlaneFCEntry& aRHS); |
|
42 |
|
43 Den::TPlayerRole iPlane; //< OR'ing together not valid; each FC concerns a single plane |
|
44 Messages::TNodeId iFC; //< Factory Container cookie |
|
45 }; |
|
46 |
|
47 typedef RArray<TPlaneFCEntry> TPlaneFCMap; |
|
48 TPlaneFCMap iMap; |
|
49 }; |
|
50 |
|
51 } // namespace ESock |
|
52 |
|
53 #endif // __SS_FACTORYCONTAINERMAP_H__ |
|
54 |