1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/comms-infras/ss_protopt.h Wed Mar 31 12:33:34 2010 +0100
1.3 @@ -0,0 +1,69 @@
1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +/**
1.20 + @file ss_protopt.h
1.21 + @internalTechnology
1.22 + @released
1.23 +*/
1.24 +
1.25 +#if !defined(__SS_PROTOPT_H__)
1.26 +#define __SS_PROTOPT_H__
1.27 +
1.28 +/*
1.29 + * T class which holds the parameters used for SetOpt( )
1.30 +**/
1.31 +class TProtocolOption
1.32 +{
1.33 +public:
1.34 + TUint iOptionName;
1.35 + TUint iOptionLevel;
1.36 + TUint iOptionValue;
1.37 +};
1.38 +
1.39 +
1.40 +/*
1.41 + * Generic class to implement SetOpt( ) at SapShim.
1.42 +**/
1.43 +class CSAPSetOpt : public CBase, public Meta::SMetaData
1.44 +{
1.45 +public:
1.46 + enum
1.47 + {
1.48 + ETypeId = 10,
1.49 + EUid = 0x101F7482,
1.50 + };
1.51 +
1.52 +public:
1.53 + IMPORT_C CSAPSetOpt();
1.54 + virtual ~CSAPSetOpt();
1.55 +
1.56 + //Add the option to the RArray variable
1.57 + IMPORT_C void AddProtocolOptionL(TUint aOptionName, TUint aOptionLevel, TUint aOptionValue);
1.58 +
1.59 + //Update the value for an option
1.60 + IMPORT_C void UpdateProtocolOption(TUint aOptionName, TUint aOptionLevel, TUint aOptionValue);
1.61 +
1.62 +
1.63 +public:
1.64 + RArray<TProtocolOption> iOption;
1.65 +
1.66 +public:
1.67 + DATA_VTABLE
1.68 +};
1.69 +
1.70 +
1.71 +#endif //__SS_PROTOPT_H__
1.72 +