|
1 /* |
|
2 * Copyright (c) 2008-2010 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 the License "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 * Declares entry classes for Software Components Registry interface. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalComponent |
|
23 @released |
|
24 */ |
|
25 |
|
26 #ifndef SCRENTRIES_INTERNAL_H |
|
27 #define SCRENTRIES_INTERNAL_H |
|
28 |
|
29 #include <e32base.h> |
|
30 #include <s32strm.h> |
|
31 #include <f32file.h> |
|
32 #include <usif/usifcommon.h> |
|
33 #include <usif/scr/screntries.h> |
|
34 |
|
35 //class Usif::CLocalizableCommonData; |
|
36 //class Usif::CScrLogEntry; |
|
37 |
|
38 namespace Usif |
|
39 { |
|
40 class CLocalizableCommonData; |
|
41 NONSHARABLE_CLASS(CLocalizedSoftwareTypeName) : public CLocalizableCommonData |
|
42 /** |
|
43 This class contains localized software type names. |
|
44 Software type names are localizable names and transferred to the SCR |
|
45 with the objects of this class. |
|
46 |
|
47 @internalTechnology |
|
48 */ |
|
49 { |
|
50 public: |
|
51 /** |
|
52 Creates a localized software type name object. |
|
53 @param aName The name of the software type. |
|
54 @param aLocale The language code of the object's locale. |
|
55 @return A pointer to the newly allocated localized software type name object, if creation is successful. |
|
56 */ |
|
57 IMPORT_C static CLocalizedSoftwareTypeName* NewL(const TDesC& aName, TLanguage aLocale); |
|
58 |
|
59 /** |
|
60 Creates a localized software type name object. |
|
61 @param aName The name of the software type. |
|
62 @param aLocale The language code of the object's locale. |
|
63 @return A pointer to the newly allocated localized software type name object, if creation is successful. |
|
64 The pointer is also put onto the cleanup stack. |
|
65 */ |
|
66 IMPORT_C static CLocalizedSoftwareTypeName* NewLC(const TDesC& aName, TLanguage aLocale); |
|
67 |
|
68 /** |
|
69 Creates a localized software type name object from a stream. |
|
70 @param aStream The stream to read the localized software type name object from. |
|
71 @return A pointer to the newly allocated localized software type name object, if creation is successful. |
|
72 @internalComponent |
|
73 */ |
|
74 IMPORT_C static CLocalizedSoftwareTypeName* NewL(RReadStream& aStream); |
|
75 |
|
76 ~CLocalizedSoftwareTypeName(); |
|
77 |
|
78 /** |
|
79 Externalises a localized software type name object to a write stream. |
|
80 @param aStream The stream to which the object is externalised. |
|
81 @internalComponent |
|
82 */ |
|
83 IMPORT_C void ExternalizeL(RWriteStream& aStream) const; |
|
84 |
|
85 /** @return The localized software type name. */ |
|
86 IMPORT_C const TDesC& NameL() const; |
|
87 |
|
88 private: |
|
89 CLocalizedSoftwareTypeName(); |
|
90 CLocalizedSoftwareTypeName(TLanguage aLocale); |
|
91 void ConstructL(const TDesC& aName); |
|
92 void InternalizeL(RReadStream& aStream); |
|
93 |
|
94 private: |
|
95 HBufC* iName; ///< The localized software type name. |
|
96 }; |
|
97 |
|
98 } // End of namespace Usif |
|
99 |
|
100 #endif // SCRENTRIES_H |