epoc32/include/eteldefaultqos.h
branchSymbian3
changeset 4 837f303aceeb
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/eteldefaultqos.h	Wed Mar 31 12:33:34 2010 +0100
     1.3 @@ -0,0 +1,103 @@
     1.4 +// Copyright (c) 2007-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 +#ifndef __ETELDEFAULTQOS_H__
    1.19 +#define __ETELDEFAULTQOS_H__
    1.20 +
    1.21 +#ifndef __ETELQOS_H__
    1.22 +
    1.23 +class RPacketQoS
    1.24 +    {
    1.25 +    // The enums TTrafficClass, TDeliveryOrder,TErroneousSDUDelivery, TBitErrorRatio,
    1.26 +     // TSDUErrorRatio, TTrafficHandlingPriority have been assigned values because
    1.27 +     // the same enums are used both in the TQoSR99_R4Requested / Negotiated classes and 
    1.28 +     // in the TQoSCapsR99_R4 class. The Caps class has to indicate which, for instance, 
    1.29 +     // traffic classes are supported in a bitfield, so the enums have been defined as 
    1.30 +     // different bits in a bit field.
    1.31 +public: 
    1.32 +    enum TTrafficClass          
    1.33 +         {
    1.34 +         ETrafficClassUnspecified    = 0x01,     //< Traffic class - Unspecified
    1.35 +         ETrafficClassConversational = 0x02,     //< Traffic class - Conversational
    1.36 +         ETrafficClassStreaming      = 0x04,     //< Traffic class - Streaming
    1.37 +         ETrafficClassInteractive    = 0x08,     //< Traffic class - Interactive
    1.38 +         ETrafficClassBackground     = 0x10      //< Traffic class - Background
    1.39 +         };
    1.40 +
    1.41 +     enum TDeliveryOrder     
    1.42 +         {
    1.43 +         EDeliveryOrderUnspecified   = 0x01,     //< SDU Delivery order - Unspecified
    1.44 +         EDeliveryOrderRequired      = 0x02,     //< SDU Delivery order - Required to be in sequence
    1.45 +         EDeliveryOrderNotRequired   = 0x04      //< SDU Delivery order - Not Required to be in sequence
    1.46 +         };
    1.47 +
    1.48 +     enum TErroneousSDUDelivery      // Erroneous SDU Delivery
    1.49 +         {
    1.50 +         EErroneousSDUDeliveryUnspecified    = 0x01, //< Unspecified
    1.51 +         EErroneousSDUNoDetection            = 0x02, //< Erroneous SDUs delivered - Error detection not considered.
    1.52 +         EErroneousSDUDeliveryRequired       = 0x04, //< Erroneous SDUs delivered + error indication - Error detection employed.
    1.53 +         EErroneousSDUDeliveryNotRequired    = 0x08  //< Erroneous SDUs discarded - Error detection is employed.
    1.54 +         };
    1.55 +
    1.56 +     enum TBitErrorRatio             // Residual Bit Error Rate
    1.57 +         {
    1.58 +         EBERUnspecified             = 0x01,     //< Target residual undetected BER - Unspecified
    1.59 +         EBERFivePerHundred          = 0x02,     //< Target residual BER - 0.05
    1.60 +         EBEROnePerHundred           = 0x04,     //< Target residual BER - 0.01
    1.61 +         EBERFivePerThousand         = 0x08,     //< Target residual BER - 0.005
    1.62 +         EBERFourPerThousand         = 0x10,     //< Target residual BER - 0.004
    1.63 +         EBEROnePerThousand          = 0x20,     //< Target residual BER - 0.001
    1.64 +         EBEROnePerTenThousand       = 0x40,     //< Target residual BER - 0.0001
    1.65 +         EBEROnePerHundredThousand   = 0x80,     //< Target residual BER - 0.00001
    1.66 +         EBEROnePerMillion           = 0x100,    //< Target residual BER - 0.000001
    1.67 +         EBERSixPerHundredMillion    = 0x200     //< Target residual BER - 0.00000006
    1.68 +         };
    1.69 +
    1.70 +     enum TSDUErrorRatio             // SDU Error Ratio
    1.71 +         {
    1.72 +         ESDUErrorRatioUnspecified           = 0x01, //< Target value of Erroneous SDUs - Unspecified
    1.73 +         ESDUErrorRatioOnePerTen             = 0x02, //< Target SDU error ratio - 0.1
    1.74 +         ESDUErrorRatioOnePerHundred         = 0x04, //< Target SDU error ratio - 0.01
    1.75 +         ESDUErrorRatioSevenPerThousand      = 0x08, //< Target SDU error ratio - 0.007
    1.76 +         ESDUErrorRatioOnePerThousand        = 0x10, //< Target SDU error ratio - 0.001
    1.77 +         ESDUErrorRatioOnePerTenThousand     = 0x20, //< Target SDU error ratio - 0.0001
    1.78 +         ESDUErrorRatioOnePerHundredThousand = 0x40, //< Target SDU error ratio - 0.00001
    1.79 +         ESDUErrorRatioOnePerMillion         = 0x80  //< Target SDU error ratio - 0.000001
    1.80 +         };
    1.81 +
    1.82 +     enum TTrafficHandlingPriority   // Traffic handling priority
    1.83 +         {
    1.84 +         ETrafficPriorityUnspecified = 0x01,     //< Unspecified Priority level
    1.85 +         ETrafficPriority1           = 0x02,     //< Priority level 1
    1.86 +         ETrafficPriority2           = 0x04,     //< Priority level 2
    1.87 +         ETrafficPriority3           = 0x08      //< Priority level 3
    1.88 +         };
    1.89 +     /**
    1.90 +      Source statistics descriptor - as defined in 3GPP TS 23.107 and TS 24.008.
    1.91 +      
    1.92 +      @publishedPartner
    1.93 +      @released
    1.94 +      */
    1.95 +      enum TSourceStatisticsDescriptor    
    1.96 +          {
    1.97 +          /** Unknown source statistics descriptor. */
    1.98 +          ESourceStatisticsDescriptorUnknown  = 0x0,      
    1.99 +          /** Speech source statistics descriptor. */
   1.100 +          ESourceStatisticsDescriptorSpeech   = 0x01,      
   1.101 +          };
   1.102 +    };
   1.103 +
   1.104 +#endif//#ifndef__ETELQOS_H__
   1.105 +
   1.106 +#endif//#ifndef__ETELDEFAULTQOS_H__