bluetoothcommsprofiles/btpan/bnep/RBnepFilterNetTypeSetRequestControl.h
changeset 0 29b1cd4cb562
equal deleted inserted replaced
-1:000000000000 0:29b1cd4cb562
       
     1 // Copyright (c) 2004-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  @internalComponent
       
    19 */
       
    20 
       
    21 #ifndef __RBNEPFILTERNETTYPESETREQUESTCONTROL_H
       
    22 #define __RBNEPFILTERNETTYPESETREQUESTCONTROL_H 
       
    23 
       
    24 #include "RBnepControl.h"
       
    25 
       
    26 NONSHARABLE_CLASS(RBnepFilterNetTypeSetRequestControl) : public RBnepControl  
       
    27     {
       
    28     typedef enum
       
    29         {
       
    30         KNetworkProtocolTypeListLengthFieldOffset = KSizeOfBnepControlType,
       
    31         KNetworkProtocolTypeFirstPairFieldOffset = KSizeOfBnepControlType+KSizeOfNetTypeFilterListLength,
       
    32         KMaxSizeOfFilterNetTypeSet = KSizeOfBnepControlType + KSizeOfNetTypeFilterListLength + (KMaxNetworkTypeFilterPairs*2*KSizeOfNetType) // control type (1) + list length (2) + n*2*network type - one start and one end (2*2)
       
    33         } NetTypeSetRequestConstants;
       
    34 public:
       
    35     TInt NetworkProtocolTypeListLength (TUint16& aLength) const;
       
    36     TInt NetworkProtocolTypeRange (TUint16& aStartValue, TUint16& aEndValue, TUint aIndex);
       
    37     };
       
    38 
       
    39 #endif