networkcontrol/iptransportlayer/inc/policyrequest.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 1997-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  @internal
       
    19  @released
       
    20 */
       
    21 
       
    22 #if !defined(__POLICYREQUEST_H__)
       
    23 #define __POLICYREQUEST_H__
       
    24 
       
    25 #include <comms-infras/ss_nodemessages.h>
       
    26 #include <comms-infras/ss_mmnode.h>
       
    27 #include <comms-infras/ss_platsec_apiext.h>
       
    28 #include "IPMessages.h"
       
    29 #include <elements/nm_messages_internal.h>
       
    30 
       
    31 class TCFConnPolicyRequest;
       
    32 
       
    33 //
       
    34 //CPolicyRequest
       
    35 NONSHARABLE_CLASS(CPolicyRequest) : public CBase,
       
    36 	                                public ESock::ACFMMNodeIdBase
       
    37 	{
       
    38 	friend class TCFConnPolicyRequest;
       
    39 
       
    40 public:
       
    41     CPolicyRequest(const TCFConnPolicyRequest& aMsg);
       
    42     virtual ~CPolicyRequest();
       
    43     void ReceivedL(const Messages::TRuntimeCtxId& aSender, const Messages::TNodeId& aRecipient, Messages::TSignatureBase& aMessage);
       
    44 
       
    45 protected:
       
    46 	void Received(MeshMachine::TNodeContextBase& aContext);
       
    47 
       
    48 public: //For simpler access from the states.
       
    49 	ESock::RCFParameterFamilyBundleC iParamBundle;
       
    50 	Messages::TNodeId iFlowNodeId;
       
    51 	Messages::RNodeInterface* iDeftScprClient;
       
    52 	Messages::TNodeId iSenderSCPrNodeId;
       
    53 	Messages::TNodeId iIPCPrNodeId;
       
    54 	Messages::TNodeId iNewSCprId;
       
    55 	TInt iError;
       
    56 	};
       
    57 
       
    58 //
       
    59 //TCFConnPolicyRequest
       
    60 NONSHARABLE_CLASS(TCFConnPolicyRequest) : public Messages::TSelfDispatcherAndErrorHandler
       
    61 	{
       
    62 public:
       
    63 	explicit TCFConnPolicyRequest(ESock::RCFParameterFamilyBundleC& aParamBundle, Messages::TNodeId aFlowNodeId, Messages::TNodeId aSenderSCPrNodeId, Messages::TNodeId aIPCPrNodeId)
       
    64 	   :iParamBundle(aParamBundle),
       
    65 		iFlowNodeId(aFlowNodeId),
       
    66 		iSenderSCPrNodeId(aSenderSCPrNodeId),
       
    67 		iIPCPrNodeId(aIPCPrNodeId)
       
    68 		{
       
    69 		}
       
    70 
       
    71 protected:
       
    72 	void StartL(const Messages::TRuntimeCtxId& aSender);
       
    73 	void DispatchL(const Messages::TRuntimeCtxId& aSender, const Messages::TRuntimeCtxId& aRecipient);
       
    74 	TCFConnPolicyRequest()
       
    75 		{
       
    76 		}
       
    77 
       
    78 public:
       
    79 	ESock::RCFParameterFamilyBundleC iParamBundle;
       
    80 	Messages::TNodeId iFlowNodeId;
       
    81 	Messages::TNodeId iSenderSCPrNodeId;
       
    82 	Messages::TNodeId iIPCPrNodeId;
       
    83 	Messages::TNodeId iNewSCPrNodeId;
       
    84 public:
       
    85 	DECLARE_MVIP_CTR(TCFConnPolicyRequest)
       
    86 	DATA_VTABLE
       
    87 	};
       
    88 
       
    89 
       
    90 #endif
       
    91 // __POLICYREQUEST_H__
       
    92