1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/comms-infras/ss_factorycontainermap.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,54 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file
1.21 + @internalTechnology
1.22 +*/
1.23 +
1.24 +#ifndef __SS_FACTORYCONTAINERMAP_H__
1.25 +#define __SS_FACTORYCONTAINERMAP_H__
1.26 +
1.27 +#include <comms-infras/ss_common.h>
1.28 +
1.29 +namespace ESock
1.30 + {
1.31 +
1.32 +NONSHARABLE_CLASS(RPlaneFCMap)
1.33 + {
1.34 +public:
1.35 + void Close();
1.36 + TInt AddPlaneFC(const Den::TPlayerRole& aPlane, const Messages::TNodeId& aFC);
1.37 + Messages::TNodeId GetPlaneFC(const Den::TPlayerRole& aPlane);
1.38 + void DropFCOfPeer(const Den::TPlayerRole& aPlane, CommsFW::TWorkerId aPeerWorker);
1.39 +
1.40 +private:
1.41 + class TPlaneFCEntry
1.42 + {
1.43 + public:
1.44 + static TInt Cmp(const TPlaneFCEntry& aLHS, const TPlaneFCEntry& aRHS);
1.45 +
1.46 + Den::TPlayerRole iPlane; //< OR'ing together not valid; each FC concerns a single plane
1.47 + Messages::TNodeId iFC; //< Factory Container cookie
1.48 + };
1.49 +
1.50 + typedef RArray<TPlaneFCEntry> TPlaneFCMap;
1.51 + TPlaneFCMap iMap;
1.52 + };
1.53 +
1.54 + } // namespace ESock
1.55 +
1.56 +#endif // __SS_FACTORYCONTAINERMAP_H__
1.57 +