|
1 /* |
|
2 * Copyright (c) 2008 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: Header declaration |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 #ifndef WSOvi_SU_HANDLER_H |
|
26 #define WSOvi_SU_HANDLER_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32std.h> |
|
30 #include <flogger.h> |
|
31 #include "sensessionhandler.h" |
|
32 #include "wsovihandlercontext.h" |
|
33 #include "wsovisessioncontext.h" |
|
34 #include "wsovicons.h" |
|
35 #include "wsoviservicesession.h" |
|
36 |
|
37 |
|
38 /** |
|
39 * Class:CWSOviServiceUpdateHandler |
|
40 * |
|
41 * An implementation of the CWSOviSessionHandler definition. This is concrete |
|
42 * class, instance of which ECOM framework gives to ECOM clients. |
|
43 * |
|
44 * Class represent phase related to session, before discovering and validation. |
|
45 * Main goal is to indirectly implement (by passing session context) SIF method: |
|
46 * -registegr/unregister service description |
|
47 */ |
|
48 class CWSOviServiceUpdateHandler : public CSenSessionHandler |
|
49 { |
|
50 |
|
51 public: |
|
52 /** |
|
53 * Function: NewL |
|
54 * |
|
55 * Description: Create instance of concrete implementation. Note that ECOM |
|
56 * interface implementations can only have two signatures for |
|
57 * NewL: |
|
58 * - NewL without parameters (used here) |
|
59 * - NewL with TAny* pointer, which may provide some client |
|
60 * data |
|
61 * |
|
62 * Returns: Instance of this class. |
|
63 * |
|
64 * Note: The interface, which is abstract base class of this |
|
65 * implementation, also provides NewL method. Normally abstract |
|
66 * classes do not provide NewL, because they cannot create |
|
67 * instances of themselves. |
|
68 */ |
|
69 |
|
70 static CWSOviServiceUpdateHandler* NewL(TAny* aHandlerCtx); |
|
71 virtual TInt InvokeL(MSenSessionContext& aCtx); |
|
72 ~CWSOviServiceUpdateHandler(); |
|
73 |
|
74 virtual SenHandler::THandlerDirection Direction() const; |
|
75 virtual SenHandler::THandlerPhase Phase(); |
|
76 virtual TInt InitL(MSenHandlerContext& aCtx); |
|
77 |
|
78 |
|
79 protected: |
|
80 /** |
|
81 * Function: CWSOviServiceUpdateHandler |
|
82 * |
|
83 * Discussion: Perform the first phase of two phase construction |
|
84 */ |
|
85 CWSOviServiceUpdateHandler(MSenHandlerContext& aCtx); |
|
86 |
|
87 |
|
88 /** |
|
89 * Function: ConstructL |
|
90 * |
|
91 * Discussion: Perform the second phase construction of a |
|
92 * CImplementationClassPlus object. |
|
93 */ |
|
94 void ConstructL(); |
|
95 |
|
96 |
|
97 private: |
|
98 }; |
|
99 |
|
100 |
|
101 #endif // WSOvi_SU_HANDLER_PLUGIN_H |
|
102 |