commsfwsupport/commselements/nodemessages/inc/nm_signals.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2007-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 SYMBIAN_NM_SIGNALS_H
       
    22 #define SYMBIAN_NM_SIGNALS_H
       
    23 
       
    24 #include <elements/h_structures.h>
       
    25 #include <elements/metavirtctor.h>
       
    26 #include <elements/nm_common.h>
       
    27 
       
    28 namespace Messages
       
    29 {
       
    30 
       
    31 class TRuntimeCtxId;
       
    32 
       
    33 //-=========================================================
       
    34 //
       
    35 // TSignalBase
       
    36 //
       
    37 //-=========================================================
       
    38 class TSignalBase : public Meta::SMetaDataNetCtor
       
    39 	{
       
    40 public:
       
    41 	/** The space required for reconstructing the message object from the stored data.
       
    42 	This value is not directly related to the maximum length of a message supported
       
    43 	by the currently used transport implementation.
       
    44 	*/
       
    45 	enum { KMaxInlineMessageSize = 224 }; //KMaxInlineMessageSize + KMaxUnstoredOverhead == 256 (currently used transport supports ~150)
       
    46 
       
    47 	/** The space required for reconstructing the object from the stored data will always be somewhat larger than that data, due
       
    48 	to the vtbl pointer, iSender, and most variably the overhead for member objects such as descriptors. This value is allows for
       
    49 	several descriptors in a maximally-sized (non-blob) message without being lavish - in general derived classes shouldn't have
       
    50 	unserialised members.
       
    51 	*/
       
    52 	enum { KMaxUnstoredOverhead = 32 };
       
    53 
       
    54 public:
       
    55 	virtual void DispatchL(const TRuntimeCtxId& aSender, const TRuntimeCtxId& aRecipient) = 0;
       
    56 	virtual void Error(const TRuntimeCtxId& aSender, const TRuntimeCtxId& aRecipient, TInt aError) = 0;
       
    57 
       
    58 public:
       
    59 	EXPORT_DATA_VTABLE_AND_FN
       
    60 	};
       
    61 
       
    62 } //namespace Messages
       
    63 
       
    64 
       
    65 #endif
       
    66 	//SYMBIAN_NM_SIGNALS_H
       
    67