contentmgmt/referencedrmagent/RefTestAgent/localsdp/api/sdpcodecstringpool.h
changeset 72 de46a57f75fb
equal deleted inserted replaced
65:970c0057d9bc 72:de46a57f75fb
       
     1 /*
       
     2 * Copyright (c) 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 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 * Name          : SdpCodecStringPool.h
       
    16 * Part of       : Local SDP Codec
       
    17 * Interface     : SDK API, Local SDP Codec API
       
    18 * Version       : 1.0
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #ifndef SDPCODECSTRINGPOOL_H
       
    25 #define SDPCODECSTRINGPOOL_H
       
    26 
       
    27 //  INCLUDES
       
    28 #include <e32base.h>
       
    29 #include "_sdpdefs.h"
       
    30 #include <stringpool.h>
       
    31 
       
    32 class CSdpCodecStringPool;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 /**
       
    36 * @publishedAll
       
    37 * @released
       
    38 *
       
    39 * This class defines string pool for Local SDP Codec.
       
    40 * The client of Local SDP Codec must call OpenL() before 
       
    41 * invoking any function of Local SDP Codec classes.
       
    42 * The client must close the string pool when finished using
       
    43 * Local SDP Codec classes.
       
    44 *
       
    45 * Note: the client must not close the string pool while
       
    46 *       using Local SDP Codec classes.
       
    47 * 
       
    48 * @lib localsdpcodec.lib
       
    49 */
       
    50 class SdpCodecStringPool
       
    51 	{
       
    52 public: // Constructors and destructor
       
    53  		
       
    54 	/**
       
    55 	* Opens Local SDP Codec string pool.
       
    56 	*
       
    57     * @leave KErrAlreadyExists if pool already exists in TLS.
       
    58 	*/
       
    59 	IMPORT_C static void OpenL();
       
    60 
       
    61 	/**
       
    62 	* Closes Local SDP Codec string pool.
       
    63 	*
       
    64 	*/
       
    65 	IMPORT_C static void Close(); 
       
    66 
       
    67 public: 
       
    68 	
       
    69 	/**
       
    70 	* Gets the string pool used by Local SDP Codec.
       
    71 	*
       
    72 	* @return RStringPool: A handle to a string pool
       
    73 	* @leave KErrSdpCodecStringPool if the pool is not opened.
       
    74 	*
       
    75 	*/
       
    76 	IMPORT_C static RStringPool StringPoolL();
       
    77 
       
    78 	/**
       
    79 	* Gets the string table used by Local SDP Codec.
       
    80 	*
       
    81 	* @return TStringTable&: The string pool table
       
    82 	* @leave KErrSdpCodecStringPool if the pool is not opened.
       
    83 	*
       
    84 	*/
       
    85 	IMPORT_C static const TStringTable& StringTableL();
       
    86 	};
       
    87 
       
    88 #endif