equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
38 * |
38 * |
39 * @param aPolicy policy determines visible fields |
39 * @param aPolicy policy determines visible fields |
40 * @param aCommandObserver Reference to command observer |
40 * @param aCommandObserver Reference to command observer |
41 */ |
41 */ |
42 static CESMREditorFieldStorage* NewL( |
42 static CESMREditorFieldStorage* NewL( |
43 CESMRPolicy* aPolicy, |
43 const CESMRPolicy& aPolicy, |
44 MESMRFieldEventObserver& aEventObserver ); |
44 MESMRFieldEventObserver& aEventObserver ); |
45 |
45 |
46 /** |
46 /** |
47 * Destructor. |
47 * Destructor. |
48 */ |
48 */ |
57 * TESMREntryFieldId contains the prefrred focus item. |
57 * TESMREntryFieldId contains the prefrred focus item. |
58 * |
58 * |
59 * @return KErrNone if validation succeeds, error code otherwise |
59 * @return KErrNone if validation succeeds, error code otherwise |
60 */ |
60 */ |
61 TInt Validate( TESMREntryFieldId& aUpdatedFocus, TBool aForceValidate ); |
61 TInt Validate( TESMREntryFieldId& aUpdatedFocus, TBool aForceValidate ); |
62 |
62 |
|
63 /** |
|
64 * Adjusts this storage for new policy. Creates fields according to new |
|
65 * policy. |
|
66 * |
|
67 * @param aNewPolicy the new policy |
|
68 * @param aEntry the entry to edit |
|
69 */ |
|
70 void ChangePolicyL( |
|
71 const CESMRPolicy& aNewPolicy, |
|
72 MESMRCalEntry& aEntry ); |
|
73 |
63 private: // Implementation |
74 private: // Implementation |
64 CESMREditorFieldStorage( |
75 CESMREditorFieldStorage( |
65 MESMRFieldEventObserver& aEventObserver ); |
76 MESMRFieldEventObserver& aEventObserver ); |
66 void ConstructL( CESMRPolicy* aPolicy ); |
77 void ConstructL( const CESMRPolicy& aPolicy ); |
67 |
78 |
68 private: |
79 private: |
69 /** |
80 /** |
70 * Own. Validator object. |
81 * Own. Validator object. |
71 */ |
82 */ |