Msrp/MsrpHeader/inc/CMsrpStrings.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 CMSRPSTRINGS_H
       
    18 #define CMSRPSTRINGS_H
       
    19 
       
    20 // EXTERNAL HEADERS
       
    21 #include <e32base.h>
       
    22 #include <stringpool.h>
       
    23 
       
    24 /*
       
    25 * CLASS DEFINION
       
    26 */
       
    27 class CMSRPStrings : public CBase
       
    28 	{
       
    29 	public:
       
    30 
       
    31 	    /**
       
    32         * Constructor
       
    33         */
       
    34 		static CMSRPStrings* NewL();
       
    35 	    /**
       
    36         * Constructor
       
    37         */
       
    38 		static CMSRPStrings* NewLC();
       
    39 	    /**
       
    40         * Destructor
       
    41         */
       
    42 		~CMSRPStrings();
       
    43 
       
    44 	    /**
       
    45         * Increment couter by one
       
    46         */
       
    47 		void IncrementUsageCount();
       
    48 	    /**
       
    49         * Decrement couter by one
       
    50         */
       
    51 		void DecrementUsageCount();
       
    52 	    /**
       
    53         * Get counter value
       
    54         */
       
    55 		TUint UsageCount() const;
       
    56 
       
    57 	    /**
       
    58         * Get MSRPStrConsts constant
       
    59         */
       
    60 		const RStringPool& Pool() const;
       
    61 	    /**
       
    62         * Get MSRPStrConsts constants
       
    63         */
       
    64 		static const TStringTable& Table();
       
    65 
       
    66 	private:
       
    67 
       
    68 	    /**
       
    69         * Constructor
       
    70         */
       
    71 		CMSRPStrings();
       
    72 	    /**
       
    73         * Constructor
       
    74         */
       
    75 		void ConstructL();
       
    76 
       
    77 	private: // Data
       
    78 
       
    79 		// The string pool handle object
       
    80 		RStringPool iPool;
       
    81 		// Counter
       
    82 		TUint iUsageCount;
       
    83 	};
       
    84 
       
    85 #endif // CMSRPSTRINGS_H
       
    86 
       
    87 // End of File