|
1 /* |
|
2 * Copyright (c) 2002 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: |
|
15 * Phonebook contact editor contact strategy interface. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __MPbkContactEditorStrategy_H__ |
|
21 #define __MPbkContactEditorStrategy_H__ |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <cntdef.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class TCoeHelpContext; |
|
29 class CEikMenuPane; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook Contact editor contact strategy interface. |
|
35 */ |
|
36 class MPbkContactEditorStrategy |
|
37 { |
|
38 public: // interface |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 virtual ~MPbkContactEditorStrategy() = 0; |
|
43 |
|
44 /** |
|
45 * Save contact to database. |
|
46 * @return Contact id if saving was succesful, KNullContactId if not. |
|
47 */ |
|
48 virtual TContactItemId SaveContactL() = 0; |
|
49 |
|
50 /** |
|
51 * Set help context to aContext. |
|
52 */ |
|
53 virtual void GetHelpContext(TCoeHelpContext& aContext) const = 0; |
|
54 |
|
55 /** |
|
56 * Sets contact state to modified. |
|
57 */ |
|
58 virtual void SetStateModified() = 0; |
|
59 |
|
60 /** |
|
61 * Editor has been initialized. |
|
62 */ |
|
63 virtual void SetStateInitialized() = 0; |
|
64 |
|
65 /** |
|
66 * Delete the edited contact item. |
|
67 */ |
|
68 virtual void DeleteContactL() = 0; |
|
69 |
|
70 /** |
|
71 * returns the default title of the editor. |
|
72 */ |
|
73 virtual const TDesC& DefaultTitle() const = 0; |
|
74 |
|
75 /** |
|
76 * initialize menu pane |
|
77 */ |
|
78 virtual void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane) = 0; |
|
79 |
|
80 }; |
|
81 |
|
82 inline MPbkContactEditorStrategy::~MPbkContactEditorStrategy() |
|
83 { |
|
84 } |
|
85 |
|
86 #endif // __MPbkContactEditorStrategy_H__ |
|
87 |
|
88 // End of File |