meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrtrackstatus.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  field that holds the status of the MR participant
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef CESMRTRACKSTATUS_H_
       
    20 #define CESMRTRACKSTATUS_H_
       
    21 
       
    22 #include <eikrted.h>
       
    23 #include <cntitem.h>
       
    24 #include <eiklbx.h>
       
    25 #include <eikedwob.h>
       
    26 
       
    27 #include "cesmrfield.h"
       
    28 #include "resmrstatic.h"
       
    29 
       
    30 
       
    31 // Forward declarations
       
    32 class CCalAttendee;
       
    33 class CMRImage;
       
    34 
       
    35 /**
       
    36  * This class shows the status of the attendee of a meeting request
       
    37  * a meeting request can have many of these in several modes
       
    38  */
       
    39 NONSHARABLE_CLASS( CESMRTrackStatus ) : public CESMRField
       
    40     {
       
    41 public:
       
    42     /**
       
    43      * Constructor for the track status field
       
    44      * @return New mr partcipant tracking status holder field
       
    45      */
       
    46     static CESMRTrackStatus* NewL();
       
    47     
       
    48     /**
       
    49      * C++ Destructor.
       
    50      */
       
    51     ~CESMRTrackStatus();
       
    52 
       
    53 public: // Interface
       
    54     /*
       
    55      * Draws right-arrow icon.
       
    56      * @param aFocused selects to hide or display icon
       
    57      */
       
    58     void SetActionMenuIconL( TBool aFocused );
       
    59 
       
    60 public: // From CESMRField
       
    61     void InternalizeL( MESMRCalEntry& aEntry );
       
    62     void SetOutlineFocusL( TBool aFocus );
       
    63 
       
    64 public: // From CoeControl
       
    65     TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
       
    66     TInt CountComponentControls() const;
       
    67     CCoeControl* ComponentControl( TInt aInd ) const;
       
    68     void SizeChanged();
       
    69 
       
    70 private: // Implementation
       
    71     CESMRTrackStatus();
       
    72     void ConstructL();
       
    73     HBufC* ClipTextLC( const TDesC& aText, 
       
    74                        const CFont& aFont, 
       
    75                        TInt aWidth );
       
    76 private:
       
    77     /**
       
    78      * The address of the attendee. Own
       
    79      */
       
    80     HBufC* iAddress;
       
    81     
       
    82     /**
       
    83      * The default address of the attendee. Own
       
    84      */
       
    85     HBufC* iDefaultAddress;
       
    86 
       
    87     /**
       
    88      * The Common name of the attendee. Own
       
    89      */
       
    90     HBufC* iCommonName;
       
    91 
       
    92     /**
       
    93      * Static TLS stored variables.
       
    94      */
       
    95     RESMRStatic iESMRStatic;
       
    96 
       
    97     /**
       
    98      * Ref: Reference to menu handler
       
    99      */
       
   100     CESMRContactMenuHandler* iMenuHandler;
       
   101 
       
   102     /*
       
   103      * Action Menu icon
       
   104      */
       
   105     CFbsBitmap* iActionMenuIcon;
       
   106     
       
   107     /*
       
   108      * Action Menu icon mask.
       
   109      */
       
   110     CFbsBitmap* iActionMenuIconMask;
       
   111 
       
   112     /**
       
   113      * Owned. checkbox_mark/checkbox_unmark
       
   114      */
       
   115     CMRImage* iIcon;
       
   116     };
       
   117 
       
   118 #endif /*CESMRTRACKSTATUS_H_*/
       
   119 
       
   120 // End of file