1 /* |
|
2 * Copyright (c) 2007-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: This field is shown when MR has a response value, |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CESMRRESPONSEREADYFIELD_H__ |
|
19 #define __CESMRRESPONSEREADYFIELD_H__ |
|
20 |
|
21 #include <eiklabel.h> |
|
22 #include "cesmrfield.h" |
|
23 |
|
24 class MESMRResponseObserver; |
|
25 |
|
26 /** |
|
27 * This field is shown instead of response field when MR has response value. |
|
28 * When pressing "OK" button on the top of this field, this field is hided and |
|
29 * response field is shown. |
|
30 */ |
|
31 NONSHARABLE_CLASS( CESMRResponseReadyField ): public CESMRField |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Creates new instance from response ready field and returns it. |
|
36 * @param aResponseObserver - Observer is called when user wants to change response value |
|
37 * @return New CESMRResponseReadyField object. |
|
38 */ |
|
39 static CESMRResponseReadyField* NewL( MESMRResponseObserver* aResponseObserver ); |
|
40 |
|
41 /** |
|
42 * C++ Destructor. |
|
43 */ |
|
44 ~CESMRResponseReadyField(); |
|
45 |
|
46 public: // From CCoeControl |
|
47 TKeyResponse OfferKeyEventL( const TKeyEvent& aEvent, TEventCode aType ); |
|
48 |
|
49 public: // From CESMRField |
|
50 void InitializeL(); |
|
51 void InternalizeL( MESMRCalEntry& aEntry ); |
|
52 void SetOutlineFocusL( TBool aFocus ); |
|
53 void ExecuteGenericCommandL( TInt aCommand ); |
|
54 |
|
55 protected: |
|
56 CEikLabel* iLabel; |
|
57 |
|
58 private: // Implementation |
|
59 void ConstructL(); |
|
60 CESMRResponseReadyField( MESMRResponseObserver* aResponseObserver ); |
|
61 |
|
62 private: //data |
|
63 // Pointer to response observer. not own. |
|
64 MESMRResponseObserver* iResponseObserver; |
|
65 }; |
|
66 |
|
67 #endif // __CESMRRESPONSEREADYFIELD_H__ |
|