|
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: Active implementation of res.file& bitmaps changing feature. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CCAOPBRANDVARIANT20_H |
|
21 #define CCAOPBRANDVARIANT20_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "MCAOpBrandVariant.h" |
|
25 |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CAlternator; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Active implementation of res.file& bitmaps changing feature. |
|
34 * See base class MCAOpBrandVariant.h for method comments. |
|
35 * |
|
36 * @lib chat.app |
|
37 * @since 1.2s |
|
38 */ |
|
39 class CCAOpBrandVariant20 : public CBase, public MCAOpBrandVariant |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 */ |
|
46 static CCAOpBrandVariant20* NewL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CCAOpBrandVariant20(); |
|
52 |
|
53 |
|
54 public: // Functions from base classes |
|
55 |
|
56 /** |
|
57 * Methods implemented from MCAOpBrandVariant. |
|
58 * See MCAOpBrandVariant.h for method comments. |
|
59 * @since 1.2s |
|
60 */ |
|
61 void RemoveAppResourceL( CCoeEnv* aCoeEnv, TInt& aAppResFileOffset ); |
|
62 void RetrieveSavedSettingsL( CCoeEnv* aCoeEnv, const TDesC& aOrigAppResPath, |
|
63 const TDesC& aOrigEngResPath, |
|
64 const TDesC& aOrigCommUiResPath, |
|
65 TDes& aBitmapPath ); |
|
66 void ActivateBrandL( const TDesC& aServer, TDes& aBitmapPath ); |
|
67 void DeleteResource( CCoeEnv* aCoeEnv ); |
|
68 TBool BrandBitmapsActivated() const; |
|
69 // not implemented in 2.0 |
|
70 void CurrentResourceFileL( const TDesC& aServer, const TDesC& aResourceFile, TDes& aFullPath ); |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 */ |
|
77 CCAOpBrandVariant20(); |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 |
|
85 private: // Data |
|
86 |
|
87 // application resource file offset |
|
88 TInt iAppResFileOffset; |
|
89 // app eng's resource file offset |
|
90 TInt iEngResFileOffset; |
|
91 // common ui's resource file offset |
|
92 TInt iCommUiResFileOffset; |
|
93 // original application resource file path |
|
94 TFileName iOrigAppResource; |
|
95 // original engine resource file path |
|
96 TFileName iOrigEngResource; |
|
97 // original common ui resource file path |
|
98 TFileName iOrigCommUiResource; |
|
99 // original application bitmap path |
|
100 TFileName iOrigBitmapPath; |
|
101 // interface to alternator.dll |
|
102 CAlternator* iAlternator; |
|
103 // control environment |
|
104 CCoeEnv* iCoeEnv; |
|
105 HBufC* iServerName; |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // CCAOPBRANDVARIANT20_H |
|
110 |
|
111 // End of File |