author | William Roberts <williamr@symbian.org> |
Wed, 31 Mar 2010 12:33:34 +0100 | |
branch | Symbian3 |
changeset 4 | 837f303aceeb |
permissions | -rw-r--r-- |
williamr@4 | 1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
williamr@4 | 2 |
// All rights reserved. |
williamr@4 | 3 |
// This component and the accompanying materials are made available |
williamr@4 | 4 |
// under the terms of "Eclipse Public License v1.0" |
williamr@4 | 5 |
// which accompanies this distribution, and is available |
williamr@4 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
williamr@4 | 7 |
// |
williamr@4 | 8 |
// Initial Contributors: |
williamr@4 | 9 |
// Nokia Corporation - initial contribution. |
williamr@4 | 10 |
// |
williamr@4 | 11 |
// Contributors: |
williamr@4 | 12 |
// |
williamr@4 | 13 |
// Description: |
williamr@4 | 14 |
// |
williamr@4 | 15 |
|
williamr@4 | 16 |
/** |
williamr@4 | 17 |
@file |
williamr@4 | 18 |
@internalTechnology |
williamr@4 | 19 |
*/ |
williamr@4 | 20 |
|
williamr@4 | 21 |
#ifndef __SS_FACTORYCONTAINERMAP_H__ |
williamr@4 | 22 |
#define __SS_FACTORYCONTAINERMAP_H__ |
williamr@4 | 23 |
|
williamr@4 | 24 |
#include <comms-infras/ss_common.h> |
williamr@4 | 25 |
|
williamr@4 | 26 |
namespace ESock |
williamr@4 | 27 |
{ |
williamr@4 | 28 |
|
williamr@4 | 29 |
NONSHARABLE_CLASS(RPlaneFCMap) |
williamr@4 | 30 |
{ |
williamr@4 | 31 |
public: |
williamr@4 | 32 |
void Close(); |
williamr@4 | 33 |
TInt AddPlaneFC(const Den::TPlayerRole& aPlane, const Messages::TNodeId& aFC); |
williamr@4 | 34 |
Messages::TNodeId GetPlaneFC(const Den::TPlayerRole& aPlane); |
williamr@4 | 35 |
void DropFCOfPeer(const Den::TPlayerRole& aPlane, CommsFW::TWorkerId aPeerWorker); |
williamr@4 | 36 |
|
williamr@4 | 37 |
private: |
williamr@4 | 38 |
class TPlaneFCEntry |
williamr@4 | 39 |
{ |
williamr@4 | 40 |
public: |
williamr@4 | 41 |
static TInt Cmp(const TPlaneFCEntry& aLHS, const TPlaneFCEntry& aRHS); |
williamr@4 | 42 |
|
williamr@4 | 43 |
Den::TPlayerRole iPlane; //< OR'ing together not valid; each FC concerns a single plane |
williamr@4 | 44 |
Messages::TNodeId iFC; //< Factory Container cookie |
williamr@4 | 45 |
}; |
williamr@4 | 46 |
|
williamr@4 | 47 |
typedef RArray<TPlaneFCEntry> TPlaneFCMap; |
williamr@4 | 48 |
TPlaneFCMap iMap; |
williamr@4 | 49 |
}; |
williamr@4 | 50 |
|
williamr@4 | 51 |
} // namespace ESock |
williamr@4 | 52 |
|
williamr@4 | 53 |
#endif // __SS_FACTORYCONTAINERMAP_H__ |
williamr@4 | 54 |