|
1 /* |
|
2 * Copyright (c) 2003 - 2005 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: Exits the application when activated |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GS_SIP_APP_SHUTTER_H |
|
21 #define GS_SIP_APP_SHUTTER_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 class CGSPluginInterface; |
|
30 |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * CGSSIPAppShutter class |
|
36 * @since 3.0 |
|
37 * Exits the General Settings application once activated |
|
38 */ |
|
39 class CGSSIPAppShutter : public CActive |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @param aAppUi pointer to appui |
|
46 */ |
|
47 static CGSSIPAppShutter* NewL( CGSPluginInterface* aAppUi ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 virtual ~CGSSIPAppShutter(); |
|
53 |
|
54 public: // New methods |
|
55 |
|
56 /** |
|
57 * Activates this active object |
|
58 */ |
|
59 void RequestAppShutdown(); |
|
60 |
|
61 protected: // Functions from base classes |
|
62 |
|
63 /** |
|
64 * From CActive does the required cancellation operations (nothing) |
|
65 */ |
|
66 void DoCancel(); |
|
67 |
|
68 /** |
|
69 * From CActive a request completion event occurs |
|
70 */ |
|
71 void RunL(); |
|
72 |
|
73 private: |
|
74 |
|
75 /** |
|
76 * C++ default constructor. |
|
77 * @param aAppUi pointer to appui |
|
78 */ |
|
79 CGSSIPAppShutter( CGSPluginInterface* aAppUi ); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 */ |
|
84 void ConstructL(); |
|
85 |
|
86 private: // Data |
|
87 |
|
88 CGSPluginInterface* iAppUi; |
|
89 }; |
|
90 |
|
91 #endif // GS_SIP_APP_SHUTTER_H |
|
92 |
|
93 // End of File |