uiservicetabsettings/inc/cvimpstsettingslookupkeyvaluepair.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:39:32 +0200
branchRCL_3
changeset 11 bef90b82da71
parent 0 5e5d6b214f4f
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Lookup key container.
*
*/

#ifndef __CVIMPSTSETTINGSLOOKUPKEYVALUEPAIR_H
#define __CVIMPSTSETTINGSLOOKUPKEYVALUEPAIR_H

//  INCLUDES
#include "cvimpstsettingskeyvaluepair.h"


// CLASS DECLARATION
/**
 * Lookup key container.
 *
 * Lookup key holder to be able to do linear order
 * based key-value pair lookups without memory allocation.
 *
 * @since 3.0
 **/
NONSHARABLE_CLASS( CVIMPSTSettingsLookupKeyValuePair ): public CVIMPSTSettingsKeyValuePair
    {
    public:  // Constructors and destructor

        /**
         * Two phased constructor.
         *
         * @since 3.0
         */
        static CVIMPSTSettingsLookupKeyValuePair* NewL();

        /**
         * Destructor.
         */
        virtual ~CVIMPSTSettingsLookupKeyValuePair();



    private:  // Constructor

        /**
         * C++ default constructor.
         */
        CVIMPSTSettingsLookupKeyValuePair();



    public:  //Data access

        /**
         * Key accessor.
         *
         * Gets the look up key associated with
         * this key-value object. Overwritten
         * from base.
         *
         * @since 3.0
         * @return The lookup key.
         */
        const TDesC& Key() const;


        /**
         * Lookup key setter.
         *
         * Sets the look up key associated with
         * this key-value object.
         *
         * @since 3.0
         * @param aLookUpKey The lookup key to use.
         */
        void SetLookupKey( const TDesC& aLookUpKey );


        /**
         * Lookup key reset.
         *
         * Resets the look up key to empty one.
         *
         * @since 3.0
         */
        void ResetLookupKey();


    private:    // Data

        TPtrC   iLookupKey;     //OWN: Lookup key

    };

#endif      // __CVIMPSTSETTINGSLOOKUPKEYVALUEPAIR_H


//  End of File