meetingrequest/mrgui/inc/cesmrtitlepane.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 21:08:33 +0300
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
permissions -rw-r--r--
Revision: 201011 Kit: 201013

/*
* Copyright (c) 2009 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:  Title pane for UI
*
*/

#ifndef CESMRTITLEPANE_H
#define CESMRTITLEPANE_H

#include <coecntrl.h>
#include "nmrbitmapmanager.h"
//<cmail>
#include "mesmrcalentry.h"
#include "esmrdef.h"
//</cmail>

class CMRImage;
class CMRLabel;

/**
 * This class is responsibe of showing the current title.
 */
NONSHARABLE_CLASS( CESMRTitlePane ) : public CCoeControl
    {

public:
    /**
     * Constructor for new title pane.
     *
     * @param aLayout - pointer to layout manager
     */
    static CESMRTitlePane* NewL();
    static CESMRTitlePane* NewLC();
    // Destructor
    ~CESMRTitlePane();

public: // From CCoeControl
    TInt CountComponentControls() const;
    CCoeControl* ComponentControl( TInt aInd ) const;
    void SizeChanged();

public:

    /**
     * Sets the text for this pane
     *
     * @param aText - descriptor that contains the text
     */
    void SetTextL( const TDesC& aText );

    /**
     * Called by the view component. Title pane fethces the priority of entry
     * @param aEntry Current calendar entry
     */
    void InternalizeL( MESMRCalEntry& aEntry );


private:
    CESMRTitlePane();
    void ConstructL();

private:
    /// Own: entry type:
    MESMRCalEntry::TESMRCalEntryType iEntryType;
    /// Own: Field text label
    CMRLabel* iTitle;
    };
#endif // CESMRTITLEPANE_H

// EOF