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