|
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: Recurrence date field |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CESMRVIEWERRECURRENCEDATEFIELD_H |
|
20 #define CESMRVIEWERRECURRENCEDATEFIELD_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cesmrfield.h" |
|
24 |
|
25 // FORWARD DECLARATIONS |
|
26 class CMRLabel; |
|
27 class CLayoutManager; |
|
28 |
|
29 // CLASS DECLARATIONS |
|
30 |
|
31 /** |
|
32 * Class is responsible of showing the recurrence event's repeat details. |
|
33 */ |
|
34 NONSHARABLE_CLASS( CESMRViewerRecurrenceDateField ) : public CESMRField |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Creates new CESMRViewerRecurrenceDateField object. Ownership |
|
39 * is transferred to caller. |
|
40 * @return Pointer to created object, |
|
41 */ |
|
42 static CESMRViewerRecurrenceDateField* NewL(); |
|
43 |
|
44 /** |
|
45 * C++ destructor |
|
46 */ |
|
47 ~CESMRViewerRecurrenceDateField(); |
|
48 |
|
49 public: // From CESMRField |
|
50 void InternalizeL( MESMRCalEntry& aEntry ); |
|
51 void InitializeL(); |
|
52 |
|
53 public: // From CCoeControl |
|
54 TInt CountComponentControls() const; |
|
55 CCoeControl* ComponentControl( TInt aInd ) const; |
|
56 void SizeChanged(); |
|
57 TSize MinimumSize(); |
|
58 |
|
59 private: // Implementation |
|
60 CESMRViewerRecurrenceDateField(); |
|
61 void ConstructL(); |
|
62 |
|
63 private: |
|
64 /// Own: topic label |
|
65 CMRLabel* iRepeatTopic; |
|
66 /// Own: date label |
|
67 CMRLabel* iRepeatDate; |
|
68 }; |
|
69 |
|
70 #endif // CESMRVIEWERRECURRENCECONTAINER_H |