author | Maciej Seroka <maciejs@symbian.org> |
Tue, 03 Aug 2010 14:51:01 +0100 | |
branch | Symbian3 |
changeset 58 | 7a02f8565ef5 |
parent 57 | b8d18c84f71c |
permissions | -rw-r--r-- |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1 |
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2 |
// All rights reserved. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
7 |
// |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
10 |
// |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
11 |
// Contributors: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
12 |
// |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
13 |
// Description: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
14 |
// |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
15 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
16 |
#ifndef __APGICNFL_PARTNER_H__ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
17 |
#define __APGICNFL_PARTNER_H__ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
18 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
19 |
#include <apadef.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
20 |
#include <apaid.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
21 |
/* |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
22 |
#include <bitdev.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
23 |
#include <apmstd.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
24 |
#include <badesca.h> |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
25 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
26 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
27 |
class CApaResourceFileWriterBase : public CBase |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
28 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
29 |
protected: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
30 |
class RBufferSink; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
31 |
class MDataSink |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
32 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
33 |
public: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
34 |
void WriteBufferL(const TDesC8& aBuffer); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
35 |
void WriteCompressedUnicodeRunL(TInt aNumberOfBytesWhenUncompressed, const TDesC8& aTextAsCompressedUnicode); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
36 |
void WriteInCompressedUnicodeFormatL(TInt aNumberOfBytesWhenUncompressed, const TDesC8& aData, TBool aInCompressedUnicodeRun); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
37 |
TInt NumberOfBytesWhenUncompressed() const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
38 |
inline TBool CompressedUnicodeFormat() const {return (iBufferSinkForCompressedUnicodeFormat!=NULL);} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
39 |
protected: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
40 |
MDataSink(RBufferSink* aBufferSinkForCompressedUnicodeFormat); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
41 |
void FlushL(TBool aFinalFlush); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
42 |
void Reset(TInt& aNumberOfBytesWhenUncompressed); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
43 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
44 |
void WriteRunLengthL(TInt aRunLength); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
45 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
46 |
enum |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
47 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
48 |
EFlag_InCompressedUnicodeRun =0x00000001 |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
49 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
50 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
51 |
// new virtual functions |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
52 |
virtual void DoWriteBufferL(const TDesC8& aBuffer)=0; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
53 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
54 |
TInt iNumberOfBytesWhenUncompressed; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
55 |
TUint iFlags; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
56 |
RBufferSink* iBufferSinkForCompressedUnicodeFormat; // does not own what it points to |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
57 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
58 |
class RBufferSink : public MDataSink |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
59 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
60 |
public: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
61 |
RBufferSink(RBufferSink* aBufferSinkForCompressedUnicodeFormat); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
62 |
void ConstructLC(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
63 |
void Close(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
64 |
void FlushAndGetAndResetL(TInt& aNumberOfBytesWhenUncompressed, RBuf8& aBuffer); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
65 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
66 |
// from MDataSink |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
67 |
virtual void DoWriteBufferL(const TDesC8& aBuffer); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
68 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
69 |
RBuf8 iBuffer; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
70 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
71 |
protected: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
72 |
CApaResourceFileWriterBase(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
73 |
void DoGenerateFileContentsL(RBuf8& aBuffer, TUid aUid2, TUid aUid3) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
74 |
void WriteUidTypeL(MDataSink& aDataSink, TUid aUid2, TUid aUid3) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
75 |
void WriteTextL(MDataSink& aDataSink, const TDesC& aText) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
76 |
void WriteText8L(MDataSink& aDataSink, const TDesC8& aText8) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
77 |
void WriteUint8L(MDataSink& aDataSink, TUint aUint8) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
78 |
void WriteLittleEndianUint16L(MDataSink& aDataSink, TUint aUint16) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
79 |
void WriteLittleEndianUint32L(MDataSink& aDataSink, TUint aUint32) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
80 |
void WriteBufferL(MDataSink& aDataSink, const TDesC8& aBuffer) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
81 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
82 |
static HBufC8* AsCompressedUnicodeLC(const TDesC& aUncompressedUnicode); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
83 |
void MainResourceInCompiledFormatLC(TInt& aMainResourceSizeInBytesWhenUncompressed, RBuf8& aBuffer, TBool aCompressedUnicodeFormat) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
84 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
85 |
// new virtual functions |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
86 |
virtual void MainResourceInCompiledFormatL(MDataSink& aDataSink) const=0; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
87 |
virtual const TDesC8* SecondResourceL(TBool& aSecondResourceInCompressedUnicodeFormat) const=0; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
88 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
89 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
90 |
/** |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
91 |
Used to support the registration of non-native applications. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
92 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
93 |
The task of this class is to generate the resource files expected by the Apparc server. Applications |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
94 |
that register other applications can use functions of this class to customise the generated resource files. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
95 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
96 |
@publishedPartner |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
97 |
@released |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
98 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
99 |
class CApaRegistrationResourceFileWriter : public CApaResourceFileWriterBase |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
100 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
101 |
public: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
102 |
IMPORT_C static CApaRegistrationResourceFileWriter* NewL(TUid aAppUid, const TDesC& aAppFile, TUint aAttributes); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
103 |
IMPORT_C virtual ~CApaRegistrationResourceFileWriter(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
104 |
TUid AppUid() const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
105 |
void GenerateFileContentsL(RBuf8& aBuffer) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
106 |
void SetLocalisableResourceFileL(const TDesC& aLocalisableResourceFile); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
107 |
IMPORT_C void SetAppIsHiddenL(TBool aAppIsHidden); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
108 |
IMPORT_C void SetEmbeddabilityL(TApaAppCapability::TEmbeddability aEmbeddability); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
109 |
IMPORT_C void SetSupportsNewFileL(TBool aSupportsNewFile); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
110 |
IMPORT_C void SetLaunchInBackgroundL(TBool aLaunchInBackground); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
111 |
IMPORT_C void SetGroupNameL(const TDesC& aGroupName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
112 |
IMPORT_C void SetDefaultScreenNumberL(TInt aDefaultScreenNumber); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
113 |
IMPORT_C void SetOpaqueDataL(const TDesC8& aOpaqueData); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
114 |
IMPORT_C void AddDataTypeL(TInt aPriority, const TDesC8& aType); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
115 |
IMPORT_C void AddFileOwnershipInfoL(const TDesC& aFileName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
116 |
// Not needing to be supported for the foreseeable future: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
117 |
// IMPORT_C void AddServiceInfoL(TUid aServiceUid, const TDesC8* aOpaqueData); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
118 |
// IMPORT_C void AddServiceInfoDataTypeL(TUid aServiceUid, TInt aPriority, const TDesC8& aType); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
119 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
120 |
struct SDataType // DATATYPE |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
121 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
122 |
TInt iPriority; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
123 |
HBufC8* iType; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
124 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
125 |
struct SFileOwnershipInfo // FILE_OWNERSHIP_INFO |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
126 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
127 |
HBufC* iFileName; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
128 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
129 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
130 |
CApaRegistrationResourceFileWriter(TUid aAppUid, TUint aAttributes); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
131 |
void ConstructL(const TDesC& aAppFile); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
132 |
void WriteDataTypeL(MDataSink& aDataSink, const SDataType& aDataType) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
133 |
void WriteFileOwnershipInfoL(MDataSink& aDataSink, const SFileOwnershipInfo& aFileOwnershipInfo) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
134 |
// from CApaResourceFileWriterBase |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
135 |
virtual void MainResourceInCompiledFormatL(MDataSink& aDataSink) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
136 |
virtual const TDesC8* SecondResourceL(TBool& aSecondResourceInCompressedUnicodeFormat) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
137 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
138 |
TUid iAppUid; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
139 |
HBufC* iAppFile; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
140 |
TUint iAttributes; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
141 |
HBufC* iLocalisableResourceFile; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
142 |
TBool iAppIsHidden; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
143 |
TApaAppCapability::TEmbeddability iEmbeddability; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
144 |
TBool iSupportsNewFile; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
145 |
TBool iLaunchInBackground; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
146 |
HBufC* iGroupName; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
147 |
TInt iDefaultScreenNumber; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
148 |
HBufC8* iOpaqueData; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
149 |
RArray<SDataType> iDataTypeList; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
150 |
RArray<SFileOwnershipInfo> iFileOwnershipList; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
151 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
152 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
153 |
/** |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
154 |
@internalAll |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
155 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
156 |
class CApaLocalisableResourceFileWriter : public CApaResourceFileWriterBase |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
157 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
158 |
public: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
159 |
IMPORT_C static CApaLocalisableResourceFileWriter* NewL(const TDesC& aShortCaption, const TDesC& aCaption, TInt aNumberOfIcons, const TDesC& aGroupName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
160 |
IMPORT_C virtual ~CApaLocalisableResourceFileWriter(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
161 |
void GenerateFileContentsL(RBuf8& aBuffer) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
162 |
void SetIconFileL(const TDesC& aIconFile); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
163 |
// Not needing to be supported for the foreseeable future: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
164 |
// IMPORT_C void AddViewDataL(TUid aViewUid, TInt aScreenMode, const TDesC& aCaption, TInt aNumberOfIcons, const TDesC& aIconFile); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
165 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
166 |
struct SCaptionAndIconInfo // CAPTION_AND_ICON_INFO |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
167 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
168 |
HBufC* iCaption; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
169 |
TInt iNumberOfIcons; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
170 |
HBufC* iIconFile; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
171 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
172 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
173 |
CApaLocalisableResourceFileWriter(TInt aNumberOfIcons); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
174 |
void ConstructL(const TDesC& aShortCaption, const TDesC& aCaption, const TDesC& aGroupName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
175 |
void WriteCaptionAndIconInfoL(MDataSink& aDataSink, const SCaptionAndIconInfo& aCaptionAndIcon) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
176 |
// from CApaResourceFileWriterBase |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
177 |
virtual void MainResourceInCompiledFormatL(MDataSink& aDataSink) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
178 |
virtual const TDesC8* SecondResourceL(TBool& aSecondResourceInCompressedUnicodeFormat) const; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
179 |
private: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
180 |
HBufC* iShortCaption; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
181 |
SCaptionAndIconInfo iCaptionAndIcon; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
182 |
HBufC* iGroupName; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
183 |
}; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
184 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
185 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
186 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
187 |
#endif |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
188 |