commsfwsupport/commselements/serverden/inc/sd_objectbroker.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Sat, 20 Feb 2010 00:01:55 +0200
branchRCL_3
changeset 9 77effd21b2c9
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Revision: 201007 Kit: 201007

// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @internalComponent
*/

#ifndef SYMBAN_DEN_OBJECT_BROKER_H
#define SYMBAN_DEN_OBJECT_BROKER_H

#include <elements/nm_node.h>
#include <elements/cftransport.h>

namespace Den
{

//
//CCommonObjectBroker
class CCommonObjectBroker : public CBase,
                            public Messages::ANodeIdBase
/**
@internalComponent
*/
    {
    // Only the main thread is intended to host the global object broker
	friend class CCommonPitBoss;

public:
	IMPORT_C ~CCommonObjectBroker();
	IMPORT_C void CleanupDeadWorker();
	IMPORT_C void UpdateWorkerInfo(CommsFW::TWorkerId aWorkerId, const Messages::TClientType& aClientType, const Messages::TNodeId& aFactoryId);

	const Messages::TNodeId& Id () const
		{
		return ANodeId::Id ();			
		}
protected:
    IMPORT_C void ForwardMesasge(const Messages::TRuntimeCtxId& aSender, const Messages::TSignalBase& aMessage, const Messages::TClientType& aClientType);

protected:
	IMPORT_C CCommonObjectBroker();
    };

} //namespace Den

#endif
//SYMBAN_DEN_OBJECT_BROKER_H