|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __CHEADERCODEPAGE_H__ |
|
17 #define __CHEADERCODEPAGE_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 /** The CHeaderCodePage class represents the Header Code Page capability as |
|
22 defined by the WSP Specification, July 2001. |
|
23 */ |
|
24 //##ModelId=3C4C41B300FC |
|
25 class CHeaderCodePage : public CBase |
|
26 { |
|
27 public: // Methods |
|
28 |
|
29 /** |
|
30 Static factory constructor. |
|
31 @since 7.0 |
|
32 @param aPageCode The page code assigned to the header code page. |
|
33 @param aPageName A reference to a buffer containing the header |
|
34 code page name. |
|
35 */ |
|
36 //##ModelId=3C4C41B30143 |
|
37 static CHeaderCodePage* NewL(TUint8 aPageCode, const TDesC8& aPageName); |
|
38 |
|
39 /** |
|
40 Standard destructor |
|
41 @since 7.0 |
|
42 */ |
|
43 //##ModelId=3C4C41B30142 |
|
44 ~CHeaderCodePage(); |
|
45 |
|
46 /** |
|
47 Returns the page code assigned to the header code page. |
|
48 @since 7.0 |
|
49 @return The page code assigned to the header code page. |
|
50 */ |
|
51 //##ModelId=3C4C41B3013A |
|
52 inline TUint8 GetPageCode() const; |
|
53 |
|
54 /** |
|
55 Returns the header code page name. |
|
56 @since 7.0 |
|
57 @return A const reference to a buffer containing the header code page name. |
|
58 */ |
|
59 //##ModelId=3C4C41B30139 |
|
60 inline const TDesC8& GetPageName() const; |
|
61 |
|
62 private: // Methods |
|
63 |
|
64 /** |
|
65 First phase constructor |
|
66 @since 7.0 |
|
67 @param aPageCode The page code assigned to the header code page. |
|
68 */ |
|
69 //##ModelId=3C4C41B30130 |
|
70 CHeaderCodePage(TUint8 aPageCode); |
|
71 |
|
72 /** |
|
73 Second phase constructor. Does any necessary allocations |
|
74 @since 7.0 |
|
75 @param aPageName A reference to a buffer containing the header |
|
76 code page name. |
|
77 */ |
|
78 //##ModelId=3C4C41B3012E |
|
79 void ConstructL(const TDesC8& aPageName); |
|
80 |
|
81 private: // Attributes |
|
82 |
|
83 /** The page code assigned to the header code page specified by iName. |
|
84 */ |
|
85 //##ModelId=3C4C41B30126 |
|
86 TUint8 iCode; |
|
87 |
|
88 /** A buffer containing the header code page name. |
|
89 */ |
|
90 //##ModelId=3C4C41B3011A |
|
91 HBufC8* iName; |
|
92 |
|
93 }; |
|
94 |
|
95 #include "CHeaderCodePage.inl" |
|
96 |
|
97 #endif // __CHEADERCODEPAGE_H__ |