networkcontrol/ipnetworklayer/inc/IPProtoMessages.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2006-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 // IPProto-proprietary messages
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalTechnology
       
    21 */
       
    22 
       
    23 
       
    24 #ifndef SYMBIAN_IPPROTOMESSAGES_H
       
    25 #define SYMBIAN_IPPROTOMESSAGES_H
       
    26 
       
    27 #include <elements/nm_signatures.h>
       
    28 #include <networking/pdpdef.h>
       
    29 
       
    30 enum IPProtoCustomActivities
       
    31     {
       
    32 	ECFActivityOpenCloseRoute,
       
    33 	ECFActivityDataMonitoring,
       
    34 	ECFActivityConfigureNetwork,
       
    35 	ECFActivityIoctl,
       
    36 	ECFIpProtoCprActivityDataClientStatusChange
       
    37     };
       
    38 
       
    39 class CIPProtoSubConnParameterFactory : public CBase
       
    40 	{
       
    41 public:
       
    42 	static CSubConExtensionParameterSet* NewL(TAny* aConstructionParameters);
       
    43     enum
       
    44         {
       
    45         EUid = 0x1028300A,
       
    46         };
       
    47 	};
       
    48 
       
    49 class CSubConTFTParameterSet : public CSubConExtensionParameterSet
       
    50 /** Extension Parameter Sets,
       
    51 Provides Implementation of Extension parameters of the
       
    52 TFT (Traffic Flow Template) Family.
       
    53 
       
    54 @internalTechnology
       
    55 @released Since 9.4
       
    56 */
       
    57 	{
       
    58 public:
       
    59 	inline static CSubConTFTParameterSet* NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType);
       
    60 	inline static CSubConTFTParameterSet* NewL();
       
    61 
       
    62     enum
       
    63         {
       
    64         EMaxPacketFilterCount = 8,
       
    65         ETFTInternalFamily = 1024,
       
    66         };
       
    67 
       
    68     enum
       
    69         {
       
    70         EUid = 0x1028300A,
       
    71         ETypeId = 1,
       
    72         };
       
    73 
       
    74 	/** public constructors so that it can be accessed by factory. */
       
    75 	inline CSubConTFTParameterSet();
       
    76 	inline ~CSubConTFTParameterSet();
       
    77 
       
    78     inline TTFTOperationCode GetOperationCode() const;
       
    79     inline void SetOperationCode(TTFTOperationCode aOpCode);
       
    80 
       
    81     inline const TTFTInfo& GetTftInfo() const;
       
    82     inline void SetTftInfo(const TTFTInfo& aTftInfo);
       
    83 
       
    84 protected:
       
    85 	DATA_VTABLE
       
    86     TTFTInfo iTftInfo;
       
    87     TTFTOperationCode iOperationCode;
       
    88 	};
       
    89 
       
    90 
       
    91 
       
    92 class TCFIPProtoMessage
       
    93 /**
       
    94 IPProto message realm (messages specific to IPProto layer)
       
    95 
       
    96 @internalComponent
       
    97 */
       
    98 	{
       
    99   public:
       
   100     enum { ERealmId = 0x10281DED };
       
   101 
       
   102   private:
       
   103   	enum
       
   104   	    {
       
   105         EIpProtoCprOpenCloseRoute = Messages::KNullMessageId + 1,
       
   106 		EConfigureNetwork         = 2,
       
   107 		ENetworkConfigured        = 3
       
   108 	    };
       
   109 
       
   110   public:
       
   111 
       
   112 
       
   113     //--Idle Timer--
       
   114     typedef Messages::TMessageSigNumber<EIpProtoCprOpenCloseRoute, TCFIPProtoMessage::ERealmId> TOpenCloseRoute;
       
   115 
       
   116 	//--NetCfgExt--
       
   117 	typedef Messages::TMessageSigVoid<EConfigureNetwork, TCFIPProtoMessage::ERealmId> TConfigureNetwork;
       
   118 	typedef Messages::TMessageSigNumber<ENetworkConfigured, TCFIPProtoMessage::ERealmId> TNetworkConfigured;
       
   119 
       
   120     static void RegisterL();
       
   121     static void DeRegister();
       
   122 	};
       
   123 
       
   124 inline CSubConTFTParameterSet* CSubConTFTParameterSet::NewL(CSubConParameterFamily& aFamily, CSubConParameterFamily::TParameterSetType aType)
       
   125     {
       
   126 	CSubConTFTParameterSet* tftExtn = CSubConTFTParameterSet::NewL();
       
   127 	CleanupStack::PushL(tftExtn);
       
   128 	aFamily.AddExtensionSetL(*tftExtn, aType);
       
   129 	CleanupStack::Pop(tftExtn);
       
   130 	return tftExtn;
       
   131     }
       
   132 
       
   133 CSubConTFTParameterSet* CSubConTFTParameterSet::NewL()
       
   134 	{
       
   135 	STypeId typeId = STypeId::CreateSTypeId(CSubConTFTParameterSet::EUid, CSubConTFTParameterSet::ETypeId);
       
   136 	return static_cast<CSubConTFTParameterSet*>(CSubConParameterSet::NewL(typeId));
       
   137 	}
       
   138 
       
   139 inline CSubConTFTParameterSet::CSubConTFTParameterSet()
       
   140 :CSubConExtensionParameterSet()
       
   141     {
       
   142     }
       
   143 
       
   144 inline CSubConTFTParameterSet::~CSubConTFTParameterSet()
       
   145     {
       
   146     }
       
   147 
       
   148 
       
   149 inline const TTFTInfo& CSubConTFTParameterSet::GetTftInfo() const
       
   150     {
       
   151     return iTftInfo;
       
   152     }
       
   153 
       
   154 inline void CSubConTFTParameterSet::SetTftInfo(const TTFTInfo& aTftInfo)
       
   155     {
       
   156     iTftInfo.Set(aTftInfo);
       
   157     }
       
   158 
       
   159 inline TTFTOperationCode CSubConTFTParameterSet::GetOperationCode() const
       
   160     {
       
   161     return iOperationCode;
       
   162     }
       
   163 
       
   164 inline void CSubConTFTParameterSet::SetOperationCode(TTFTOperationCode aOpCode)
       
   165     {
       
   166     iOperationCode = aOpCode;
       
   167     }
       
   168 
       
   169 #endif
       
   170 // SYMBIAN_IPPROTOMESSAGES_H