meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrtrackstatus.h
changeset 0 8466d47a6819
child 16 4ce476e64c59
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/meetingrequest/mrgui/mrfieldbuilderpluginextension/inc/cesmrtrackstatus.h	Thu Dec 17 08:39:21 2009 +0200
@@ -0,0 +1,117 @@
+/*
+* Copyright (c) 2003-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:  field that holds the status of the MR participant
+ *
+*/
+
+
+#ifndef CESMRTRACKSTATUS_H_
+#define CESMRTRACKSTATUS_H_
+
+#include "resmrstatic.h"
+#include "cesmrviewerlabelfield.h"
+#include <eikrted.h>
+#include <cntitem.h>
+#include <eiklbx.h>
+#include <eikedwob.h>
+
+// Forward declarations
+class CCalAttendee;
+
+/**
+ * This class shows the status of the attendee of a meeting request
+ * a meeting request can have many of these in several modes
+ */
+NONSHARABLE_CLASS( CESMRTrackStatus ) : public CESMRViewerLabelField
+    {
+public:
+    /**
+     * Constructor for the track status field
+     * @return New mr partcipant tracking status holder field
+     */
+    static CESMRTrackStatus* NewL();
+    
+    /**
+     * C++ Destructor.
+     */
+    ~CESMRTrackStatus();
+
+public: // Interface
+    /*
+     * Draws right-arrow icon.
+     * @param aFocused selects to hide or display icon
+     */
+    void SetActionMenuIconL( TBool aFocused );
+
+public: // From CESMRField
+    void InternalizeL( MESMRCalEntry& aEntry );
+    void SetOutlineFocusL( TBool aFocus );
+
+public: // From CoeControl
+    TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType );
+    TInt CountComponentControls() const;
+    CCoeControl* ComponentControl( TInt aInd ) const;
+    void SizeChanged();
+
+private: // Implementation
+    CESMRTrackStatus();
+    void ConstructL();
+    HBufC* ClipTextLC( const TDesC& aText, 
+                       const CFont& aFont, 
+                       TInt aWidth );
+private:
+    /**
+     * The address of the attendee. Own
+     */
+    HBufC* iAddress;
+    
+    /**
+     * The default address of the attendee. Own
+     */
+    HBufC* iDefaultAddress;
+
+    /**
+     * The Common name of the attendee. Own
+     */
+    HBufC* iCommonName;
+
+    /**
+     * Static TLS stored variables.
+     */
+    RESMRStatic iESMRStatic;
+
+    /**
+     * Ref: Reference to menu handler
+     */
+    CESMRContactMenuHandler* iMenuHandler;
+
+    /*
+     * Action Menu icon
+     */
+    CFbsBitmap* iActionMenuIcon;
+    
+    /*
+     * Action Menu icon mask.
+     */
+    CFbsBitmap* iActionMenuIconMask;
+
+    /**
+     * Owned. checkbox_mark/checkbox_unmark
+     */
+    CEikImage* iIcon;
+    };
+
+#endif /*CESMRTRACKSTATUS_H_*/
+
+// End of file