|
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_HANDLER_VALIDATE_CONTEXT_H |
|
26 #define WSSTAR_HANDLER_VALIDATE_CONTEXT_H |
|
27 |
|
28 // INCLUDES |
|
29 #include <e32std.h> |
|
30 #include <flogger.h> |
|
31 #include "msenhandlercontext.h" |
|
32 |
|
33 // CONSTANTS |
|
34 namespace HandlerContextKey |
|
35 { |
|
36 _LIT8(KSIF, "SIF"); |
|
37 _LIT8(KLogger, "Logger"); |
|
38 _LIT8(KVersion, "version"); |
|
39 } |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 class CWSStarPlugin; |
|
43 |
|
44 /** |
|
45 * Class: |
|
46 */ |
|
47 class CWSStarHandlerContext : public CBase, public MSenHandlerContext |
|
48 { |
|
49 public: |
|
50 static CWSStarHandlerContext* NewL(); |
|
51 ~CWSStarHandlerContext(); |
|
52 |
|
53 //from HandlerContext |
|
54 virtual TInt Add(MSenCoreServiceManager& aValue); |
|
55 virtual MSenCoreServiceManager* GetSenCoreServiceManager(); |
|
56 |
|
57 //from MContext |
|
58 virtual SenContext::TContextType Type() const; |
|
59 virtual SenContext::TContextDirection Direction() const; |
|
60 virtual TInt Add(const TDesC8& aKey, const TDesC8& aValue); |
|
61 virtual TInt Update(const TDesC8& aKey, const TDesC8& aValue); |
|
62 virtual const TDesC8* GetDesC8L(const TDesC8& aKey); |
|
63 virtual TInt Add(const TDesC8& aKey, TInt aValue); |
|
64 virtual TInt Update(const TDesC8& aKey, TInt aValue); |
|
65 virtual const TInt* GetIntL(const TDesC8& aKey); |
|
66 virtual TInt Add(const TDesC8& aKey, CSenElement* aValue); |
|
67 virtual TInt Update(const TDesC8& aKey, CSenElement* aValue); |
|
68 virtual const CSenElement* GetSenElementL(const TDesC8& aKey) ; |
|
69 virtual TInt Add(const TDesC8& aKey, TAny* aValue); |
|
70 virtual TInt Update(const TDesC8& aKey, TAny* aValue) ; |
|
71 virtual TAny* GetAnyL(const TDesC8& aKey); //codescannerwarnings |
|
72 virtual const CSenXmlReader* GetParser(); |
|
73 virtual TInt Remove(const TDesC8& aKey); |
|
74 virtual TInt Count() const; |
|
75 virtual TPtrC8 KeyAtL(TInt aIndex); |
|
76 virtual void Reset() ; |
|
77 |
|
78 inline virtual TInt SetDirection( SenContext::TContextDirection /* aDirection */ ) { return KErrNotSupported; } // not implemented |
|
79 |
|
80 |
|
81 protected: |
|
82 /** |
|
83 * Function: CWSStarHandlerContext |
|
84 * |
|
85 * Discussion: Perform the first phase of two phase construction |
|
86 */ |
|
87 CWSStarHandlerContext(); |
|
88 |
|
89 /** |
|
90 * Function: ConstructL |
|
91 * |
|
92 * Discussion: Perform the second phase construction of a |
|
93 * CImplementationClassPlus object. |
|
94 */ |
|
95 void ConstructL(); |
|
96 |
|
97 private://data |
|
98 MSenCoreServiceManager* iCoreServiceManager; |
|
99 CWSStarPlugin* iWSStarPlugin; |
|
100 RFileLogger* iLogger; |
|
101 HBufC8* iVersion;//owned |
|
102 }; |
|
103 |
|
104 |
|
105 #endif // WSSTAR_HANDLER_VALIDATE_CONTEXT_H |
|
106 |
|
107 |
|
108 |
|
109 // END OF FILE |
|
110 |