|
1 /* |
|
2 * Copyright (c) 2006 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: Abstract factory for creating command objects. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MCACOMMANDFACTORY_H |
|
21 #define MCACOMMANDFACTORY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include "MCAUiContactEditCmdCB.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MCAProcessManager; |
|
29 class MCAUiLoginCmdCB; |
|
30 class MCAUiSettingsDialogCmdCB; |
|
31 class MCASettingsCommand; |
|
32 class MCASessionHandlerCmd; |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * Abstract factory for creating command objects. |
|
38 */ |
|
39 class MCACommandFactory |
|
40 { |
|
41 public: |
|
42 // Destructor |
|
43 virtual ~MCACommandFactory() {} |
|
44 |
|
45 public: // New functions |
|
46 |
|
47 /** |
|
48 * Creates a new command object corresponding to given command id. |
|
49 * |
|
50 * @param aCommandId Id of the command to be created |
|
51 * @return Pointer to the created object, ownership is transferred. |
|
52 */ |
|
53 virtual MCACommand* NewCommandLC( TInt aCommandId, |
|
54 MCAProcessManager& aProcessManager, |
|
55 MCAUiLoginCmdCB& aUiLoginCmdCB ) = 0; |
|
56 /** |
|
57 * Creates a new command object corresponding to given command id. |
|
58 * |
|
59 * @param aCommandId Id of the command to be created |
|
60 * @return Pointer to the created object, ownership is transferred. |
|
61 */ |
|
62 virtual MCASettingsCommand* NewCommandLC( TInt aCommandId, |
|
63 MCAProcessManager& aProcessManager, |
|
64 MCAUiSettingsDialogCmdCB& aUiCmdCB ) = 0; |
|
65 |
|
66 /** |
|
67 * Creates a new command object corresponding to given command id. |
|
68 * |
|
69 * @param aCommandId Id of the command to be created |
|
70 * @return Pointer to the created object, ownership is transferred. |
|
71 */ |
|
72 virtual MCASettingsCommand* NewCommandL( TInt aCommandId, |
|
73 MCAProcessManager& aProcessManager, |
|
74 MCAUiSettingsDialogCmdCB& aUiCmdCB ) = 0; |
|
75 |
|
76 virtual MCACommand* NewCommandLC( TInt aCommandId, |
|
77 MCAProcessManager& , |
|
78 MCAUiContactEditCmdCB& ) = 0; |
|
79 virtual MCACommand* NewCommandL ( TInt aCommandId, |
|
80 MCAProcessManager& , |
|
81 MCAUiContactEditCmdCB& ) = 0; |
|
82 |
|
83 /** |
|
84 * Get SessHandlerObserversManager interface. |
|
85 * @return Pointer to the SessHandlerObserversManager interface. |
|
86 */ |
|
87 |
|
88 virtual MCASessionHandlerCmd* GetSessionHandlerCmd() = 0; |
|
89 |
|
90 }; |
|
91 |
|
92 #endif // MCACOMMANDFACTORY_H |
|
93 |
|
94 // End of File |