|
1 /* |
|
2 * Copyright (c) 2005-2007 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: Base class for Phonebook 2 memory entry views. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPBK2MEMORYENTRYVIEW_H |
|
20 #define MPBK2MEMORYENTRYVIEW_H |
|
21 |
|
22 // FORWARD DECLARATIONS |
|
23 class MVPbkStoreContact; |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Base class for Phonebook 2 memory entry views. |
|
29 */ |
|
30 class MPbk2MemoryEntryView |
|
31 { |
|
32 public: // Base class interface |
|
33 |
|
34 /** |
|
35 * Notifies that the contact is about to change soon. The instance |
|
36 * of this class should prepare for that by, for example, |
|
37 * storing the view state. |
|
38 */ |
|
39 virtual void PrepareForContactChangeL() = 0; |
|
40 |
|
41 /** |
|
42 * Notifies the derived class that the displayed |
|
43 * contact has changed. Ownership is transfered. |
|
44 * |
|
45 * @param aContact The new contact to show. |
|
46 */ |
|
47 virtual void ContactChangedL( |
|
48 MVPbkStoreContact* aContact) = 0; |
|
49 |
|
50 /** |
|
51 * Notifies the derived class that the displayed |
|
52 * contact change failed. |
|
53 */ |
|
54 virtual void ContactChangeFailed() = 0; |
|
55 |
|
56 /** |
|
57 * Returns the contact item this view is currently displaying. |
|
58 * |
|
59 * @return Store contact currently displayed. |
|
60 */ |
|
61 virtual const MVPbkStoreContact* Contact() const = 0; |
|
62 |
|
63 protected: // Disabled functions |
|
64 virtual ~MPbk2MemoryEntryView() |
|
65 {} |
|
66 }; |
|
67 |
|
68 #endif // MPBK2MEMORYENTRYVIEW_H |
|
69 |
|
70 // End of File |