|
1 /* |
|
2 * Copyright (c) 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: alfperfappdaemon application header. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_ALFPERFAPPDAEMON_H |
|
20 #define C_ALFPERFAPPDAEMON_H |
|
21 |
|
22 #include <e32std.h> |
|
23 #include <e32base.h> |
|
24 #include <aknapp.h> |
|
25 #include <akndoc.h> |
|
26 #include <aknappui.h> |
|
27 #include <aknserverapp.h> |
|
28 #include "alfperfapp.hrh" |
|
29 |
|
30 class CEikAppUi; |
|
31 class CAlfDebugExtension; |
|
32 class CAlfDebugFactory; |
|
33 class CAlfDebugExtension; |
|
34 |
|
35 /** |
|
36 * UID of this application. |
|
37 */ |
|
38 const TUid KAlfPerfAppDaemonUid = { KAlfPerfAppDaemonUidValue }; |
|
39 |
|
40 /** |
|
41 * CAlfPerfAppDaemonApplication application class. |
|
42 */ |
|
43 class CAlfPerfAppDaemonApplication : public CAknApplication |
|
44 { |
|
45 private: // from CApaApplication |
|
46 |
|
47 // From base class CAknApplication |
|
48 |
|
49 virtual CApaDocument* CreateDocumentL(); |
|
50 virtual TUid AppDllUid() const; |
|
51 virtual void NewAppServerL( CApaAppServer*& aAppServer ); |
|
52 }; |
|
53 |
|
54 /** |
|
55 * CAlfPerfAppDaemonDocument document class. |
|
56 */ |
|
57 class CAlfPerfAppDaemonDocument : public CAknDocument |
|
58 { |
|
59 public: |
|
60 CAlfPerfAppDaemonDocument( CEikApplication& aApp ); |
|
61 |
|
62 // From base class CAknDocument |
|
63 virtual CEikAppUi* CreateAppUiL(); |
|
64 virtual void UpdateTaskNameL(CApaWindowGroupName* aWgName); |
|
65 }; |
|
66 |
|
67 /** |
|
68 * CAlfPerfAppDaemonAppUi appui class. |
|
69 */ |
|
70 class CAlfPerfAppDaemonAppUi : public CAknAppUi |
|
71 { |
|
72 public: |
|
73 CAlfPerfAppDaemonAppUi(); |
|
74 ~CAlfPerfAppDaemonAppUi(); |
|
75 |
|
76 CAlfDebugExtension* Debug(); |
|
77 |
|
78 // From base class CAknViewAppUi |
|
79 |
|
80 virtual void ConstructL(); |
|
81 virtual void HandleCommandL( TInt aCommand ); |
|
82 |
|
83 private: |
|
84 RLibrary iLibrary; |
|
85 CAlfDebugFactory* iFactory; |
|
86 CAlfDebugExtension* iDebug; |
|
87 }; |
|
88 |
|
89 /** |
|
90 * CAlfPerfAppDaemonServer server class. |
|
91 */ |
|
92 class CAlfPerfAppDaemonServer : public CAknAppServer |
|
93 { |
|
94 public: |
|
95 CAlfPerfAppDaemonServer(); |
|
96 |
|
97 // From base class CAknAppServer |
|
98 |
|
99 virtual CApaAppServiceBase* CreateServiceL( TUid aServiceType ) const; |
|
100 }; |
|
101 |
|
102 /** |
|
103 * CAlfPerfAppDaemonService |
|
104 */ |
|
105 class CAlfPerfAppDaemonService : public CAknAppServiceBase |
|
106 { |
|
107 public: |
|
108 CAlfPerfAppDaemonService(); |
|
109 ~CAlfPerfAppDaemonService(); |
|
110 |
|
111 // From base class CAknAppServiceBase |
|
112 |
|
113 virtual void ServiceL( const RMessage2& aMessage ); |
|
114 |
|
115 private: |
|
116 |
|
117 /** |
|
118 * Call back function for activity polling. |
|
119 * @param aAny pointer to instance of this class. |
|
120 * @return always KErrNone. |
|
121 */ |
|
122 static TInt ActivityPollCallBack( TAny* aAny ); |
|
123 |
|
124 private: |
|
125 CPeriodic* iActivityPoll; |
|
126 }; |
|
127 |
|
128 #endif // C_ALFPERFAPPDAEMON_H |
|
129 |
|
130 // End of File |