natfw/natfwunsaf_protocols/unsaf_codec/inc/natfwunsafattributelookuptableitem.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:12:20 +0200
branchRCL_3
changeset 3 513a8b745b2f
parent 0 1bce908db942
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2006-2007 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:   
*
*/




#ifndef TATTRIBUTELOOKUPTABLEITEM_H
#define TATTRIBUTELOOKUPTABLEITEM_H

// INCLUDES
#include <e32base.h>
#include "natfwunsafattribute.h"

// FORWARD DECLARATIONS

// TYPEDEFS
typedef CNATFWUNSAFAttribute* (*TDecodeFnPtr)(const TDesC8& aValue);

// CLASS DECLARATION
/**
* Lookup table item containing the mapping of UNSAF attribute types to
* decode functions.
*
*  @lib natfwunsafprotocols.lib
*/
NONSHARABLE_CLASS(TAttributeLookupTableItem)
    {
    public: // Constructors and destructor
        /**
        * Constructor
        * @param aAttributeType UNSAF attribute type
        * @param aDecodeFn Decode function for the attribute type
        */
        TAttributeLookupTableItem(CNATFWUNSAFAttribute::TType aAttributeType,
                                   TDecodeFnPtr aDecodeFn);

    public: // New functions

        CNATFWUNSAFAttribute::TType AttributeType() const;

        TDecodeFnPtr DecodeFunction() const;

    private: // Data

        CNATFWUNSAFAttribute::TType iAttributeType;
        TDecodeFnPtr iDecodeFn;
    };

#endif // TATTRIBUTELOOKUPTABLEITEM_H