commsfwutils/commsbufs/reference/loopback_bearer/inc/params.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 #ifndef __LEGACY_LOOPBACK_PARAMS_H__
       
    18 #define __LEGACY_LOOPBACK_PARAMS_H__
       
    19 
       
    20 #include <e32base.h>
       
    21 #include <e32std.h>	
       
    22 
       
    23 #include <comms-infras/metadata.h>
       
    24 #include <es_prot.h>
       
    25 
       
    26 class TLegacyLoopbackPref : public Meta::SMetaDataECom
       
    27 	{
       
    28 public:
       
    29 	inline static TLegacyLoopbackPref* NewL();
       
    30 	inline static TLegacyLoopbackPref* NewL(TInt aAP);
       
    31 	
       
    32 	inline TLegacyLoopbackPref();
       
    33 	
       
    34 	enum
       
    35 	{
       
    36 		EUid = 0x102871C6,
       
    37 		ETypeId = 2
       
    38 	};
       
    39 
       
    40 	inline void setAP(TInt aAP);
       
    41 	inline TInt AP();
       
    42 		
       
    43 	
       
    44 protected:
       
    45 	DATA_VTABLE
       
    46 	
       
    47 	TInt iAP;
       
    48 	};
       
    49 
       
    50 inline TLegacyLoopbackPref* TLegacyLoopbackPref::NewL()
       
    51 	{
       
    52 	Meta::STypeId input = STypeId::CreateSTypeId(TLegacyLoopbackPref::EUid,TLegacyLoopbackPref::ETypeId);
       
    53 	return static_cast<TLegacyLoopbackPref*>(Meta::SMetaDataECom::NewInstanceL(input));
       
    54 	}
       
    55 
       
    56 inline TLegacyLoopbackPref* TLegacyLoopbackPref::NewL(TInt aAP)
       
    57 	{
       
    58 	TLegacyLoopbackPref* self = NewL();
       
    59 	self->setAP(aAP);
       
    60 	return self;
       
    61 	}
       
    62 
       
    63 inline TLegacyLoopbackPref::TLegacyLoopbackPref()
       
    64 	{
       
    65 	}
       
    66 
       
    67 inline void TLegacyLoopbackPref::setAP(TInt aAP)
       
    68 	{
       
    69 	iAP = aAP;
       
    70 	}
       
    71 
       
    72 inline TInt TLegacyLoopbackPref::AP()
       
    73 	{
       
    74 	return iAP;
       
    75 	}
       
    76 
       
    77 class CLegacyLoopbackParamaterFactory : public CBase
       
    78 /** Connection generic parameter set factory.
       
    79 
       
    80 @internalComponent
       
    81 */
       
    82 	{
       
    83 public:
       
    84 	static SMetaDataECom* NewL(TAny* aConstructionParameters);
       
    85 	};
       
    86 
       
    87 
       
    88 
       
    89 #endif // __LEGACY_LOOPBACK_PARAMS_H__