epoc32/include/mw/http/thttphdrval.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    12 //
    12 //
    13 // Description:
    13 // Description:
    14 //
    14 //
    15 
    15 
    16 
       
    17 
       
    18 /**
    16 /**
    19  @file THTTPHdrVal.h
    17  @file
    20  @warning : This file contains Rose Model ID comments - please do not delete
    18  @warning : This file contains Rose Model ID comments - please do not delete
    21 */
    19 */
    22 
    20 
    23 #ifndef	__THTTPHDRVAL_H__
    21 #ifndef	__THTTPHDRVAL_H__
    24 #define	__THTTPHDRVAL_H__
    22 #define	__THTTPHDRVAL_H__
    62 	// A converter for 'q' parameter values; apparently real numbers in the HTTP RFC but here passed as fixed point
    60 	// A converter for 'q' parameter values; apparently real numbers in the HTTP RFC but here passed as fixed point
    63 //##ModelId=3B1E66F2024E
    61 //##ModelId=3B1E66F2024E
    64 	class TQConv
    62 	class TQConv
    65 		{
    63 		{
    66 	public:
    64 	public:
    67 		/// Construct from a real number representation of 'q'
    65 		// Construct from a real number representation of 'q'
    68 	//##ModelId=3B1E66F20282
    66 	//##ModelId=3B1E66F20282
    69 		TQConv(TReal aQ);
    67 		TQConv(TReal aQ);
    70 
    68 
    71 		/// Construct from a fixed-point representation of 'q'
    69 		// Construct from a fixed-point representation of 'q'
    72 	//##ModelId=3B1E66F2028C
    70 	//##ModelId=3B1E66F2028C
    73 		TQConv(TInt aQ);
    71 		TQConv(TInt aQ);
    74 
    72 
    75 		/// Integer cast operator to get the fixed-point representation
    73 		// Integer cast operator to get the fixed-point representation
    76 	//##ModelId=3B1E66F20281
    74 	//##ModelId=3B1E66F20281
    77 		operator TInt() const;
    75 		operator TInt() const;
    78 
    76 
    79 		/// TReal cast operator to get the real number representation
    77 		// TReal cast operator to get the real number representation
    80 	//##ModelId=3B1E66F20280
    78 	//##ModelId=3B1E66F20280
    81 		operator TReal() const;
    79 		operator TReal() const;
    82 	private:
    80 	private:
    83 		/// The real number q-value
    81 		// The real number q-value
    84 	//##ModelId=3B1E66F2027A
    82 	//##ModelId=3B1E66F2027A
    85 		TReal iQ;
    83 		TReal iQ;
    86 		/// The integer fixed-point q-value representation
    84 		// The integer fixed-point q-value representation
    87 	//##ModelId=3B1E66F2026E
    85 	//##ModelId=3B1E66F2026E
    88 		TInt iFQ;
    86 		TInt iFQ;
    89 		};
    87 		};
    90 
    88 
    91 public:
    89 public: