64
|
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: 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 |
TBool ExecuteGenericCommandL( TInt aCommand );
|
|
53 |
|
|
54 |
public: // From CCoeControl
|
|
55 |
TInt CountComponentControls() const;
|
|
56 |
CCoeControl* ComponentControl( TInt aInd ) const;
|
|
57 |
void SizeChanged();
|
|
58 |
TSize MinimumSize();
|
|
59 |
|
|
60 |
private: // Implementation
|
|
61 |
CESMRViewerRecurrenceDateField();
|
|
62 |
void ConstructL();
|
|
63 |
void FormatRepeatUntilDateL();
|
|
64 |
|
|
65 |
private:
|
|
66 |
/// Own: topic label
|
|
67 |
CMRLabel* iRepeatTopic;
|
|
68 |
/// Own: date label
|
|
69 |
CMRLabel* iRepeatDate;
|
|
70 |
/// Own: Repeat until date
|
|
71 |
TTime iRepeatUntilDate;
|
|
72 |
};
|
|
73 |
|
|
74 |
#endif // CESMRVIEWERRECURRENCECONTAINER_H
|