meetingrequest/mrgui/inc/cesmrtitlepane.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:28:57 +0100
branchRCL_3
changeset 25 3533d4323edc
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* 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