Msrp/MsrpServer/inc/TMSRPUtil.h
branchMSRP_FrameWork
changeset 25 505ad3f0ce5c
equal deleted inserted replaced
22:f1578314b8da 25:505ad3f0ce5c
       
     1 /*
       
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html."
       
     8 * Initial Contributors:
       
     9 * Nokia Corporation - initial contribution.
       
    10 * Contributors:
       
    11 *
       
    12 * Description:
       
    13 * MSRP Implementation
       
    14 *
       
    15 */
       
    16 
       
    17 #ifndef __TMSRPUTIL_H__
       
    18 #define __TMSRPUTIL_H__
       
    19 
       
    20 //	INCLUDES
       
    21 #include <e32base.h>
       
    22 
       
    23 // FORWARD DECLARATIONS
       
    24 class CMSRPToPathHeader;
       
    25 
       
    26 //	CLASS DEFINITION
       
    27 /**
       
    28  * Static utility class, used by MSRP Client
       
    29  */
       
    30 class TMSRPUtil
       
    31 	{
       
    32 
       
    33 public:
       
    34 
       
    35 	/**
       
    36 	 * Convert given string to a number, leaves if string cannot be converted
       
    37 	 * @param aString string to be converted
       
    38 	 * @return string converted to number
       
    39 	 */
       
    40     static TInt ConvertToNumber( const TDesC8& aString );
       
    41 
       
    42     /**
       
    43     * Extract session-id from To-Path or From-path value field
       
    44 	* @param aValueField from-path or to-path value field
       
    45 	* @return buffer containing the session-id, ownership is transferred
       
    46     */
       
    47 	static HBufC8* ExtractSessionIdFromPathLC( TDesC8& aValueField );
       
    48 	};
       
    49 
       
    50 #endif	// __TMSRPUTIL_H__
       
    51 
       
    52 // End of File