equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2007-2009 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". |
18 |
18 |
19 #ifndef MESMRFIELDSTORAGE_H |
19 #ifndef MESMRFIELDSTORAGE_H |
20 #define MESMRFIELDSTORAGE_H |
20 #define MESMRFIELDSTORAGE_H |
21 |
21 |
22 #include <e32std.h> |
22 #include <e32std.h> |
|
23 #include "esmrdef.h" // TESMREntryFieldId |
23 |
24 |
24 class MESMRCalEntry; |
25 class MESMRCalEntry; |
25 class CESMRField; |
26 class CESMRField; |
|
27 class CESMRPolicy; |
26 |
28 |
27 /** |
29 /** |
28 * Pure virtual class to be inherited by field storage classes. |
30 * Pure virtual class to be inherited by field storage classes. |
29 */ |
31 */ |
30 class MESMRFieldStorage |
32 class MESMRFieldStorage |
79 * @return TInt |
81 * @return TInt |
80 */ |
82 */ |
81 virtual TInt Validate( |
83 virtual TInt Validate( |
82 TESMREntryFieldId& aId, |
84 TESMREntryFieldId& aId, |
83 TBool aForceValidate = EFalse ) = 0; |
85 TBool aForceValidate = EFalse ) = 0; |
|
86 |
|
87 /** |
|
88 * Updates storage on policy change. |
|
89 * |
|
90 * @param aNewPolicy the new policy to adjust the storage. |
|
91 * @param aEntry the entry to handle. |
|
92 */ |
|
93 virtual void ChangePolicyL( const CESMRPolicy& aNewPolicy, |
|
94 MESMRCalEntry& aEntry ) = 0; |
84 }; |
95 }; |
85 |
96 |
86 #endif |
97 #endif |