|
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: Launches GS views. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_GSLAUNCHER_H |
|
22 #define C_GSLAUNCHER_H |
|
23 |
|
24 #include <e32std.h> |
|
25 #include <e32def.h> |
|
26 #include <apgtask.h> |
|
27 |
|
28 |
|
29 |
|
30 class CGSLauncherExtension; |
|
31 /** |
|
32 * Launches general settings with specific plug-in opened. |
|
33 * Using this API, a client may request a general settings view to be shown. |
|
34 * Implementation will launch general settings if it is not yet running. |
|
35 * |
|
36 * Example usage of the interface: |
|
37 * @code |
|
38 * CGSLauncher* l = CGSLauncher::NewLC(); |
|
39 * l->LaunchGSViewL ( yourPluginUid, TUid::Uid(0), KNullDesC8 ); |
|
40 * CleanupStack::PopAndDestroy(l); |
|
41 * @endcode |
|
42 * |
|
43 * @lib gslauncher.lib |
|
44 * @since S60 5.0 |
|
45 */ |
|
46 NONSHARABLE_CLASS(CGSLauncher) : public CBase |
|
47 { |
|
48 |
|
49 public: |
|
50 |
|
51 /** |
|
52 * Two-phased constructors. |
|
53 */ |
|
54 IMPORT_C static CGSLauncher* NewL(); |
|
55 |
|
56 IMPORT_C static CGSLauncher* NewLC(); |
|
57 |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CGSLauncher(); |
|
63 |
|
64 /** |
|
65 * Launches general settings with specific plug-in activated. |
|
66 * Launching of plug-in's local views is not supported. |
|
67 * General settings application is started if it's not running. |
|
68 * Any application embedded into general settings will be closed. |
|
69 * |
|
70 * Needs capability: SwEvent |
|
71 * |
|
72 * @since S60 5.0 |
|
73 * @param aTarget Target plug-in's view id. (CAknView::Id()) |
|
74 * @param aCustomMessageId For client data. Passed to the plug-in. |
|
75 * @param aCustomMessage For client data. Passed to the plug-in. |
|
76 * @return none |
|
77 */ |
|
78 IMPORT_C void LaunchGSViewL( const TUid aTarget,const TUid aCustomMessageId |
|
79 ,const TDesC8& aCustomMessage ); |
|
80 |
|
81 |
|
82 protected: |
|
83 |
|
84 private: |
|
85 |
|
86 CGSLauncher(); |
|
87 |
|
88 void ConstructL(); |
|
89 |
|
90 private: // data |
|
91 CGSLauncherExtension* iExt; |
|
92 }; |
|
93 |
|
94 #endif // C_GSLAUNCHER_H |