|
1 // Copyright (c) 2001-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 __CUNKNOWNAPPHANDLER_H__ |
|
17 #define __CUNKNOWNAPPHANDLER_H__ |
|
18 |
|
19 // System includes |
|
20 #include <e32base.h> |
|
21 #include <push/cpushhandlerbase.h> |
|
22 |
|
23 // Local includes |
|
24 |
|
25 // Constants |
|
26 // |
|
27 const TUid KUidPushUnknownAppHandler = { 0x101F3E5C }; |
|
28 _LIT(KPushUnknownHandlerData,"*"); |
|
29 |
|
30 /** CUnknownAppHandler is used to handle all the Push Messages with |
|
31 * unknown AppID. |
|
32 * It provides the default App plugin handler when the |
|
33 * specific plugin handler for a data type cannot be matched: |
|
34 */ |
|
35 //##ModelId=3B659E6E01A4 |
|
36 class CUnknownAppHandler : public CPushHandlerBase |
|
37 /** |
|
38 @internalComponent |
|
39 @released |
|
40 */ |
|
41 { |
|
42 public: // Methods |
|
43 |
|
44 //##ModelId=3B659E6E01DA |
|
45 static CUnknownAppHandler* NewL(); |
|
46 |
|
47 //##ModelId=3B659E6E01CE |
|
48 virtual ~CUnknownAppHandler(); |
|
49 |
|
50 |
|
51 private: // Methods from CPushHandlerBase |
|
52 |
|
53 //##ModelId=3B659E6E01C2 |
|
54 virtual void HandleMessageL(CPushMessage* aPushMsg, TRequestStatus& aStatus); |
|
55 |
|
56 //##ModelId=3B659E6E01BE |
|
57 virtual void CancelHandleMessage(); |
|
58 |
|
59 //##ModelId=3B659E6E01C5 |
|
60 virtual void HandleMessageL(CPushMessage* aPushMsg); |
|
61 |
|
62 virtual void CPushHandlerBase_Reserved1(); |
|
63 |
|
64 virtual void CPushHandlerBase_Reserved2(); |
|
65 |
|
66 protected: // Methods from CActive |
|
67 |
|
68 //##ModelId=3B659E6E01BD |
|
69 void DoCancel(); |
|
70 //##ModelId=3B659E6E01BC |
|
71 void RunL(); |
|
72 |
|
73 private: |
|
74 //##ModelId=3B659E6E01B8 |
|
75 CUnknownAppHandler(); |
|
76 |
|
77 //##ModelId=3B659E6E01AF |
|
78 void ConstructL(); |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // __CUNKNOWNAPPHANDLER_H__ |
|
83 |