|
1 /* |
|
2 * Copyright (c) 2009 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: AIW Service Handler stub implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <aiwservicehandler.h> |
|
20 |
|
21 #include "t_caiwservicehandlerstub.h" |
|
22 |
|
23 CAiwServiceHandler* CAiwServiceHandler::NewL() |
|
24 { |
|
25 CAiwServiceHandler* self = new (ELeave) CAiwServiceHandler(); |
|
26 CleanupStack::PushL(self); |
|
27 self->ConstructL(); |
|
28 CleanupStack::Pop(self); |
|
29 return self; |
|
30 } |
|
31 |
|
32 |
|
33 CAiwServiceHandler::CAiwServiceHandler() |
|
34 { |
|
35 |
|
36 } |
|
37 |
|
38 CAiwServiceHandler::~CAiwServiceHandler() |
|
39 { |
|
40 delete iImpl; |
|
41 } |
|
42 |
|
43 void CAiwServiceHandler::ConstructL() |
|
44 { |
|
45 iImpl = CAiwServiceHandlerImpl::NewL(); |
|
46 } |
|
47 |
|
48 CAiwGenericParamList& CAiwServiceHandler::InParamListL() |
|
49 { |
|
50 return iImpl->InParamListL(); |
|
51 } |
|
52 |
|
53 CAiwGenericParamList& CAiwServiceHandler::OutParamListL() |
|
54 { |
|
55 return iImpl->OutParamListL(); |
|
56 } |
|
57 |
|
58 void CAiwServiceHandler::InitializeMenuPaneL( |
|
59 CEikMenuPane& /* aMenuPane */, |
|
60 TInt /* aMenuResourceId */, |
|
61 TInt /* aBaseMenuCmdId */, |
|
62 const CAiwGenericParamList& /* aInParamList */) |
|
63 { |
|
64 iImpl->ResetInParams(); |
|
65 } |
|
66 |
|
67 void CAiwServiceHandler::AttachMenuL(TInt /* aMenuResourceId */, TInt /* aInterestResourceId */) |
|
68 { |
|
69 |
|
70 } |
|
71 |
|
72 TInt CAiwServiceHandler::ServiceCmdByMenuCmd(TInt /* aMenuCmdId */) const |
|
73 { |
|
74 return 0; |
|
75 } |
|
76 |
|
77 void CAiwServiceHandler::ExecuteMenuCmdL( |
|
78 TInt /* aMenuCmdId */, |
|
79 const CAiwGenericParamList& /* aInParamList */, |
|
80 CAiwGenericParamList& /* aOutParamList */, |
|
81 TUint /* aCmdOptions */, |
|
82 MAiwNotifyCallback* /* aCallback */) |
|
83 { |
|
84 |
|
85 } |
|
86 |
|
87 TBool CAiwServiceHandler::HandleSubmenuL(CEikMenuPane& /* aPane */) |
|
88 { |
|
89 return ETrue; |
|
90 } |
|
91 |
|
92 TBool CAiwServiceHandler::IsAiwMenu(TInt /* aMenuResourceId */) |
|
93 { |
|
94 return ETrue; |
|
95 } |
|
96 |
|
97 /////////////////////////////////////////////////////////////////////////////// |
|
98 |
|
99 CAiwServiceHandlerImpl* CAiwServiceHandlerImpl::NewL() |
|
100 { |
|
101 CAiwServiceHandlerImpl* self = new (ELeave) CAiwServiceHandlerImpl(); |
|
102 CleanupStack::PushL(self); |
|
103 self->ConstructL(); |
|
104 CleanupStack::Pop(self); |
|
105 return self; |
|
106 } |
|
107 |
|
108 |
|
109 CAiwServiceHandlerImpl::CAiwServiceHandlerImpl() |
|
110 { |
|
111 |
|
112 } |
|
113 |
|
114 CAiwServiceHandlerImpl::~CAiwServiceHandlerImpl() |
|
115 { |
|
116 delete iInParams; |
|
117 delete iOutParams; |
|
118 } |
|
119 |
|
120 void CAiwServiceHandlerImpl::ConstructL() |
|
121 { |
|
122 } |
|
123 |
|
124 CAiwGenericParamList& CAiwServiceHandlerImpl::InParamListL() |
|
125 { |
|
126 if (!iInParams) |
|
127 { |
|
128 iInParams = CAiwGenericParamList::NewL(); |
|
129 } |
|
130 return *iInParams; |
|
131 } |
|
132 |
|
133 CAiwGenericParamList& CAiwServiceHandlerImpl::OutParamListL() |
|
134 { |
|
135 if (!iOutParams) |
|
136 { |
|
137 iOutParams = CAiwGenericParamList::NewL(); |
|
138 } |
|
139 return *iOutParams; |
|
140 } |
|
141 |
|
142 void CAiwServiceHandlerImpl::ResetInParams() |
|
143 { |
|
144 delete iInParams; |
|
145 iInParams = 0; |
|
146 } |