|
1 /* |
|
2 * Copyright (c) 2004 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: |
|
15 * psy configuration ui server app wrapper implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef LOCPSYCONFIGCLIENTWRAPPER_H_ |
|
20 #define LOCPSYCONFIGCLIENTWRAPPER_H_ |
|
21 |
|
22 #include <AknServerApp.h> |
|
23 |
|
24 /** |
|
25 * This class provides the place holder for the structural information of the |
|
26 * of the Configuration UI application. |
|
27 */ |
|
28 class CLocPsyConfigUiReg : public CBase |
|
29 { |
|
30 public: |
|
31 /** |
|
32 * Two phase constructor |
|
33 * |
|
34 * @param aApp Application UID |
|
35 * @param aResource Resource ID |
|
36 * @return CLocPsyConfigUiReg* Reference to the object created |
|
37 */ |
|
38 static CLocPsyConfigUiReg* NewL( TUid aApp, |
|
39 const TDesC8& aResource ); |
|
40 |
|
41 /** |
|
42 * Accessor function for the PSY UID |
|
43 * |
|
44 * @return TInt PSY UID |
|
45 */ |
|
46 TInt RegId(); |
|
47 |
|
48 /** |
|
49 * Accessor function for the Application UID |
|
50 * |
|
51 * @return TUid Application UID |
|
52 */ |
|
53 TUid AppUid(); |
|
54 |
|
55 private: |
|
56 /** |
|
57 * C++ Default Constructor |
|
58 */ |
|
59 CLocPsyConfigUiReg(); |
|
60 |
|
61 /** |
|
62 * Second phase constructor |
|
63 * @param aApp Application UID |
|
64 * @param aResource Resource ID |
|
65 */ |
|
66 void ConstructL( TUid aApp, |
|
67 const TDesC8& aResource ); |
|
68 |
|
69 private: |
|
70 /** |
|
71 * Application UID |
|
72 */ |
|
73 TUid iAppUid; |
|
74 |
|
75 /** |
|
76 * PSY UID |
|
77 */ |
|
78 TInt iRegId; |
|
79 }; |
|
80 |
|
81 /** |
|
82 * This class provides the discovery mechanism to discover the PSY |
|
83 * Configuration UI corresponding to the registration information |
|
84 */ |
|
85 class CLocPsyConfigUiServiceClient : public CBase |
|
86 { |
|
87 public: |
|
88 /** |
|
89 * Two phase constructor |
|
90 * |
|
91 * @param aReg Application registration info |
|
92 * @param aObserver Observer to notify the termination |
|
93 * of the application |
|
94 * @return CLocPsyConfigUiServiceClient* Reference to the object created |
|
95 */ |
|
96 static CLocPsyConfigUiServiceClient* NewLC( |
|
97 CLocPsyConfigUiReg& aReg, |
|
98 MAknServerAppExitObserver& aObserver ); |
|
99 public: |
|
100 /** |
|
101 * Static Discovery mechanism |
|
102 * |
|
103 * @param TInt PSY UID |
|
104 * @return CLocPsyConfigUiReg* Registration Info |
|
105 */ |
|
106 static CLocPsyConfigUiReg* DiscoverLC( const TInt PsyUid ); |
|
107 }; |
|
108 |
|
109 #endif // LOCPSYCONFIGCLIENTWRAPPER_H_ |