meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmralarmfield.h
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
--- a/meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmralarmfield.h	Mon Mar 15 12:39:10 2010 +0200
+++ b/meetingrequest/mrgui/mrfieldbuilderplugin/inc/cesmralarmfield.h	Wed Mar 31 21:08:33 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). 
+* 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"
@@ -19,10 +19,11 @@
 #ifndef CESMRALARMFIELD_H
 #define CESMRALARMFIELD_H
 
-#include "cesmriconfield.h"
+#include "cesmrfield.h"
 
-class CEikLabel;
+class CMRLabel;
 class CESMRAlarm;
+class CMRImage;
 class MESMRFieldValidator;
 
 /**
@@ -33,7 +34,7 @@
  *
  * @see cesmralarm.h
  */
-NONSHARABLE_CLASS( CESMRAlarmField ) : public CESMRIconField
+NONSHARABLE_CLASS( CESMRAlarmField ) : public CESMRField
     {
 public:
     /**
@@ -47,16 +48,18 @@
     ~CESMRAlarmField();
 
 public: // From CESMRField
-    void InitializeL();
     void InternalizeL( MESMRCalEntry& aEntry );
     void ExternalizeL( MESMRCalEntry& aEntry );
     void SetOutlineFocusL( TBool aFocus );
     TBool OkToLoseFocusL( TESMREntryFieldId aId );
-    void ExecuteGenericCommandL( TInt aCommand );
+    TBool ExecuteGenericCommandL( TInt aCommand );
 
 public: // From CCoeControl
     TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
-
+    TInt CountComponentControls() const;
+    CCoeControl* ComponentControl( TInt aIndex ) const;
+    void SizeChanged();
+    
 private:
     /**
      * Constructor
@@ -98,9 +101,12 @@
 
 private:
     /**
-     *  Not own: Label for current alarm value
+     *  Own: Label for current alarm value
      */
-    CEikLabel* iAlarm;
+    CMRLabel* iAlarm;
+    
+    /// Own: Icon for alarm field
+    CMRImage* iIcon;
 
     /**
      * Own: List of CESMRAlarm objects
@@ -113,11 +119,6 @@
     TInt iOptIndex;
 
     /**
-     * Not owned. Validator class for time and sanity checks.
-     */
-    MESMRFieldValidator* iValidator;
-
-    /**
      * Own: Relative alarm validity
      */
     TBool iRelativeAlarmValid;