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