satengine/SatServer/Engine/inc/CSatSBasicIconConverter.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:15:03 +0100
branchRCL_3
changeset 20 987c9837762f
parent 0 ff3b6d0fd310
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2004-2005 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:  Converts basic icon to CFbsBitmap.
*
*/



#ifndef CSATSBASICICONCONVERTER_H
#define CSATSBASICICONCONVERTER_H

//  INCLUDES
#include "CSatSIconConverter.h"

// CLASS DECLARATION

/**
*  Converts the basic icon to CFbsBitmap
*
*  @lib SatEngine.lib
*  @since 2.6
*/
class CSatSBasicIconConverter : public CSatSIconConverter
    {
    public:  // Constructors and destructor

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

        /**
        * Destructor.
        */
        virtual ~CSatSBasicIconConverter() {};

    public: // Functions from base classes

        /**
        * From CSatSIconConverter
        * @param aData Icon basic data.
        * @param aClut Color lookup table. Not used in basic icon
        * conversion.
        * @return Bitmap.
        */
        CFbsBitmap* ConvertL(
            const TDesC8& aData,
            const TDesC8& aClut ) const;

    private: // New functions

        /**
        * Checks that the icon data has valid length.
        * @param aData Image data.
        */
        void CheckDataValidityL(
            const TDesC8& aData ) const;

    };

#endif      // CSATSBASICICONCONVERTER_H

// End of File