1 /* |
|
2 * Copyright (c) 2007-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: PnpServiceActivation header file |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PNP_SERVICE_ACTIVATION_H |
|
20 #define PNP_SERVICE_ACTIVATION_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class CPnpServiceActivation: public CBase |
|
25 { |
|
26 |
|
27 public: // Constructors and destructor |
|
28 |
|
29 /** |
|
30 * Two-phased constructor. |
|
31 */ |
|
32 static CPnpServiceActivation* NewL(); |
|
33 |
|
34 /** |
|
35 * Two-phased constructor. |
|
36 */ |
|
37 static CPnpServiceActivation* NewLC(); |
|
38 |
|
39 /** |
|
40 * Destructor. |
|
41 */ |
|
42 ~CPnpServiceActivation(); |
|
43 private: |
|
44 /** |
|
45 * C++ default constructor. |
|
46 */ |
|
47 CPnpServiceActivation(); |
|
48 |
|
49 /** |
|
50 *By default Symbian 2nd phase constructor is private. |
|
51 */ |
|
52 void ConstructL(); |
|
53 private: |
|
54 |
|
55 /** |
|
56 * Mapping Application ID launched PNPMS client with that of |
|
57 * provisioning setting application ID. |
|
58 * This function validates the application ID with provisioning |
|
59 * settings ID |
|
60 */ |
|
61 TBool ValidateAppUidWithProvappIDL(); |
|
62 TUint32 iLaunchUid; |
|
63 TUint32 iPosition; |
|
64 |
|
65 public: |
|
66 |
|
67 /** |
|
68 * Launch Application using command line Symbian Fw |
|
69 */ |
|
70 void LaunchApplicationL(); |
|
71 |
|
72 /** |
|
73 * kill browser after settings are downloded and launching application |
|
74 */ |
|
75 void KillBrowserL(); |
|
76 |
|
77 /** |
|
78 *Display note specific to Service |
|
79 */ |
|
80 void DisplayAppSpecNoteL(); |
|
81 // Additional functions can be added if new functions are required |
|
82 // for service activation |
|
83 |
|
84 TBool isPresent(TDesC& p ); |
|
85 |
|
86 void ParseValues(RPointerArray<HBufC>& array, TDesC& aValue); |
|
87 void GetCenrepValueL(const TUid aRepositoryUid,TUint32 aKey, TDes16& aValue); |
|
88 TBool Search(RPointerArray<HBufC>& array,TDesC& p); |
|
89 TBool isFound(TDesC& p,TUint32 position); |
|
90 }; |
|
91 |
|
92 |
|
93 #endif PNP_SERVICE_ACTIVATION_H |
|