calendarui/commonutils/inc/calencustomnavilabel.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:32:31 +0100
branchRCL_3
changeset 66 bd7edf625bdd
child 67 1539a383d7b6
child 86 ed599363c2d7
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2002, 2003 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:  Navi control for eventview
 *
*/
#ifndef CCALENCUSTOMNAVICONTROL_H
#define CCALENCUSTOMNAVICONTROL_H

//  INCLUDES
#include <coecntrl.h>
#include <AknsBasicBackgroundControlContext.h>



// CLASS DECLARATION
NONSHARABLE_CLASS( CCustomNaviControl ) : public CCoeControl
    {
public:
	/**
	* First phase constructor
    * @param aName  Calendar name
    * @param aColor Calendar color
    */
    static CCustomNaviControl* NewL(const TDesC& aName, const TRgb aColor);
    
    /**
    * Destructor.
    */
    virtual ~CCustomNaviControl();
    
    /**
    * Sets the Calendar name and color
    * @param aName  Calendar name
    * @param aColor Calendar color
    */
    void SetCalendarNameAndColorL(const TDesC& aName, const TRgb aColor);
    
private: 
	
	/**
    * From CCoeControl
    */
    void Draw(const TRect& /*aRect*/) const;
    
     /**
     * From CCoeControl, child control was resized.
     */
    void SizeChanged();
    
     /**
     * From CCoeControl, return child control count.
     * @return Control count
     */
    TInt CountComponentControls() const;
    
     /**
     * From CCoeControl, return child control pointer.
     * @param aIndex Child control index
     * @return Child control pointer.
     */
    CCoeControl* ComponentControl(TInt aIndex) const;
    
private: // own methods
    /**
    * C++ constructor.
    */
    CCustomNaviControl();
    
    /**
    * Second phase constructor
    */
    void ConstructL(const TDesC& aName, const TRgb aColor);
    
private:
    CFbsBitmap* iBitmap;
    CFbsBitmap* iMask;
    HBufC *iCalendarName;
    TRgb iCalendarColor;

    };
#endif  // CCALENCUSTOMNAVICONTROL_H

// end of file