|
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: Header file of CIAUpdateControllerFile class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef IA_UPDATE_CONTROLLER_FILE_H |
|
24 #define IA_UPDATE_CONTROLLER_FILE_H |
|
25 |
|
26 |
|
27 #include <e32std.h> |
|
28 #include <s32strm.h> |
|
29 #include <e32cmn.h> |
|
30 #include <f32file.h> |
|
31 #include <e32const.h> |
|
32 |
|
33 |
|
34 /** |
|
35 * |
|
36 */ |
|
37 class CIAUpdateControllerFile : public CBase |
|
38 { |
|
39 |
|
40 public: |
|
41 |
|
42 IMPORT_C static CIAUpdateControllerFile* NewL( const TDesC& aFile ); |
|
43 |
|
44 IMPORT_C static CIAUpdateControllerFile* NewLC( const TDesC& aFile ); |
|
45 |
|
46 |
|
47 IMPORT_C virtual ~CIAUpdateControllerFile(); |
|
48 |
|
49 |
|
50 IMPORT_C TBool ReadControllerDataL(); |
|
51 |
|
52 IMPORT_C void WriteControllerDataL(); |
|
53 |
|
54 |
|
55 IMPORT_C void SetCurrentData(); |
|
56 |
|
57 |
|
58 IMPORT_C const TTime& RefreshTime() const; |
|
59 |
|
60 IMPORT_C void SetRefreshTime( const TTime& aTime ); |
|
61 |
|
62 IMPORT_C void SetRefreshTime( TInt64 aTime ); |
|
63 |
|
64 IMPORT_C void SetCurrentRefreshTime(); |
|
65 |
|
66 |
|
67 IMPORT_C TLanguage Language() const; |
|
68 |
|
69 IMPORT_C void SetLanguage( TLanguage aLanguage ); |
|
70 |
|
71 IMPORT_C void SetCurrentLanguage(); |
|
72 |
|
73 |
|
74 private: |
|
75 |
|
76 // Prevent these if not implemented |
|
77 CIAUpdateControllerFile( const CIAUpdateControllerFile& aObject ); |
|
78 CIAUpdateControllerFile& operator =( const CIAUpdateControllerFile& aObject ); |
|
79 |
|
80 |
|
81 CIAUpdateControllerFile(); |
|
82 |
|
83 virtual void ConstructL( const TDesC& aFile ); |
|
84 |
|
85 |
|
86 void InternalizeL( RReadStream& aStream ); |
|
87 |
|
88 void ExternalizeL( RWriteStream& aStream ); |
|
89 |
|
90 |
|
91 private: // data |
|
92 |
|
93 // file server session |
|
94 RFs iFsSession; |
|
95 |
|
96 // controller data file path |
|
97 TFileName iPath; |
|
98 |
|
99 |
|
100 // Time when the content was refreshed. |
|
101 TTime iRefreshTime; |
|
102 |
|
103 // The language that has been used. |
|
104 TLanguage iLanguage; |
|
105 }; |
|
106 |
|
107 #endif // IA_UPDATE_CONTROLLER_FILE_H |
|
108 |