|
1 /* |
|
2 * Copyright (c) 2002 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 * Logs Application class |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef __Logs_App_CLogsApplication_H__ |
|
21 #define __Logs_App_CLogsApplication_H__ |
|
22 |
|
23 #include <aknapp.h> |
|
24 |
|
25 |
|
26 // INCLUDES |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 |
|
38 // CLASS DECLARATION |
|
39 |
|
40 /** |
|
41 * Logs Application class. This class is created by the Symbian OS framework by a |
|
42 * call to NewApplication() function when the application is started. The main |
|
43 * purpose of the application class is to create the application-specific |
|
44 * document object (CLogsDocument in this case) via a call to virtual |
|
45 * CreateDocumentL(). |
|
46 * |
|
47 * @see NewApplication |
|
48 */ |
|
49 class CLogsApplication : public CAknApplication |
|
50 { |
|
51 public: // New functions |
|
52 // Default constructor and destructor are ok for this class. |
|
53 |
|
54 /** |
|
55 * Raises a panic (internal error) and terminates the program. |
|
56 * |
|
57 * @param aPanic panic code. This code will be reported to the user. |
|
58 * |
|
59 * @see CLogsApplication#TPanicCode |
|
60 */ |
|
61 static void Panic( TInt aPanic ); |
|
62 |
|
63 private: // from CApaApplication |
|
64 /** |
|
65 * Creates the Logs document object (CLogsDocument). Called by the application |
|
66 * framework. |
|
67 * |
|
68 * @return New Logs document object (CLogsDocument). |
|
69 * |
|
70 * @exception KErrNoMemory if out of memory. |
|
71 * @exception anything thrown by CLogsDocument construction. |
|
72 */ |
|
73 CApaDocument* CreateDocumentL(); |
|
74 |
|
75 public: // from CApaApplication |
|
76 /** |
|
77 * Returns the UID of this application. |
|
78 * Override from CApaApplication. |
|
79 */ |
|
80 TUid AppDllUid() const; |
|
81 }; |
|
82 |
|
83 #endif // __Logs_App_CLogsApplication_H__ |
|
84 |
|
85 // End of File |
|
86 |