|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CROAPPHANDLER_H__ |
|
17 #define __CROAPPHANDLER_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 #include <push/cpushhandlerbase.h> |
|
22 |
|
23 // Local includes |
|
24 |
|
25 |
|
26 // Forward class declarations |
|
27 // |
|
28 class CContentHandlerBase; |
|
29 |
|
30 // Constants |
|
31 // |
|
32 const TUid KUidROAppHandler = { 0x101F3E67 };//Change UID |
|
33 // Note:Changing the Order of the AppId may cause TMatchParams in the dispatcher not to find the right Id |
|
34 _LIT(KROppHandlerName,"x-wap-application:drm.ua||0x00000008"); |
|
35 _LIT(KROAppHandlerData,"X-WAP-Application-ID"); |
|
36 |
|
37 /** |
|
38 * CROAppHandler Handles ROAP Applications. |
|
39 * |
|
40 */ |
|
41 //##ModelId=3B659E6D024D |
|
42 class CROAppHandler : public CPushHandlerBase |
|
43 /** |
|
44 @internalComponent |
|
45 @released |
|
46 */ |
|
47 { |
|
48 public: // Methods |
|
49 |
|
50 //##ModelId=3B659E6D029F |
|
51 static CROAppHandler* NewL(); |
|
52 |
|
53 //##ModelId=3B659E6D0294 |
|
54 virtual ~CROAppHandler(); |
|
55 |
|
56 private: // Methods from CPushHandlerBase |
|
57 |
|
58 //##ModelId=3B659E6D0278 |
|
59 void HandleMessageL(CPushMessage* aPushMsg, TRequestStatus& aStatus); |
|
60 |
|
61 //##ModelId=3B659E6D0277 |
|
62 void CancelHandleMessage(); |
|
63 |
|
64 //##ModelId=3B659E6D0281 |
|
65 void HandleMessageL(CPushMessage* aPushMsg); |
|
66 |
|
67 virtual void CPushHandlerBase_Reserved1(); |
|
68 |
|
69 virtual void CPushHandlerBase_Reserved2(); |
|
70 |
|
71 private: // Methods from CActive |
|
72 |
|
73 //##ModelId=3B659E6D0276 |
|
74 void DoCancel(); |
|
75 |
|
76 //##ModelId=3B659E6D0275 |
|
77 void RunL(); |
|
78 |
|
79 private: // Methods |
|
80 |
|
81 //##ModelId=3B659E6D026C |
|
82 CROAppHandler(); |
|
83 |
|
84 //##ModelId=3B659E6D026B |
|
85 void ConstructL(); |
|
86 |
|
87 private: // Attributes |
|
88 |
|
89 //Note: iContentHandlerPi Pointer is Not Owned by this Class |
|
90 //##ModelId=3B659E6D025A |
|
91 CContentHandlerBase* iContentHandlerPi; |
|
92 |
|
93 }; |
|
94 |
|
95 #endif // __CROAPPHANDLER_H__ |