meetingrequest/mrgui/inc/cesmrtitlepane.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
     1 /*
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 #ifndef CESMRTITLEPANE_H
    18 #ifndef CESMRTITLEPANE_H
    19 #define CESMRTITLEPANE_H
    19 #define CESMRTITLEPANE_H
    20 
    20 
    21 #include <coecntrl.h>
    21 #include <coecntrl.h>
    22 #include <AknsItemID.h>
    22 #include "nmrbitmapmanager.h"
    23 //<cmail>
    23 //<cmail>
    24 #include "mesmrcalentry.h"
    24 #include "mesmrcalentry.h"
    25 #include "esmrdef.h"
    25 #include "esmrdef.h"
    26 //</cmail>
    26 //</cmail>
    27 
    27 
    49     TInt CountComponentControls() const;
    49     TInt CountComponentControls() const;
    50     CCoeControl* ComponentControl( TInt aInd ) const;
    50     CCoeControl* ComponentControl( TInt aInd ) const;
    51     void SizeChanged();
    51     void SizeChanged();
    52 
    52 
    53 public:
    53 public:
    54 	/**
       
    55 	 * Handle set the priority
       
    56 	 * @param aPriority
       
    57 	 */
       
    58     void HandleSetPriorityCmdL( TInt aPriority );
       
    59     /**
       
    60      * Sets the priority indicator for this pane
       
    61      *
       
    62      * @param aPriority - priority to be set
       
    63      * @param aEntryType - entry type
       
    64      */
       
    65     void SetPriorityL(TUint aPriority );
       
    66 
    54 
    67     /**
    55     /**
    68      * Sets the text for this pane
    56      * Sets the text for this pane
    69      *
    57      *
    70      * @param aText - descriptor that contains the text
    58      * @param aText - descriptor that contains the text
    75      * Called by the view component. Title pane fethces the priority of entry
    63      * Called by the view component. Title pane fethces the priority of entry
    76      * @param aEntry Current calendar entry
    64      * @param aEntry Current calendar entry
    77      */
    65      */
    78     void InternalizeL( MESMRCalEntry& aEntry );
    66     void InternalizeL( MESMRCalEntry& aEntry );
    79 
    67 
    80     /**
       
    81      * Called by the view component. Title pane stores the priority of entry
       
    82      * @param aEntry Current calendar entry
       
    83      */
       
    84     void ExternalizeL( MESMRCalEntry& aEntry );
       
    85 
       
    86     /**
       
    87       * Set default icon for the view if needed
       
    88       */
       
    89     void SetDefaultIcon(TBool aDefault);
       
    90 
    68 
    91 private:
    69 private:
    92     CESMRTitlePane();
    70     CESMRTitlePane();
    93     void ConstructL();
    71     void ConstructL();
    94     void CreateIconL( TAknsItemID aIconID );
       
    95 
    72 
    96 private:
    73 private:
    97     /// Own: Current priority
       
    98     TUint iPriority;
       
    99     /// Own: entry type:
    74     /// Own: entry type:
   100     MESMRCalEntry::TESMRCalEntryType iEntryType;
    75     MESMRCalEntry::TESMRCalEntryType iEntryType;
   101     /// Own: do we have a default icon
       
   102     TBool iDefaultIcon;
       
   103     /// Own: Field icon
       
   104     CMRImage* iIcon;
       
   105     /// Own: Field text label
    76     /// Own: Field text label
   106     CMRLabel* iTitle;
    77     CMRLabel* iTitle;
   107     };
    78     };
   108 #endif // CESMRTITLEPANE_H
    79 #endif // CESMRTITLEPANE_H
   109 
    80