commsfwsupport/commselements/serverden/inc/sd_objectbroker.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2008-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  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef SYMBAN_DEN_OBJECT_BROKER_H
       
    22 #define SYMBAN_DEN_OBJECT_BROKER_H
       
    23 
       
    24 #include <elements/nm_node.h>
       
    25 #include <elements/cftransport.h>
       
    26 
       
    27 namespace Den
       
    28 {
       
    29 
       
    30 //
       
    31 //CCommonObjectBroker
       
    32 class CCommonObjectBroker : public CBase,
       
    33                             public Messages::ANodeIdBase
       
    34 /**
       
    35 @internalComponent
       
    36 */
       
    37     {
       
    38     // Only the main thread is intended to host the global object broker
       
    39 	friend class CCommonPitBoss;
       
    40 
       
    41 public:
       
    42 	IMPORT_C ~CCommonObjectBroker();
       
    43 	IMPORT_C void CleanupDeadWorker();
       
    44 	IMPORT_C void UpdateWorkerInfo(CommsFW::TWorkerId aWorkerId, const Messages::TClientType& aClientType, const Messages::TNodeId& aFactoryId);
       
    45 
       
    46 	const Messages::TNodeId& Id () const
       
    47 		{
       
    48 		return ANodeId::Id ();			
       
    49 		}
       
    50 protected:
       
    51     IMPORT_C void ForwardMesasge(const Messages::TRuntimeCtxId& aSender, const Messages::TSignalBase& aMessage, const Messages::TClientType& aClientType);
       
    52 
       
    53 protected:
       
    54 	IMPORT_C CCommonObjectBroker();
       
    55     };
       
    56 
       
    57 } //namespace Den
       
    58 
       
    59 #endif
       
    60 //SYMBAN_DEN_OBJECT_BROKER_H
       
    61 
       
    62