1 /* |
|
2 * Copyright (c) 2006-2007 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef IRDOCUMENT_H |
|
19 #define IRDOCUMENT_H |
|
20 |
|
21 |
|
22 #include <akndoc.h> |
|
23 |
|
24 class CEikApplication; |
|
25 class CPeriodic; |
|
26 |
|
27 //========================================class declaration CIRDocument============================================ |
|
28 |
|
29 /** |
|
30 * This class creates the document class |
|
31 * This class creates the IRUi class. |
|
32 * @code |
|
33 * CIRDocument* self = new (ELeave) CIRDocument(aApp) creates the document class. |
|
34 * appui->ParsePlsDataL(aFileStore,aFile) //parses the pls data. |
|
35 * @endcode |
|
36 * |
|
37 */ |
|
38 |
|
39 class CIRDocument : public CAknDocument |
|
40 { |
|
41 public: |
|
42 |
|
43 /** |
|
44 * Function : NewL |
|
45 * function to return an instance of CIRDocument |
|
46 * Two phase constructor |
|
47 */ |
|
48 static CIRDocument* NewL(CEikApplication& aApp); |
|
49 |
|
50 /** |
|
51 * Function : ConstructL() |
|
52 * Two phase constructor |
|
53 */ |
|
54 void ConstructL(); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 ~CIRDocument(); |
|
60 |
|
61 /** |
|
62 * Function : OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs). |
|
63 * @param aDoOpen,to check whether DB is already open or not. |
|
64 * @param aFilename,filename. |
|
65 * @param aFs,Handle to Filesession. |
|
66 */ |
|
67 CFileStore* OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs); |
|
68 |
|
69 /** |
|
70 * Function : OpenFileL(TBool aDoOpen,const TDesC& aFilename,RFs& aFs). |
|
71 * @param aFilename,filename. |
|
72 * @param aFile,RFile instance. |
|
73 */ |
|
74 void OpenFileL(CFileStore*& aFileStore, RFile& aFile); |
|
75 |
|
76 protected: |
|
77 |
|
78 // from CEikDocument |
|
79 void UpdateTaskNameL(CApaWindowGroupName* aWgName); |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * CIRDocument. |
|
85 * C++ default constructor. |
|
86 * @param instance of CEikApplication. |
|
87 **/ |
|
88 CIRDocument(CEikApplication& aApp); |
|
89 |
|
90 /** |
|
91 * CreateAppUiL. |
|
92 * creates UI's instance.. |
|
93 * @return CEikAppUi,instance of CEikApplication. |
|
94 **/ |
|
95 CEikAppUi* CreateAppUiL(); |
|
96 |
|
97 /** |
|
98 * Callback for memory check timer. |
|
99 * |
|
100 * @param aSelf pointer to CIRDocument instance. |
|
101 * @return Always KErrNone |
|
102 */ |
|
103 static TInt MemCheckTimerCallback(TAny* aSelf); |
|
104 |
|
105 private: |
|
106 |
|
107 // Memory check timer. |
|
108 CPeriodic* iMemCheckTimer; |
|
109 }; |
|
110 |
|
111 |
|
112 #endif // IR_DOCUMENT_H |
|