epoc32/include/comms-infras/ss_protopt.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
     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 ss_protopt.h
    18  @internalTechnology
    19  @released
    20 */
    21 
    22 #if !defined(__SS_PROTOPT_H__)
    23 #define __SS_PROTOPT_H__
    24 
    25 /*
    26  * T class which holds the parameters used for SetOpt( )
    27 **/
    28 class TProtocolOption
    29 {
    30 public:
    31 	TUint iOptionName;
    32 	TUint iOptionLevel;
    33 	TUint iOptionValue;
    34 };
    35 
    36 
    37 /*
    38  * Generic class to implement SetOpt( ) at SapShim.
    39 **/
    40 class CSAPSetOpt : public CBase, public Meta::SMetaData
    41 {
    42 public:
    43 	enum
    44 	{
    45 		ETypeId = 10,
    46 		EUid = 0x101F7482,
    47 	};
    48 
    49 public:
    50 	IMPORT_C CSAPSetOpt();
    51 	virtual ~CSAPSetOpt();
    52 
    53 	//Add the option to the RArray variable
    54 	IMPORT_C void AddProtocolOptionL(TUint aOptionName, TUint aOptionLevel, TUint aOptionValue);
    55 
    56 	//Update the value for an option
    57 	IMPORT_C void UpdateProtocolOption(TUint aOptionName, TUint aOptionLevel, TUint aOptionValue);
    58 
    59 
    60 public:
    61 	RArray<TProtocolOption> iOption;
    62 	
    63 public:
    64  	DATA_VTABLE	
    65 };
    66 
    67 
    68 #endif //__SS_PROTOPT_H__
    69