author | Maciej Seroka <maciejs@symbian.org> |
Tue, 03 Aug 2010 10:20:34 +0100 | |
branch | Symbian3 |
changeset 57 | b8d18c84f71c |
parent 6 | c108117318cb |
permissions | -rw-r--r-- |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1 |
// Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2 |
// All rights reserved. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
6 | 6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
7 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
10 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
11 |
// Contributors: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
12 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
13 |
// Description: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
14 |
// AppArc server session |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
15 |
// |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
16 |
// apsses.cpp |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
17 |
// |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
18 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
19 |
#include <e32svr.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
20 |
#include <apacmdln.h> |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
21 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
22 |
#include <apaflrec.h> |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
23 |
#include "apsserv.h" |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
24 |
#include "APSSES.H" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
25 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
26 |
#include "APSSTD.H" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
27 |
#endif //_DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
28 |
#include "APSCLSV.H" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
29 |
#include <apsscan.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
30 |
#include <apgaplst.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
31 |
#include <apgicnfl.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
32 |
#include <apmrec.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
33 |
#include <apmstd.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
34 |
#include <apmfndr.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
35 |
#include <datastor.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
36 |
#include <s32mem.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
37 |
#include <s32strm.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
38 |
#include <s32file.h> |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
39 |
#include "../apgrfx/apprivate.h" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
40 |
#include "apgnotif.h" |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
41 |
#include "../aplist/aplappregfinder.h" |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
42 |
#include "ApLaunchChecker.h" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
43 |
#include "apsnnapps.h" |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
44 |
#include "../aplist/aplapplistitem.h" |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
45 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
46 |
#include "apsecutils.h" |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
47 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
48 |
const TInt KApaAppListServMaxBuffer=256; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
49 |
#include "APSRECCACHE.h" |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
50 |
const TInt KApaAppInfoArrayGranularity = 4; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
51 |
const TInt KApaAppInfoDesMaxLength = sizeof(TApaAppInfo); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
52 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
53 |
#if defined(__PROFILE) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
54 |
_LIT(KProfileAppForDocumentL, "AppForDocumentL - %d.%06d seconds"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
55 |
_LIT(KProfileAppForDocumentPassedByFileHandleL, "AppForDocumentPassedByFileHandleL - %d.%06d seconds"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
56 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
57 |
_LIT(KApaPanicCli,"APSERV-CLI"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
58 |
const TInt KFinishedScanning=-2; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
59 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
60 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
61 |
class MArrayItemWriter |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
62 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
63 |
public: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
64 |
virtual TInt ArrayItemCount() const=0; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
65 |
virtual TInt ArrayItemSize() const=0; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
66 |
virtual void WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const=0; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
67 |
}; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
68 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
69 |
NONSHARABLE_CLASS(TSizeArrayItemWriter) : public MArrayItemWriter |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
70 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
71 |
public: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
72 |
inline TSizeArrayItemWriter(const CArrayFix<TSize>& aArray) : iArray(aArray) {} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
73 |
public: // from MArrayItemWriter |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
74 |
TInt ArrayItemCount() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
75 |
TInt ArrayItemSize() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
76 |
void WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
77 |
private: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
78 |
const CArrayFix<TSize>& iArray; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
79 |
}; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
80 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
81 |
NONSHARABLE_CLASS(TViewDataArrayItemWriter) : public MArrayItemWriter |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
82 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
83 |
public: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
84 |
inline TViewDataArrayItemWriter(const CArrayPtr<CApaAppViewData>& aArray) : iArray(aArray) {} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
85 |
public: // from MArrayItemWriter |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
86 |
TInt ArrayItemCount() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
87 |
TInt ArrayItemSize() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
88 |
void WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
89 |
private: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
90 |
const CArrayPtr<CApaAppViewData>& iArray; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
91 |
}; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
92 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
93 |
NONSHARABLE_CLASS(TDesCArrayItemWriter) : public MArrayItemWriter |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
94 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
95 |
public: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
96 |
inline TDesCArrayItemWriter(const CDesCArray& aArray) : iArray(aArray) {} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
97 |
public: // from MArrayItemWriter |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
98 |
TInt ArrayItemCount() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
99 |
TInt ArrayItemSize() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
100 |
void WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
101 |
private: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
102 |
const CDesCArray& iArray; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
103 |
}; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
104 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
105 |
NONSHARABLE_CLASS(CApaAppListServSession::CApaAppInfo) : public CBase |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
106 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
107 |
public: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
108 |
CApaAppInfo(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
109 |
~CApaAppInfo(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
110 |
void SetUid(const TUid aUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
111 |
void SetCaptionL(const TDesC& aCaption); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
112 |
void SetShortCaptionL(const TDesC& aShortCaption); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
113 |
void SetFullNameL(const TDesC& aFullName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
114 |
inline TPtrC Caption() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
115 |
inline TPtrC ShortCaption() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
116 |
inline TPtrC FullName() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
117 |
inline TUid Uid() const; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
118 |
private: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
119 |
TUid iUid; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
120 |
HBufC* iCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
121 |
HBufC* iShortCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
122 |
HBufC* iFullName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
123 |
}; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
124 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
125 |
inline TPtrC CApaAppListServSession::CApaAppInfo::Caption() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
126 |
{ return *iCaption; } |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
127 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
128 |
inline TPtrC CApaAppListServSession::CApaAppInfo::ShortCaption() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
129 |
{ return *iShortCaption; } |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
130 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
131 |
inline TPtrC CApaAppListServSession::CApaAppInfo::FullName() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
132 |
{ return *iFullName; } |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
133 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
134 |
inline TUid CApaAppListServSession::CApaAppInfo::Uid() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
135 |
{ return iUid; } |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
136 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
137 |
// |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
138 |
// CApaAppListServSession |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
139 |
// |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
140 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
141 |
CApaAppListServSession* CApaAppListServSession::NewL(RFs& aFs, CApaAppArcServer& aAppArcSrv, CApaAppList& aAppList) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
142 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
143 |
CApaAppListServSession* self = new (ELeave) CApaAppListServSession(aFs, aAppArcSrv, aAppList); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
144 |
CleanupStack::PushL(self); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
145 |
self->ConstructL(); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
146 |
CleanupStack::Pop(self); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
147 |
return self; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
148 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
149 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
150 |
CApaAppListServSession::CApaAppListServSession(RFs& aFs, CApaAppArcServer& aAppArcSrv, CApaAppList& aAppList) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
151 |
: iFs(aFs), iAppArcSrv(aAppArcSrv), iAppList(aAppList), iApaAppInfoArray(KApaAppInfoArrayGranularity) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
152 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
153 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
154 |
} |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
155 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
156 |
void CApaAppListServSession::ConstructL() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
157 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
158 |
iNonNativeApplicationsManager = CApsNonNativeApplicationsManager::NewL(iAppArcSrv,iFs); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
159 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
160 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
161 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
162 |
CApaAppListServSession::~CApaAppListServSession() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
163 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
164 |
delete iNonNativeApplicationsManager; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
165 |
iApaAppInfoArray.ResetAndDestroy(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
166 |
iApaAppInfoArray.Close(); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
167 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
168 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
169 |
CApaAppList& CApaAppListServSession::AppList() |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
170 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
171 |
return iAppList; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
172 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
173 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
174 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
175 |
void CApaAppListServSession::DoServiceL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
176 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
177 |
TBool completeMessage = ETrue; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
178 |
const TInt opcode = aMessage.Function(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
179 |
switch (opcode) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
180 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
181 |
case ESetNotify: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
182 |
SetNotify(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
183 |
completeMessage=EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
184 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
185 |
case ERegisterListPopulationCompleteObserver: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
186 |
RegisterListPopulationCompleteObserver(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
187 |
completeMessage=EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
188 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
189 |
case ECancelListPopulationCompleteObserver: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
190 |
CancelListPopulationCompleteObserver(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
191 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
192 |
case EAppListServInitFullList: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
193 |
User::Leave(KErrNotSupported); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
194 |
case EAppListServInitEmbedList: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
195 |
User::Leave(KErrNotSupported); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
196 |
case EAppListServInitFilteredEmbedList: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
197 |
InitListL(aMessage,EListFilteredEmbeddedApps); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
198 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
199 |
case EAppListServInitAttrFilteredList: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
200 |
InitListL(aMessage,EListCapabilityAttrFilteredApps); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
201 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
202 |
case EAppListServInitServerAppList: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
203 |
InitListL(aMessage,EListServerApps); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
204 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
205 |
case EAppListServGetNextApp: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
206 |
GetNextAppL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
207 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
208 |
case EAppListServEmbedCount: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
209 |
EmbedCount(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
210 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
211 |
case EAppListServAppCount: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
212 |
AppCount(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
213 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
214 |
case EAppListServGetAppInfo: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
215 |
GetAppInfoL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
216 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
217 |
case EAppListServGetAppCapability: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
218 |
GetAppCapabilityL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
219 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
220 |
case EAppListServGetDefaultScreenNumber: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
221 |
GetDefaultScreenNumberL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
222 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
223 |
case EAppListServAppIconByUid: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
224 |
IconForAppL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
225 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
226 |
case ECancelNotify: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
227 |
CancelNotify(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
228 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
229 |
case EAppListServAppIconByUidAndSize: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
230 |
IconForAppBySizeL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
231 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
232 |
case EAppListServAppIconFileHandle: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
233 |
IconFileHandleForAppL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
234 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
235 |
case EAppListServGetAppIconSizes: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
236 |
AppIconSizesL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
237 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
238 |
case EAppListServViewIconByUidAndSize: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
239 |
IconForViewBySizeL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
240 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
241 |
case EAppListServGetAppViews: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
242 |
AppViewsL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
243 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
244 |
case EAppListServGetFileOwnershipInfo: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
245 |
AppFileOwnershipInfoL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
246 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
247 |
case EAppListServNumberOfOwnDefinedIcons: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
248 |
NumberOfOwnDefinedIconsL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
249 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
250 |
case EAppListServApplicationLanguage: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
251 |
ApplicationLanguageL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
252 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
253 |
case EAppListServAppInfoProvidedByRegistrationFile: // private OpCode for CEikApplication's use only |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
254 |
AppInfoProvidedByRegistrationFileL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
255 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
256 |
case EAppListServAppIconFileName: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
257 |
IconFileNameL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
258 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
259 |
case EAppListServAppViewIconFileName: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
260 |
ViewIconFileNameL(aMessage); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
261 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
262 |
case EAppListServPrepareNonNativeApplicationsUpdates: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
263 |
iNonNativeApplicationsManager->PrepareNonNativeApplicationsUpdatesL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
264 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
265 |
case EAppListServRegisterNonNativeApplication: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
266 |
iNonNativeApplicationsManager->RegisterNonNativeApplicationL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
267 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
268 |
case EAppListServDeregisterNonNativeApplication: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
269 |
iNonNativeApplicationsManager->DeregisterNonNativeApplicationL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
270 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
271 |
case EAppListServCommitNonNativeApplications: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
272 |
iNonNativeApplicationsManager->CommitNonNativeApplicationsUpdatesL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
273 |
completeMessage=EFalse; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
274 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
275 |
case EAppListServRollbackNonNativeApplications: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
276 |
iNonNativeApplicationsManager->RollbackNonNativeApplicationsUpdates(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
277 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
278 |
case EAppListServGetAppType: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
279 |
GetAppTypeL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
280 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
281 |
case EAppListServForceRegistration: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
282 |
ForceRegistrationL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
283 |
completeMessage=EFalse; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
284 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
285 |
case EMatchesSecurityPolicy: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
286 |
MatchesSecurityPolicyL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
287 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
288 |
case EAppListServSetAppShortCaption: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
289 |
SetAppShortCaptionL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
290 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
291 |
case EDebugClearAppInfoArray: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
292 |
#ifdef _DEBUG |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
293 |
iApaAppInfoArray.ResetAndDestroy(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
294 |
iApaAppInfoArray.Compress(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
295 |
#endif |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
296 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
297 |
case EDebugAddFailingNonNativeApplicationsUpdate: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
298 |
#ifdef _DEBUG |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
299 |
iNonNativeApplicationsManager->ForceFailInNonNativeApplicationsUpdatesL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
300 |
#endif |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
301 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
302 |
case EDebugAddPanicingNonNativeApplicationsUpdate: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
303 |
#ifdef _DEBUG |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
304 |
iNonNativeApplicationsManager->ForcePanicInNonNativeApplicationsUpdatesL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
305 |
#endif |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
306 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
307 |
case EDebugAddRollbackPanicingNonNativeApplicationsUpdate: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
308 |
#ifdef _DEBUG |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
309 |
iNonNativeApplicationsManager->ForcePanicInNonNativeApplicationsRollbackL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
310 |
#endif |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
311 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
312 |
default: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
313 |
aMessage.Panic(KApaPanicCli,EClientBadRequest); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
314 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
315 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
316 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
317 |
if (completeMessage && !aMessage.IsNull()) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
318 |
aMessage.Complete(KErrNone); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
319 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
320 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
321 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
322 |
// CApaAppArcServSession |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
323 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
324 |
CApaAppArcServSession* CApaAppArcServSession::NewL(CApaAppArcServer& aServer, RFs& aFs) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
325 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
326 |
CApaAppArcServSession* self=new(ELeave) CApaAppArcServSession(aServer, aFs); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
327 |
CleanupStack::PushL(self); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
328 |
self->ConstructL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
329 |
CleanupStack::Pop(); // self |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
330 |
return self; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
331 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
332 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
333 |
CApaAppArcServSession::CApaAppArcServSession(CApaAppArcServer& aServer, RFs& aFs) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
334 |
: CSession2(), |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
335 |
iServ(aServer), |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
336 |
iFs(aFs), |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
337 |
iMaxBufSize(KApaAppListServMaxBuffer), |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
338 |
iOpaqueData_pendingDispatchToClient(NULL) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
339 |
{} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
340 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
341 |
void CApaAppArcServSession::ConstructL() |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
342 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
343 |
iAppListSession = CApaAppListServSession::NewL(iFs, iServ, iServ.AppList()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
344 |
iFileRecognitionUtility = new (ELeave) CFileRecognitionUtility(iServ, iMaxBufSize, iFs); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
345 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
346 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
347 |
CApaAppArcServSession::~CApaAppArcServSession() |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
348 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
349 |
delete iAppListSession; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
350 |
delete iBuffer; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
351 |
delete iFileRecognitionUtility; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
352 |
delete iRecognitionResult; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
353 |
delete iOpaqueData_pendingDispatchToClient; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
354 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
355 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
356 |
void CApaAppArcServSession::ServiceL(const RMessage2& aMessage) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
357 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
358 |
TBool completeMessage = ETrue; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
359 |
switch (aMessage.Function()) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
360 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
361 |
case EAppListServStartAppWithoutReturningThreadId: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
362 |
ASSERT(0); // panic debug only |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
363 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
364 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
365 |
case EAppListServStartAppReturningThreadId: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
366 |
ASSERT(0); // panic debug only |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
367 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
368 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
369 |
case EAppListServRecognizeData: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
370 |
RecognizeDataL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
371 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
372 |
case EAppListServRecognizeDataPassedByFileHandle: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
373 |
RecognizeDataPassedByFileHandleL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
374 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
375 |
case EAppListServRecognizeSpecificData: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
376 |
RecognizeSpecificDataL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
377 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
378 |
case EAppListServRecognizeSpecificDataPassedByFileHandle: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
379 |
RecognizeSpecificDataPassedByFileHandleL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
380 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
381 |
case EAppListServAppForDataType: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
382 |
AppForDataTypeL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
383 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
384 |
case EAppListServStartDocument: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
385 |
ASSERT(0); // panic debug only |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
386 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
387 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
388 |
case EAppListServStartDocumentByDataType: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
389 |
ASSERT(0); // panic debug only |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
390 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
391 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
392 |
case EAppListServStartDocumentByUid: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
393 |
ASSERT(0); // panic debug only |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
394 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
395 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
396 |
case EAppListServCreateDocumentByUid: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
397 |
ASSERT(0); // panic debug only |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
398 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
399 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
400 |
case EAppListServGetExecutableNameGivenDocument: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
401 |
GetExecutableNameGivenDocumentL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
402 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
403 |
case EAppListServGetExecutableNameGivenDocumentPassedByFileHandle: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
404 |
GetExecutableNameGivenDocumentPassedByFileHandleL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
405 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
406 |
case EAppListServGetExecutableNameGivenDataType: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
407 |
GetExecutableNameGivenDataTypeL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
408 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
409 |
case EAppListServGetExecutableNameGivenAppUid: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
410 |
GetExecutableNameGivenAppUidL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
411 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
412 |
case EAppListServGetOpaqueData: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
413 |
GetOpaqueDataL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
414 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
415 |
case EAppListServGetNativeExecutableNameIfNonNative: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
416 |
GetNativeExecutableNameIfNonNativeL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
417 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
418 |
case EAppListServAppForDocument: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
419 |
AppForDocumentL(aMessage, NULL); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
420 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
421 |
case EAppListServAppForDocumentPassedByFileHandle: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
422 |
AppForDocumentPassedByFileHandleL(aMessage, NULL); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
423 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
424 |
case EAppListServGetConfidence: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
425 |
GetConfidenceL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
426 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
427 |
case EAppListServSetConfidence: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
428 |
SetConfidence(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
429 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
430 |
case EAppListServGetBufSize: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
431 |
GetBufSize(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
432 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
433 |
case EAppListServSetBufSize: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
434 |
SetBufSize(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
435 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
436 |
case EAppListServGetDataTypesPhase1: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
437 |
GetDataTypesCountL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
438 |
break; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
439 |
case EAppListServGetDataTypesPhase2: |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
440 |
GetDataTypesL(aMessage); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
441 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
442 |
case EAppListInsertDataMapping: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
443 |
case EAppListInsertDataMappingIfHigher: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
444 |
InsertDataMappingL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
445 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
446 |
case EAppListDeleteDataMapping: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
447 |
DeleteDataMappingL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
448 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
449 |
case EAppListServGetAppByDataType: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
450 |
GetAppByDataTypeL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
451 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
452 |
case EAppListServGetAppServices: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
453 |
case EAppListServGetServiceImplementations: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
454 |
case EAppListServGetServiceImplementationsDataType: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
455 |
case EAppListServGetAppServiceUids: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
456 |
case EAppListServGetAppServiceOpaqueData: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
457 |
GetAppServicesL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
458 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
459 |
case EAppListServAppForDataTypeAndService: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
460 |
AppForDataTypeAndServiceL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
461 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
462 |
case EAppListServAppForDocumentAndService: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
463 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
464 |
const TUid serviceUid=TUid::Uid(aMessage.Int1()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
465 |
AppForDocumentL(aMessage, &serviceUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
466 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
467 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
468 |
case EAppListServAppForDocumentAndServicePassedByFileHandle: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
469 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
470 |
const TUid serviceUid(TUid::Uid(aMessage.Int1())); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
471 |
AppForDocumentPassedByFileHandleL(aMessage, &serviceUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
472 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
473 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
474 |
case EAppListServRegisterNonNativeApplicationType: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
475 |
RegisterNonNativeApplicationTypeL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
476 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
477 |
case EAppListServDeregisterNonNativeApplicationType: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
478 |
DeregisterNonNativeApplicationTypeL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
479 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
480 |
case EAppListServPreferredBufSize: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
481 |
aMessage.Complete(PreferredBufSize()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
482 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
483 |
case EAppListServRecognizeFiles: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
484 |
RecognizeFilesL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
485 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
486 |
case EAppListServTransferRecognitionResult: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
487 |
TransferRecognitionResultL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
488 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
489 |
case EAppListServRecognizeFilesAsync: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
490 |
RecognizeFilesAsyncL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
491 |
completeMessage=EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
492 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
493 |
case ECancelRecognizeFiles: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
494 |
CancelRecognizeFiles(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
495 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
496 |
case EAppListServRuleBasedLaunching: |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
497 |
AquirePermissionToLaunchAppL(aMessage); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
498 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
499 |
case ENotifyOnDataMappingChange: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
500 |
NotifyOnDataMappingChange(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
501 |
completeMessage=EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
502 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
503 |
case ECancelNotifyOnDataMappingChange: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
504 |
CancelNotifyOnDataMappingChange(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
505 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
506 |
case EDebugHeapMark: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
507 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
508 |
__UHEAP_MARK; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
509 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
510 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
511 |
case EDebugHeapMarkEnd: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
512 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
513 |
__UHEAP_MARKENDC(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
514 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
515 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
516 |
case EDebugHeapFailNext: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
517 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
518 |
__UHEAP_FAILNEXT(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
519 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
520 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
521 |
case EDebugFlushRecognitionCache: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
522 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
523 |
iServ.FlushRecognitionCache(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
524 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
525 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
526 |
case EDebugSetLoadRecognizersOnDemand: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
527 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
528 |
iServ.SetLoadRecognizersOnDemandL(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
529 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
530 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
531 |
case EDebugPerformOutstandingRecognizerUnloading: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
532 |
#ifdef _DEBUG |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
533 |
iServ.PerformOutstandingRecognizerUnloading(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
534 |
REComSession::FinalClose(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
535 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
536 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
537 |
default: |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
538 |
iAppListSession->DoServiceL(aMessage); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
539 |
return; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
540 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
541 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
542 |
if (completeMessage && !aMessage.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
543 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
544 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
545 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
546 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
547 |
void CApaAppArcServSession::NotifyOnDataMappingChange(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
548 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
549 |
if (!iMessage_NotifyOnDataMappingChange.IsNull()) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
550 |
aMessage.Panic(KApaPanicCli,ENotifyOnDataMappingChangeRequestOutstanding); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
551 |
else |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
552 |
iMessage_NotifyOnDataMappingChange=aMessage; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
553 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
554 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
555 |
void CApaAppArcServSession::CancelNotifyOnDataMappingChange() |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
556 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
557 |
if (!iMessage_NotifyOnDataMappingChange.IsNull()) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
558 |
iMessage_NotifyOnDataMappingChange.Complete(KErrCancel); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
559 |
} //lint !e1762 Suppress member function could be made const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
560 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
561 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
562 |
TInt CApaAppArcServSession::PreferredBufSize() const |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
563 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
564 |
TInt preferredBufferSize = 0; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
565 |
TRAPD(err, preferredBufferSize = iServ.DataRecognizerPreferredBufSizeL()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
566 |
return (err==KErrNone) ? Min(iMaxBufSize, preferredBufferSize) : iMaxBufSize; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
567 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
568 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
569 |
void CApaAppArcServSession::RegisterNonNativeApplicationTypeL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
570 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
571 |
const TUid applicationType(TUid::Uid(aMessage.Int0())); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
572 |
HBufC* const nativeExecutable=HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(1))); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
573 |
{TPtr nativeExecutable_asWritable(nativeExecutable->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
574 |
aMessage.ReadL(1, nativeExecutable_asWritable);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
575 |
iServ.RegisterNonNativeApplicationTypeL(applicationType, *nativeExecutable); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
576 |
CleanupStack::PopAndDestroy(nativeExecutable); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
577 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
578 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
579 |
void CApaAppArcServSession::DeregisterNonNativeApplicationTypeL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
580 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
581 |
const TUid applicationType(TUid::Uid(aMessage.Int0())); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
582 |
iServ.DeregisterNonNativeApplicationTypeL(applicationType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
583 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
584 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
585 |
void CApaAppListServSession::GetAppTypeL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
586 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
587 |
TInt uid = aMessage.Int0(); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
588 |
CApaAppData* appData = iAppList.AppDataByUid(TUid::Uid(uid)); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
589 |
if (!appData) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
590 |
aMessage.Complete(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
591 |
else |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
592 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
593 |
TPckgBuf<TUid> typeUid(appData->NonNativeApplicationType()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
594 |
aMessage.WriteL(1,typeUid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
595 |
aMessage.Complete(KErrNone); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
596 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
597 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
598 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
599 |
void CApaAppListServSession::ForceRegistrationL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
600 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
601 |
TInt bufferSize = aMessage.GetDesLength(0); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
602 |
User::LeaveIfError(bufferSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
603 |
HBufC8* const buffer=HBufC8::NewLC(bufferSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
604 |
TPtr8 buffer_asWritable(buffer->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
605 |
aMessage.ReadL(0,buffer_asWritable); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
606 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
607 |
RDesReadStream readStream(*buffer); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
608 |
CleanupClosePushL(readStream); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
609 |
const TUint count=readStream.ReadUint32L(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
610 |
for (TUint i = 0; i < count; ++i) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
611 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
612 |
TUint length = readStream.ReadUint32L(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
613 |
HBufC* regFile = HBufC::NewLC(length); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
614 |
TPtr ptr(regFile->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
615 |
readStream.ReadL(ptr, length); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
616 |
iAppList.AddForcedRegistrationL(*regFile); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
617 |
CleanupStack::PopAndDestroy(regFile); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
618 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
619 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
620 |
CleanupStack::PopAndDestroy(&readStream); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
621 |
CleanupStack::PopAndDestroy(buffer); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
622 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
623 |
// Trigger a rescan, when rescan completes it will complete iNotifyOnScanCompleteMsg |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
624 |
iNotifyOnScanCompleteMsg=aMessage; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
625 |
iAppArcSrv.UpdateAppsByForceRegistration(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
626 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
627 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
628 |
void CApaAppArcServSession::AppForDocumentPassedByFileHandleL(const RMessage2& aMessage, const TUid* aServiceUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
629 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
630 |
#if defined(__PROFILE) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
631 |
TProfile profile; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
632 |
RDebug::ProfileReset(5,1); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
633 |
RDebug::ProfileStart(5); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
634 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
635 |
RFile file; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
636 |
CleanupClosePushL(file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
637 |
User::LeaveIfError(file.AdoptFromClient(aMessage, 2, 3)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
638 |
SReturnData_AppForDocument returnData; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
639 |
returnData.iDataType=iServ.RecognizeDataL(file, PreferredBufSize()).iDataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
640 |
returnData.iUid=(returnData.iDataType!=TDataType())? AppForDataTypeL(returnData.iDataType, aServiceUid): TUid::Null(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
641 |
CleanupStack::PopAndDestroy(&file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
642 |
aMessage.WriteL(0,TPckgC<SReturnData_AppForDocument>(returnData)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
643 |
#if defined(__PROFILE) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
644 |
RDebug::ProfileEnd(5); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
645 |
RDebug::ProfileResult(&profile,5,1); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
646 |
RDebug::Print(KProfileAppForDocumentPassedByFileHandleL,profile.iTime/1000000,profile.iTime%1000000); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
647 |
RDebug::ProfileStart(5); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
648 |
#endif |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
649 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
650 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
651 |
/** |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
652 |
Call the recognizer framework to find the MIME-type of the data buffer, |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
653 |
then find and return the UID of the "best" application to handle that data. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
654 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
655 |
void CApaAppArcServSession::AppForDocumentL(const RMessage2& aMessage, const TUid* aServiceUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
656 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
657 |
#if defined(__PROFILE) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
658 |
TProfile profile; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
659 |
RDebug::ProfileReset(5,1); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
660 |
RDebug::ProfileStart(5); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
661 |
#endif |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
662 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
663 |
// Get the document file name from the IPC message |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
664 |
HBufC* const docFileName = HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(2))); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
665 |
{TPtr docFileName_asWritable(docFileName->Des()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
666 |
aMessage.ReadL(2, docFileName_asWritable);} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
667 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
668 |
// Get the data read from the document that will be used for recognition from the IPC message |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
669 |
HBufC8* const buffer = HBufC8::NewLC(User::LeaveIfError(aMessage.GetDesLength(3))); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
670 |
{TPtr8 buffer_asWritable(buffer->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
671 |
aMessage.ReadL(3,buffer_asWritable);} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
672 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
673 |
// Call the recognizer framework to get the MIME-type |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
674 |
SReturnData_AppForDocument returnData; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
675 |
returnData.iDataType = iServ.RecognizeDataL(*docFileName, *buffer).iDataType; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
676 |
// If a MIME-type was found, get the UID of the "best" app registered for that type |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
677 |
returnData.iUid = (returnData.iDataType!=TDataType() ? AppForDataTypeL(returnData.iDataType, aServiceUid) : TUid::Null()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
678 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
679 |
#if defined(__PROFILE) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
680 |
RDebug::ProfileEnd(5); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
681 |
RDebug::ProfileResult(&profile,5,1); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
682 |
RDebug::Print(KProfileAppForDocumentL,profile.iTime/1000000,profile.iTime%1000000); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
683 |
RDebug::ProfileStart(5); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
684 |
#endif |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
685 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
686 |
// Send back the answer |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
687 |
CleanupStack::PopAndDestroy(2, docFileName); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
688 |
aMessage.WriteL(0,TPckgC<SReturnData_AppForDocument>(returnData)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
689 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
690 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
691 |
void CApaAppArcServSession::GetConfidenceL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
692 |
// void GetAcceptedConfidence(TInt& aConfidence); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
693 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
694 |
aMessage.WriteL(0,TPckgBuf<TInt>(iServ.MimeTypeRecognizer()->AcceptedConfidence())); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
695 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
696 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
697 |
void CApaAppArcServSession::SetConfidence(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
698 |
// SetAcceptedConfidence(TInt aConfidence); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
699 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
700 |
__ASSERT_DEBUG(iServ.MimeTypeRecognizer(), Panic(EPanicNullPointer)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
701 |
iServ.MimeTypeRecognizer()->SetAcceptedConfidence(aMessage.Int0()); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
702 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
703 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
704 |
void CApaAppArcServSession::GetBufSize(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
705 |
// GetMaxDataBufSize(TInt& aBufSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
706 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
707 |
aMessage.Complete(iMaxBufSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
708 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
709 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
710 |
void CApaAppArcServSession::SetBufSize(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
711 |
// SetMaxDataBufSize(TInt aBufSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
712 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
713 |
iMaxBufSize=aMessage.Int0(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
714 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
715 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
716 |
void CApaAppArcServSession::GetDataTypesCountL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
717 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
718 |
delete iBuffer; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
719 |
iBuffer = NULL; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
720 |
CDataTypeArray* const dataTypes = new(ELeave) CDataTypeArray(5); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
721 |
CleanupStack::PushL(dataTypes); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
722 |
iServ.DataTypeL(*dataTypes); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
723 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
724 |
TInt completionCode=0; // not KErrNone, as completion code of zero tells the client that zero data types were found |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
725 |
if (dataTypes->Count()>0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
726 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
727 |
CBufBase* const buffer = CBufFlat::NewL(sizeof(TDataType)); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
728 |
CleanupStack::PushL(buffer); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
729 |
RBufWriteStream writeStream(*buffer); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
730 |
writeStream << *dataTypes; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
731 |
CleanupStack::Pop(buffer); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
732 |
iBuffer = buffer; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
733 |
completionCode = iBuffer->Ptr(0).Size(); // number of bytes in buffer (not number of data types) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
734 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
735 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
736 |
CleanupStack::PopAndDestroy(dataTypes); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
737 |
aMessage.Complete(completionCode); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
738 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
739 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
740 |
void CApaAppArcServSession::GetDataTypesL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
741 |
// GetSupportedDataTypes(CDataTypeArray& aDataTypes); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
742 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
743 |
if(!iBuffer) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
744 |
aMessage.Panic(KApaPanicCli,ENoSupportedDataTypes); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
745 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
746 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
747 |
aMessage.WriteL(0,iBuffer->Ptr(0)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
748 |
delete iBuffer; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
749 |
iBuffer=NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
750 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
751 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
752 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
753 |
CApaAppData& CApaAppListServSession::FindAppInListL(TUid aUid) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
754 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
755 |
TApaAppEntry dummy; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
756 |
CApaAppData* app = NULL; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
757 |
if (!FindAppInList(app, dummy, aUid)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
758 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
759 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
760 |
return *app; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
761 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
762 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
763 |
void CApaAppListServSession::SendArrayL(const MArrayItemWriter& aArrayItemWriter,const RMessage2& aMessage) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
764 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
765 |
const TInt sizeOfBuffer=aMessage.Int1(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
766 |
const TInt arrayItemCount=aArrayItemWriter.ArrayItemCount(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
767 |
const TInt sizeRequired=sizeof(TInt)+(arrayItemCount*aArrayItemWriter.ArrayItemSize()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
768 |
ASSERT(sizeRequired > 0); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
769 |
if (sizeRequired>sizeOfBuffer) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
770 |
User::Leave(sizeRequired); // causes aMessage to complete with sizeRequired |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
771 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
772 |
CBufFlat* const buf=CBufFlat::NewL(sizeRequired); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
773 |
CleanupStack::PushL(buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
774 |
buf->ExpandL(0,sizeRequired); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
775 |
RBufWriteStream writeStream; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
776 |
writeStream.Open(*buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
777 |
writeStream.WriteUint32L(arrayItemCount); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
778 |
for (TInt i=0; i<arrayItemCount; ++i) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
779 |
aArrayItemWriter.WriteArrayItemL(writeStream,i); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
780 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
781 |
writeStream.CommitL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
782 |
aMessage.WriteL(2,buf->Ptr(0)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
783 |
CleanupStack::PopAndDestroy(buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
784 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
785 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
786 |
void CApaAppListServSession::AppIconSizesL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
787 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
788 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
789 |
const CApaAppData& app = FindAppInListL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
790 |
if (app.NonMbmIconFile()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
791 |
User::Leave(KErrNotSupported); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
792 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
793 |
CArrayFixFlat<TSize>* array = app.IconSizesL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
794 |
CleanupStack::PushL(array); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
795 |
TSizeArrayItemWriter arrayItemWriter(*array); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
796 |
SendArrayL(arrayItemWriter, aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
797 |
CleanupStack::PopAndDestroy(array); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
798 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
799 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
800 |
void CApaAppListServSession::AppViewsL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
801 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
802 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
803 |
const CApaAppData& app = FindAppInListL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
804 |
TViewDataArrayItemWriter arrayItemWriter(*app.Views()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
805 |
SendArrayL(arrayItemWriter,aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
806 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
807 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
808 |
void CApaAppListServSession::AppFileOwnershipInfoL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
809 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
810 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
811 |
const CApaAppData& app = FindAppInListL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
812 |
TDesCArrayItemWriter arrayItemWriter(*app.OwnedFiles()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
813 |
SendArrayL(arrayItemWriter,aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
814 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
815 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
816 |
void CApaAppListServSession::NumberOfOwnDefinedIconsL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
817 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
818 |
const TUid uid = TUid::Uid(aMessage.Int0()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
819 |
const CApaAppData& app = FindAppInListL(uid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
820 |
if (app.NonMbmIconFile()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
821 |
User::Leave(KErrNotSupported); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
822 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
823 |
TInt count, defaultIconsUsed; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
824 |
app.GetIconInfo(count, defaultIconsUsed); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
825 |
if (defaultIconsUsed) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
826 |
count=0; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
827 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
828 |
TPckgC<TInt> pckg(count); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
829 |
aMessage.Write(1,pckg); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
830 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
831 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
832 |
void CApaAppListServSession::ApplicationLanguageL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
833 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
834 |
const TUid appUid = TUid::Uid(aMessage.Int0()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
835 |
const CApaAppData& appData = FindAppInListL(appUid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
836 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
837 |
const TLanguage appLanguage = appData.ApplicationLanguage(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
838 |
TPckgC<TLanguage> pckg(appLanguage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
839 |
aMessage.Write(1,pckg); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
840 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
841 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
842 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
843 |
void CApaAppListServSession::IconForViewBySizeL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
844 |
// Passes back handles to the icon and mask bitmaps for bitmap sharing |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
845 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
846 |
TApaAppViewIconSizeData appViewIconSizeData; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
847 |
{TPckg<TApaAppViewIconSizeData> appViewIconSizeData_asDescriptor(appViewIconSizeData); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
848 |
aMessage.ReadL(0,appViewIconSizeData_asDescriptor);} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
849 |
const CApaAppData& app = FindAppInListL(appViewIconSizeData.iAppUid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
850 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
851 |
ASSERT(app.Views()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
852 |
const CArrayPtr<CApaAppViewData>& viewDataArray = *app.Views(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
853 |
CApaMaskedBitmap* icon = NULL; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
854 |
const TInt count = viewDataArray.Count(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
855 |
for (TInt ii=0; ii<count; ii++) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
856 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
857 |
const CApaAppViewData& appViewData = *viewDataArray[ii]; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
858 |
if (appViewData.Uid() == appViewIconSizeData.iViewUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
859 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
860 |
if (appViewData.NonMbmIconFile()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
861 |
User::Leave(KErrNotSupported); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
862 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
863 |
icon=appViewData.Icon(appViewIconSizeData.iSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
864 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
865 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
866 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
867 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
868 |
if (!icon) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
869 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
870 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
871 |
SReturnData_ViewIconByUidAndSize returnData; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
872 |
returnData.iIcon = icon->Handle(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
873 |
returnData.iIconMask = icon->Mask()->Handle(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
874 |
aMessage.WriteL(1,TPckgC<SReturnData_ViewIconByUidAndSize>(returnData)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
875 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
876 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
877 |
void CApaAppListServSession::IconForAppBySizeL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
878 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
879 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
880 |
const TSize size(aMessage.Int1(),aMessage.Int2()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
881 |
const CApaAppData& app=FindAppInListL(uid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
882 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
883 |
if (app.NonMbmIconFile()) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
884 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
885 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
886 |
CApaMaskedBitmap* const icon=app.Icon(size); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
887 |
if (!icon) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
888 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
889 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
890 |
SReturnData_AppIconByUidAndSize returnData; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
891 |
returnData.iIcon=icon->Handle(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
892 |
returnData.iIconMask=icon->Mask()->Handle(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
893 |
aMessage.WriteL(3,TPckgC<SReturnData_AppIconByUidAndSize>(returnData)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
894 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
895 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
896 |
void CApaAppListServSession::IconFileHandleForAppL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
897 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
898 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
899 |
TApaAppEntry entry; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
900 |
CApaAppData* app=NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
901 |
if (!FindAppInList(app,entry,uid)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
902 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
903 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
904 |
TPtrC iconFileName = app->IconFileName(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
905 |
if (iconFileName.Length()==0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
906 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
907 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
908 |
RFs fs; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
909 |
User::LeaveIfError(fs.Connect()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
910 |
CleanupClosePushL(fs); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
911 |
User::LeaveIfError(fs.ShareProtected()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
912 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
913 |
RFile file; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
914 |
CleanupClosePushL(file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
915 |
User::LeaveIfError(file.Open(fs, iconFileName, EFileShareReadersOnly)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
916 |
User::LeaveIfError(file.TransferToClient(aMessage, 1)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
917 |
CleanupStack::PopAndDestroy(2, &fs); //file and fs |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
918 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
919 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
920 |
void CApaAppListServSession::IconForAppL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
921 |
// from GetAppIcon(TUid aAppUid, TInt aSideInPixels, CApaMaskedBitmap& aAppBitmap); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
922 |
// BUT! It's interface is uid, side, icon handle, mask handle for bitmap sharing |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
923 |
// and avoiding IPC overhead |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
924 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
925 |
const TUid uid = TUid::Uid(aMessage.Int0()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
926 |
const CApaAppData& app = FindAppInListL(uid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
927 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
928 |
if (app.NonMbmIconFile()) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
929 |
User::Leave(KErrNotSupported); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
930 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
931 |
const TInt side = aMessage.Int1(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
932 |
CApaMaskedBitmap* const icon = app.Icon(side); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
933 |
if (!icon) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
934 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
935 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
936 |
SReturnData_AppIconByUid returnData; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
937 |
returnData.iIcon = icon->Handle(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
938 |
returnData.iIconMask = icon->Mask()->Handle(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
939 |
aMessage.WriteL(2,TPckgC<SReturnData_AppIconByUid>(returnData)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
940 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
941 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
942 |
void CApaAppArcServSession::AppForDataTypeL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
943 |
// from AppForDataType(const TDataType& aDataType, TUid& aAppUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
944 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
945 |
if (sizeof(TDataType) != aMessage.GetDesLengthL(0)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
946 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
947 |
//Leave with KErrArgument if client passes other than TDataType |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
948 |
User::Leave(KErrArgument); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
949 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
950 |
TDataType dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
951 |
{TPckg<TDataType> dataType_asDescriptor(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
952 |
aMessage.ReadL(0,dataType_asDescriptor);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
953 |
TPckgBuf<TUid> uid_asDescriptor(AppForDataTypeL(dataType, NULL)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
954 |
aMessage.WriteL(1,uid_asDescriptor); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
955 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
956 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
957 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
958 |
void CApaAppArcServSession::AppForDataTypeAndServiceL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
959 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
960 |
TDataType dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
961 |
{TPckg<TDataType> dataType_asDescriptor(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
962 |
aMessage.ReadL(0,dataType_asDescriptor);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
963 |
const TUid serviceUid=TUid::Uid(aMessage.Int1()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
964 |
TPckgBuf<TUid> uid(AppForDataTypeL(dataType, &serviceUid)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
965 |
aMessage.WriteL(2,uid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
966 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
967 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
968 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
969 |
TUid CApaAppArcServSession::AppForDataTypeL(const TDataType& aDataType, const TUid* aServiceUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
970 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
971 |
// It is possible to register apps as datatype handlers with system priority, |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
972 |
// which means that they are not overridable by user mappings. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
973 |
// So search the list of apps for a datahandler and get the associated |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
974 |
// priority |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
975 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
976 |
TInt priority = KDataTypePriorityNormal; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
977 |
TUid uid = iAppListSession->AppList().PreferredDataHandlerL(aDataType, aServiceUid, priority); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
978 |
if (priority == KDataTypePrioritySystem) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
979 |
return uid; // We have found a handler with system priority |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
980 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
981 |
// No handler with system priority so see if there is a user mapping |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
982 |
TUid userUid = KNullUid; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
983 |
if (aServiceUid) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
984 |
iServ.GetAppForMimeType(aDataType,*aServiceUid,userUid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
985 |
else |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
986 |
iServ.GetAppForMimeType(aDataType,userUid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
987 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
988 |
TApaAppEntry entry; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
989 |
const CApaAppData* app = NULL; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
990 |
if (userUid.iUid && iAppListSession->FindAppInList(app,entry,userUid)) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
991 |
return userUid; // The user mapping is valid |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
992 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
993 |
// A user mapping was not found or is invalid so try to use |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
994 |
// the uid returned by PreferredDataHandlerL. |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
995 |
if (!uid.iUid && aDataType.IsNative()) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
996 |
uid = aDataType.Uid(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
997 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
998 |
return uid; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
999 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1000 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1001 |
void CApaAppArcServSession::InsertDataMappingL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1002 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1003 |
TPckgBuf<TDataType> dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1004 |
aMessage.ReadL(0, dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1005 |
TDataTypePriority priority = aMessage.Int1(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1006 |
const TUid appUid = { aMessage.Int2() }; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1007 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1008 |
if(priority>KDataTypeUnTrustedPriorityThreshold || priority == KDataTypePrioritySystem ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1009 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1010 |
CApaAppData* appData = iAppListSession->AppList().AppDataByUid(appUid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1011 |
if( appData ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1012 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1013 |
TBool hasWriteDeviceDataCap( EFalse ); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1014 |
TBool isSidTrusted( EFalse ); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1015 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1016 |
CApaSecurityUtils::CheckAppSecurity( appData->AppEntry().iFullName, |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1017 |
hasWriteDeviceDataCap, |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1018 |
isSidTrusted); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1019 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1020 |
if (priority == KDataTypePrioritySystem ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1021 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1022 |
// Check if the app has capability WriteDeviceData |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1023 |
if ( !hasWriteDeviceDataCap ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1024 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1025 |
priority = KDataTypePriorityNormal; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1026 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1027 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1028 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1029 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1030 |
TPtrC registrationFilePath = appData->RegistrationFileName(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1031 |
TInt match = registrationFilePath.MatchF ( |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1032 |
KLitPathForUntrustedRegistrationResourceFiles ); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1033 |
//Check if registration file is in path for untrusted apps |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1034 |
//and its SID is untrusted |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1035 |
if (match != KErrNotFound && !isSidTrusted ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1036 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1037 |
// "cap" the priority if UnTrusted apps claim for priority higher |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1038 |
// than UnTrusted apps Threshold priority |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1039 |
priority = KDataTypeUnTrustedPriorityThreshold; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1040 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1041 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1042 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1043 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1044 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1045 |
//if the application is not present in the applist |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1046 |
//then the priority will be reduced to Threshold |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1047 |
priority = KDataTypeUnTrustedPriorityThreshold; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1048 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1049 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1050 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1051 |
const TUid serviceUid = { aMessage.Int3() }; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1052 |
if(aMessage.Function() == EAppListInsertDataMappingIfHigher) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1053 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1054 |
const TBool response = iServ.InsertAndStoreIfHigherL(dataType(), priority, appUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1055 |
aMessage.WriteL(3, TPckgC<TBool>(response)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1056 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1057 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1058 |
iServ.InsertAndStoreDataMappingL(dataType(), priority, appUid, serviceUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1059 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1060 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1061 |
void CApaAppArcServSession::DeleteDataMappingL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1062 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1063 |
TPckgBuf<TDataType> dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1064 |
aMessage.ReadL(0, dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1065 |
const TUid serviceUid = { aMessage.Int1() }; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1066 |
TUid uid; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1067 |
iServ.GetAppForMimeType(dataType(),serviceUid,uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1068 |
if (uid != KNullUid) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1069 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1070 |
// TypeStore doesn't support deletion of an inexistent mapping |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1071 |
iServ.DeleteAndStoreDataMappingL(dataType(), serviceUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1072 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1073 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1074 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1075 |
aMessage.Complete(KErrNotFound); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1076 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1077 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1078 |
void CApaAppArcServSession::GetAppByDataTypeL(const RMessage2& aMessage) const |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1079 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1080 |
TPckgBuf<TDataType> dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1081 |
aMessage.ReadL(0,dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1082 |
const TUid serviceUid = { aMessage.Int1() }; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1083 |
TUid uid; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1084 |
iServ.GetAppForMimeType(dataType(),serviceUid,uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1085 |
TPckgC<TUid> uidpckg(uid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1086 |
aMessage.WriteL(2,uidpckg); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1087 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1088 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1089 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1090 |
void CApaAppArcServSession::GetExecutableNameGivenDocumentL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1091 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1092 |
HBufC* const name=HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(2))); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1093 |
{TPtr name_asWritable(name->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1094 |
aMessage.ReadL(2, name_asWritable);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1095 |
HBufC8* const buffer=HBufC8::NewLC(User::LeaveIfError(aMessage.GetDesLength(3))); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1096 |
{TPtr8 buffer_asWritable(buffer->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1097 |
aMessage.ReadL(3, buffer_asWritable);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1098 |
const TDataType dataType(iServ.RecognizeDataL(*name, *buffer).iDataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1099 |
CleanupStack::PopAndDestroy(2, name); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1100 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1101 |
const TUid appUid(AppForDataTypeL(dataType, NULL)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1102 |
GetExecutableNameL(aMessage, appUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1103 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1104 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1105 |
void CApaAppArcServSession::GetExecutableNameGivenDocumentPassedByFileHandleL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1106 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1107 |
RFile file; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1108 |
CleanupClosePushL(file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1109 |
User::LeaveIfError(file.AdoptFromClient(aMessage, 2, 3)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1110 |
const TDataType dataType(iServ.RecognizeDataL(file, PreferredBufSize()).iDataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1111 |
CleanupStack::PopAndDestroy(&file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1112 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1113 |
const TUid appUid(AppForDataTypeL(dataType, NULL)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1114 |
GetExecutableNameL(aMessage, appUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1115 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1116 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1117 |
void CApaAppArcServSession::GetExecutableNameGivenDataTypeL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1118 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1119 |
if (sizeof(TDataType) != aMessage.GetDesLengthL(2)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1120 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1121 |
//Leave with KErrArgument if client passes other than TDataType |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1122 |
User::Leave(KErrArgument); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1123 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1124 |
TDataType dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1125 |
{TPckg<TDataType> dataType_asDescriptor(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1126 |
aMessage.ReadL(2, dataType_asDescriptor);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1127 |
const TUid appUid(AppForDataTypeL(dataType, NULL)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1128 |
GetExecutableNameL(aMessage, appUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1129 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1130 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1131 |
void CApaAppArcServSession::GetExecutableNameGivenAppUidL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1132 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1133 |
const TUid appUid(TUid::Uid(aMessage.Int2())); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1134 |
GetExecutableNameL(aMessage, appUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1135 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1136 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1137 |
void CApaAppArcServSession::GetExecutableNameL(const RMessage2& aMessage, TUid aAppUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1138 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1139 |
const CApaAppData* appData=NULL; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1140 |
TApaAppEntry entry; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1141 |
if (!iAppListSession->FindAppInList(appData, entry, aAppUid)) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1142 |
User::Leave(iAppListSession->AppList().IsFirstScanComplete() ? KErrNotFound : RApaLsSession::EAppListInvalid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1143 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1144 |
const TDesC& executableName(entry.iFullName); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1145 |
if (!executableName.Length()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1146 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1147 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1148 |
aMessage.WriteL(1, executableName); // the "logical" executable name - for non-native applications this is the name of the MIDlet, Python script, etc |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1149 |
WriteNativeExecutableIfNonNativeAndPrepareForClientRetrievalOfOpaqueDataL(aMessage, 0, *appData); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1150 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1151 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1152 |
void CApaAppArcServSession::GetNativeExecutableNameIfNonNativeL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1153 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1154 |
RBuf logicalExecutableName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1155 |
logicalExecutableName.CreateL(User::LeaveIfError(aMessage.GetDesLength(1))); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1156 |
CleanupClosePushL(logicalExecutableName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1157 |
aMessage.ReadL(1, logicalExecutableName); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1158 |
CApaAppData* const appData=iAppListSession->AppList().AppDataByFileName(logicalExecutableName); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1159 |
if (appData!=NULL) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1160 |
WriteNativeExecutableIfNonNativeAndPrepareForClientRetrievalOfOpaqueDataL(aMessage, 0, *appData); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1161 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1162 |
CleanupStack::PopAndDestroy(&logicalExecutableName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1163 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1164 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1165 |
void CApaAppArcServSession::WriteNativeExecutableIfNonNativeAndPrepareForClientRetrievalOfOpaqueDataL(const RMessage2& aMessage, TInt aMessageSlotForNativeExecutable, const CApaAppData& aAppData) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1166 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1167 |
HBufC8* opaqueData=NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1168 |
const TPtrC8 opaqueData_asTPtrC8(aAppData.OpaqueData()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1169 |
const TInt lengthOfOpaqueData(opaqueData_asTPtrC8.Length()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1170 |
if (lengthOfOpaqueData>0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1171 |
opaqueData=opaqueData_asTPtrC8.AllocLC(); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1172 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1173 |
const TUid nonNativeApplicationType(aAppData.NonNativeApplicationType()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1174 |
if (nonNativeApplicationType!=TUid::Null()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1175 |
aMessage.WriteL(aMessageSlotForNativeExecutable, iServ.NativeExecutableL(nonNativeApplicationType)); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1176 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1177 |
delete iOpaqueData_pendingDispatchToClient; // only done when the potentially leaving stuff has all succeeded |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1178 |
iOpaqueData_pendingDispatchToClient=opaqueData; // want to do this, even if opaqueData is NULL |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1179 |
if (opaqueData) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1180 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1181 |
CleanupStack::Pop(opaqueData); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1182 |
aMessage.Complete(lengthOfOpaqueData); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1183 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1184 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1185 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1186 |
void CApaAppArcServSession::GetOpaqueDataL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1187 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1188 |
if (iOpaqueData_pendingDispatchToClient==NULL) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1189 |
User::Leave(KErrGeneral); // the protocol was broken: EAppListServGetOpaqueData can only be called immediately after one of the EAppListServGetExecutableNameGivenXxx or EAppListServGetNativeExecutableNameGivenXxx opcodes - see the client-side implementation of this protocol in RApaLsSession::GetOpaqueData (and the places that call it) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1190 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1191 |
aMessage.WriteL(0, *iOpaqueData_pendingDispatchToClient); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1192 |
delete iOpaqueData_pendingDispatchToClient; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1193 |
iOpaqueData_pendingDispatchToClient=NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1194 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1195 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1196 |
void CApaAppListServSession::GetAppInfoL(TUid aUid, TApaAppInfo& aInfo) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1197 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1198 |
const CApaAppData* app = NULL; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1199 |
TApaAppEntry entry; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1200 |
if (!FindAppInList(app, entry, aUid)) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1201 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1202 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1203 |
aInfo.iUid = entry.iUidType[2]; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1204 |
aInfo.iFullName = entry.iFullName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1205 |
aInfo.iCaption = app->Caption(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1206 |
aInfo.iShortCaption = app->ShortCaption(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1207 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1208 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1209 |
TPtrC8 CApaAppArcServSession::DoRecognizeUnpackLC(HBufC*& aName, RChunk& aLocalChunk, const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1210 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1211 |
ASSERT(aName==NULL); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1212 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1213 |
aName=HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(1))); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1214 |
TPtr name(aName->Des()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1215 |
aMessage.ReadL(1, name); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1216 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1217 |
HBufC8* buffer=NULL; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1218 |
TInt error=KErrNone; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1219 |
TInt bufferSize= aMessage.GetDesLength(2); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1220 |
User::LeaveIfError(bufferSize); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1221 |
//Allocate memory in apparc's process heap. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1222 |
TRAP(error, buffer=HBufC8::NewL(bufferSize)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1223 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1224 |
if(error==KErrNone) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1225 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1226 |
CleanupStack::PushL(buffer); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1227 |
TPtr8 bufPtr(buffer->Des()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1228 |
aMessage.ReadL(2, bufPtr); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1229 |
return bufPtr; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1230 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1231 |
else if(error==KErrNoMemory) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1232 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1233 |
//If memory is not available in apparc's process heap, then allocate in kernel heap |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1234 |
User::LeaveIfError(aLocalChunk.CreateLocal(bufferSize,bufferSize)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1235 |
CleanupClosePushL(aLocalChunk); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1236 |
TPtr8 bufPtr(aLocalChunk.Base(), bufferSize); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1237 |
aMessage.ReadL(2, bufPtr); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1238 |
return bufPtr; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1239 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1240 |
else |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1241 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1242 |
User::Leave(error); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1243 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1244 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1245 |
TPtrC8 bufPtr(NULL,0); //Never executed. To make compiler happy |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1246 |
return bufPtr; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1247 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1248 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1249 |
void CApaAppArcServSession::RecognizeDataL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1250 |
// Recognize the data type of an object |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1251 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1252 |
HBufC* name=NULL; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1253 |
RChunk localChunk; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1254 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1255 |
TPtrC8 bufPtr=DoRecognizeUnpackLC(name, localChunk, aMessage); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1256 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1257 |
const TDataRecognitionResult result = iServ.RecognizeDataL(*name, bufPtr); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1258 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1259 |
CleanupStack::PopAndDestroy(2); // name & buffer or localChunk |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1260 |
aMessage.WriteL(0,TPckgC<TDataRecognitionResult>(result)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1261 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1262 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1263 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1264 |
void CApaAppArcServSession::RecognizeFilesL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1265 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1266 |
// if there is an outstanding async. request, we even don't allow |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1267 |
// a synchronous request at the same time (due to the two required |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1268 |
// server messages) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1269 |
if (iAsyncRecognitionActive) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1270 |
User::Leave(KErrInUse); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1271 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1272 |
_LIT8(KAllDataTypes,"*"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1273 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1274 |
// retrieve pathname |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1275 |
HBufC* const path=HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(0))); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1276 |
TPtr pathPtr(path->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1277 |
aMessage.ReadL(0,pathPtr); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1278 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1279 |
// retrieve data type filter |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1280 |
HBufC8* const dataType = HBufC8::NewLC(User::LeaveIfError(aMessage.GetDesLength(2))); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1281 |
TPtr8 dataTypePtr(dataType->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1282 |
aMessage.ReadL(2,dataTypePtr); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1283 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1284 |
delete iRecognitionResult; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1285 |
iRecognitionResult = NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1286 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1287 |
if(dataType->Compare(KAllDataTypes) == 0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1288 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1289 |
iRecognitionResult = new (ELeave) CDirectoryRecognitionResult(path, NULL); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1290 |
CleanupStack::PopAndDestroy(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1291 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1292 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1293 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1294 |
iRecognitionResult = new (ELeave) CDirectoryRecognitionResult(path,dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1295 |
CleanupStack::Pop(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1296 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1297 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1298 |
CleanupStack::Pop(path); // ownership transferred to CDirectoryRecognitionResult |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1299 |
ASSERT(iFileRecognitionUtility); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1300 |
iFileRecognitionUtility->RecognizeSynchronouslyL(*iRecognitionResult); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1301 |
aMessage.WriteL(1,TPckgBuf<TUint>(iRecognitionResult->RequiredBufferSize())); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1302 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1303 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1304 |
void CApaAppArcServSession::TransferRecognitionResultL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1305 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1306 |
if(iRecognitionResult == NULL) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1307 |
User::Leave(KErrNotReady); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1308 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1309 |
iAsyncRecognitionActive = EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1310 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1311 |
// if data is too big for buffer, tell client |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1312 |
const TInt sizeOfBuffer=aMessage.Int2(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1313 |
if(sizeOfBuffer < iRecognitionResult->RequiredBufferSize()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1314 |
User::Leave(KErrTooBig); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1315 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1316 |
// buffer is big enough -> write result to buffer |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1317 |
CBufFlat* const buf=CBufFlat::NewL(iRecognitionResult->RequiredBufferSize()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1318 |
CleanupStack::PushL(buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1319 |
buf->ExpandL(0,iRecognitionResult->RequiredBufferSize()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1320 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1321 |
RBufWriteStream writeStream; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1322 |
writeStream.Open(*buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1323 |
iRecognitionResult->WriteToStreamL(writeStream); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1324 |
aMessage.WriteL(1,buf->Ptr(0)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1325 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1326 |
delete iRecognitionResult; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1327 |
iRecognitionResult = NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1328 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1329 |
CleanupStack::PopAndDestroy(buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1330 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1331 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1332 |
void CApaAppArcServSession::RecognizeFilesAsyncL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1333 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1334 |
if (iAsyncRecognitionActive) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1335 |
User::Leave(KErrInUse); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1336 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1337 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1338 |
_LIT8(KAllDataTypes,"*"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1339 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1340 |
HBufC* path = HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(0))); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1341 |
TPtr pathPtr(path->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1342 |
aMessage.ReadL(0,pathPtr); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1343 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1344 |
// retrieve data type filter |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1345 |
HBufC8* dataType = HBufC8::NewLC(User::LeaveIfError(aMessage.GetDesLength(2))); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1346 |
TPtr8 dataTypePtr(dataType->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1347 |
aMessage.ReadL(2,dataTypePtr); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1348 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1349 |
delete iRecognitionResult; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1350 |
iRecognitionResult = NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1351 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1352 |
if(dataType->Compare(KAllDataTypes) == 0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1353 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1354 |
iRecognitionResult = new (ELeave) CDirectoryRecognitionResult(path,NULL); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1355 |
CleanupStack::PopAndDestroy(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1356 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1357 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1358 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1359 |
iRecognitionResult = new (ELeave) CDirectoryRecognitionResult(path,dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1360 |
CleanupStack::Pop(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1361 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1362 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1363 |
CleanupStack::Pop(path); // ownership transferred to CDirectoryRecognitionResult |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1364 |
ASSERT(iFileRecognitionUtility); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1365 |
iFileRecognitionUtility->RecognizeAsynchronously(*iRecognitionResult,aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1366 |
iAsyncRecognitionActive = ETrue; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1367 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1368 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1369 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1370 |
/** The function interrogates all available rule based plug-ins if apparc can launch application with |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1371 |
given full name. It loops through all plug-ins until gets value different from |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1372 |
CAppLaunchChecker::EAppLaunchIndifferent. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1373 |
The application will be launched if the return code is not equal to |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1374 |
CAppLaunchChecker::EAppLaunchDecline |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1375 |
*/ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1376 |
void CApaAppArcServSession::AquirePermissionToLaunchAppL(const RMessage2& aMessage) const |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1377 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1378 |
const CApaScanningRuleBasedPlugIns* theRuleBasedPlugIns = iServ.RuleBasedPlugIns(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1379 |
const TInt theNumImp = (theRuleBasedPlugIns ? theRuleBasedPlugIns->ImplementationCount() : 0); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1380 |
if(!theNumImp || !iServ.WsSession().Handle()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1381 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1382 |
// Proceed with launch if rule based plug-in framework was not initialized |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1383 |
aMessage.Complete(ETrue); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1384 |
return; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1385 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1386 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1387 |
// Get the name of the app to start from the IPC message object |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1388 |
HBufC* theFullFileName = HBufC::NewLC(User::LeaveIfError(aMessage.GetDesLength(0))); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1389 |
TPtr theFullFileNamePtr(theFullFileName->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1390 |
aMessage.ReadL(0, theFullFileNamePtr); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1391 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1392 |
// Ge the application's UID from its name |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1393 |
const TUid theUid = iAppListSession->AppUidFromFullFileNameL(theFullFileNamePtr); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1394 |
CleanupStack::PopAndDestroy(theFullFileName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1395 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1396 |
// Iterate through all plug-ins and look for one that's not indifferent |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1397 |
CAppLaunchChecker::TAppLaunchCode theLaunchCode = CAppLaunchChecker::EAppLaunchIndifferent; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1398 |
TApaTaskList theTaskList(iServ.WsSession()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1399 |
for(TInt ii = 0; ii < theNumImp; ii++) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1400 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1401 |
CAppLaunchChecker* const theLauncherChecker = (*theRuleBasedPlugIns)[ii]; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1402 |
TRAP_IGNORE(theLaunchCode = theLauncherChecker->OkayToLaunchL(theUid, theTaskList)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1403 |
if(theLaunchCode != CAppLaunchChecker::EAppLaunchIndifferent) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1404 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1405 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1406 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1407 |
// Return the result |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1408 |
const TBool okayToLaunch = (theLaunchCode != CAppLaunchChecker::EAppLaunchDecline); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1409 |
aMessage.Complete(okayToLaunch); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1410 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1411 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1412 |
/** |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1413 |
@param aFullFileName This filename is parsed and the path is replaced with "\\sys\\bin\\". |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1414 |
It uses ".exe" if no other is provided in the filename passed. If drive name is |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1415 |
present in the filename then it scans through the \\sys\\bin of that particular drive, |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1416 |
otherwise it scans through the \\sys\\bin folders in all the avaliable drives. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1417 |
@return Returns the Application Uid for the aFullFileName application. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1418 |
*/ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1419 |
TUid CApaAppListServSession::AppUidFromFullFileNameL(const TDesC& aFullFileName) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1420 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1421 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1422 |
// If the appliation still wasn't found, use AppArc's appliation list |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1423 |
// Since we cannot get the Uid of NonNative apps by passing filename to RFs::Entry |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1424 |
CApaAppData* appData = iAppList.AppDataByFileName(aFullFileName); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1425 |
if (appData) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1426 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1427 |
TApaAppEntry appEntry = appData->AppEntry(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1428 |
return appEntry.iUidType[2]; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1429 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1430 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1431 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1432 |
//mm: Why does this code not use AppArc's application list only? |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1433 |
//mm: The order in which different methods to locate the app is used seems inefficient. |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1434 |
_LIT(KSysBin, "\\sys\\bin\\"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1435 |
_LIT(KFileExtension, ".EXE"); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1436 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1437 |
RLoader loader; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1438 |
User::LeaveIfError(loader.Connect()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1439 |
CleanupClosePushL(loader); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1440 |
TPckgBuf<RLibrary::TInfo> dllInfo; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1441 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1442 |
TParse parse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1443 |
parse.Set(aFullFileName,NULL,NULL); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1444 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1445 |
// If the drive letter has been specified, look on that drive only... |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1446 |
TInt error = KErrNotFound; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1447 |
if (parse.DrivePresent()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1448 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1449 |
const TPtrC appDrive = parse.Drive(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1450 |
TBuf<KMaxFileName>fileName(appDrive); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1451 |
fileName.Append(KSysBin); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1452 |
User::LeaveIfError(parse.SetNoWild(fileName, &aFullFileName, &KFileExtension)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1453 |
error = loader.GetInfo(parse.FullName(), dllInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1454 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1455 |
else // ...otherwise scan all drives. |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1456 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1457 |
User::LeaveIfError(parse.SetNoWild(KSysBin, &aFullFileName, &KFileExtension)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1458 |
TFileName tempFileName(parse.FullName()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1459 |
TDriveList driveList; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1460 |
User::LeaveIfError(iFs.DriveList(driveList)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1461 |
for (TInt driveNumber = EDriveY; driveNumber != KFinishedScanning; driveNumber = NextDriveToScan(driveNumber)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1462 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1463 |
if (driveList[driveNumber]!=0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1464 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1465 |
User::LeaveIfError(parse.SetNoWild(TDriveUnit(driveNumber).Name(), &tempFileName, NULL)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1466 |
error = loader.GetInfo(parse.FullName(), dllInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1467 |
if (error == KErrNone) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1468 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1469 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1470 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1471 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1472 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1473 |
CleanupStack::PopAndDestroy(&loader); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1474 |
// Return the UID if found and no errors occured |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1475 |
if(!error) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1476 |
return dllInfo().iUids[2]; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1477 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1478 |
// If the application wasn't found |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1479 |
// Try looking for the application using normal F32. This won't work in protected directories |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1480 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1481 |
// Since we can't use RFs::Entry if the path refers the protected system directory (i.e. \sys\bin)... |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1482 |
User::LeaveIfError(parse.SetNoWild(aFullFileName, NULL, NULL)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1483 |
if(parse.Path().FindF(KSysBin) == 0) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1484 |
User::Leave(KErrNotFound); // ... then return not-found. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1485 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1486 |
//mm: Surely we should still be allowed to use AppArc below? |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1487 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1488 |
// The following is valid for non-native applications only |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1489 |
TEntry entry; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1490 |
error = iFs.Entry(aFullFileName, entry); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1491 |
if(!error) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1492 |
return entry.iType[2]; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1493 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1494 |
User::Leave(KErrNotFound); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1495 |
return TUid::Null(); // Won't be called |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1496 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1497 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1498 |
/** |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1499 |
Applies the scanning order Y: through A: then Z: last. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1500 |
*/ |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1501 |
TInt CApaAppListServSession::NextDriveToScan(TInt aCurrentDrive) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1502 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1503 |
if (aCurrentDrive == EDriveZ) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1504 |
return KFinishedScanning; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1505 |
else if (aCurrentDrive == 0) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1506 |
return EDriveZ; // finally scan the last one |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1507 |
else if (aCurrentDrive > 0 && aCurrentDrive < KMaxDrives) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1508 |
return aCurrentDrive - 1; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1509 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1510 |
return KErrGeneral; // never gets here, but it wont compile otherwise |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1511 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1512 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1513 |
void CApaAppArcServSession::CancelRecognizeFiles() |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1514 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1515 |
if (iAsyncRecognitionActive) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1516 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1517 |
ASSERT(iFileRecognitionUtility); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1518 |
iFileRecognitionUtility->CancelRecognitionRequest(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1519 |
iAsyncRecognitionActive = EFalse; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1520 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1521 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1522 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1523 |
void CApaAppArcServSession::RecognizeDataPassedByFileHandleL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1524 |
// Recognize the data type of an object |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1525 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1526 |
RFile file; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1527 |
CleanupClosePushL(file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1528 |
User::LeaveIfError(file.AdoptFromClient(aMessage, 1, 2)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1529 |
const TDataRecognitionResult result(iServ.RecognizeDataL(file, PreferredBufSize())); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1530 |
CleanupStack::PopAndDestroy(&file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1531 |
aMessage.WriteL(0, TPckgC<TDataRecognitionResult>(result)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1532 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1533 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1534 |
void CApaAppArcServSession::RecognizeSpecificDataL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1535 |
// Determine whether an object is of a specific data type |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1536 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1537 |
HBufC* name=NULL; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1538 |
RChunk localChunk; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1539 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1540 |
TPtrC8 bufPtr=DoRecognizeUnpackLC(name, localChunk, aMessage); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1541 |
TDataType dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1542 |
{TPckg<TDataType> dataType_asDescriptor(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1543 |
aMessage.ReadL(0, dataType_asDescriptor);} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1544 |
aMessage.Complete(iServ.RecognizeDataL(*name,bufPtr,dataType)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1545 |
CleanupStack::PopAndDestroy(2); // name & buffer or localChunk |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1546 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1547 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1548 |
void CApaAppArcServSession::RecognizeSpecificDataPassedByFileHandleL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1549 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1550 |
RFile file; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1551 |
CleanupClosePushL(file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1552 |
User::LeaveIfError(file.AdoptFromClient(aMessage, 1, 2)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1553 |
TDataType dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1554 |
{TPckg<TDataType> dataType_asDescriptor(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1555 |
aMessage.ReadL(0,dataType_asDescriptor);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1556 |
aMessage.Complete(iServ.RecognizeDataL(file, PreferredBufSize(), dataType)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1557 |
CleanupStack::PopAndDestroy(&file); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1558 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1559 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1560 |
void CApaAppListServSession::InitListL(const RMessage2& aMessage, TAppListType aType) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1561 |
// carries out initialisation prior to starting to pass a new list across |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1562 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1563 |
iAppListType = aType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1564 |
iAppListScreenMode = aMessage.Int0(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1565 |
if (aType == EListFilteredEmbeddedApps) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1566 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1567 |
TApaEmbeddabilityFilter filter; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1568 |
{TPckg<TApaEmbeddabilityFilter> filter_asDescriptor(filter); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1569 |
aMessage.ReadL(1,filter_asDescriptor);} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1570 |
iEmbeddabilityFilter = filter; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1571 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1572 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1573 |
if (aType == EListCapabilityAttrFilteredApps) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1574 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1575 |
iCapabilityAttrFilterMask = aMessage.Int1(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1576 |
iCapabilityAttrFilterValue = aMessage.Int2(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1577 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1578 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1579 |
if (aType == EListServerApps) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1580 |
iServiceUid = TUid::Uid(aMessage.Int1()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1581 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1582 |
iApaAppInfoArray.ResetAndDestroy(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1583 |
iFlags|=EAppListPopulationPending; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1584 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1585 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1586 |
void CApaAppListServSession::EmbedCount(const RMessage2& aMessage) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1587 |
// writes back the number of embedded apps in the list |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1588 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1589 |
TInt count=0; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1590 |
const CApaAppList& list = iAppList; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1591 |
CApaAppData* app = list.FirstApp(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1592 |
TApaEmbeddabilityFilter filter; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1593 |
filter.AddEmbeddability(TApaAppCapability::EEmbeddable); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1594 |
filter.AddEmbeddability(TApaAppCapability::EEmbeddableOnly); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1595 |
while (app) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1596 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1597 |
if (!AppIsControlPanelItem(*app) && AppMatchesEmbeddabilityFilter(*app, filter)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1598 |
count++; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1599 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1600 |
app = list.NextApp(app); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1601 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1602 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1603 |
aMessage.Complete(count); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1604 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1605 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1606 |
void CApaAppListServSession::AppCount(const RMessage2& aMessage) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1607 |
// writes back the number of apps in the list |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1608 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1609 |
TInt count = 0; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1610 |
const CApaAppList& list = iAppList; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1611 |
CApaAppData* app = list.FirstApp(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1612 |
while (app) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1613 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1614 |
if (!AppIsControlPanelItem(*app)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1615 |
count++; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1616 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1617 |
app = list.NextApp(app); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1618 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1619 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1620 |
aMessage.Complete(count); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1621 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1622 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1623 |
void CApaAppListServSession::GetNextAppL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1624 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1625 |
if (iFlags&EAppListPopulationPending) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1626 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1627 |
const CApaAppList& list=iAppList; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1628 |
if (!(list.IsFirstScanComplete())) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1629 |
User::Leave(KErrCorrupt); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1630 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1631 |
iApaAppInfoArray.ResetAndDestroy(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1632 |
for (CApaAppData* appData = list.FirstApp(iAppListScreenMode); appData != NULL; appData = list.NextApp(appData, iAppListScreenMode)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1633 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1634 |
if (iAppListType==EListFilteredEmbeddedApps && (AppIsControlPanelItem(*appData) || !AppMatchesEmbeddabilityFilter(*appData, iEmbeddabilityFilter))) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1635 |
continue; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1636 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1637 |
if (iAppListType==EListCapabilityAttrFilteredApps && !AppMatchesCapabilityAttrFilter(*appData)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1638 |
continue; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1639 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1640 |
if (iAppListType==EListServerApps && !appData->ImplementsService(iServiceUid)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1641 |
continue; |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1642 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1643 |
CApaAppInfo* apaAppInfo= new (ELeave)CApaAppInfo(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1644 |
CleanupStack::PushL(apaAppInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1645 |
apaAppInfo->SetCaptionL(appData->Caption()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1646 |
apaAppInfo->SetShortCaptionL(appData->ShortCaption()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1647 |
apaAppInfo->SetFullNameL(appData->AppEntry().iFullName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1648 |
apaAppInfo->SetUid(appData->AppEntry().iUidType[2]); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1649 |
User::LeaveIfError(iApaAppInfoArray.Append(apaAppInfo)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1650 |
CleanupStack::Pop(apaAppInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1651 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1652 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1653 |
iFlags &= ~EAppListPopulationPending; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1654 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1655 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1656 |
if (!iApaAppInfoArray.Count()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1657 |
User::Leave(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1658 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1659 |
TApaAppInfo* info=new(ELeave)TApaAppInfo; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1660 |
CleanupStack::PushL(info); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1661 |
CApaAppInfo* apaAppInfo = iApaAppInfoArray[0]; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1662 |
info->iUid = apaAppInfo->Uid(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1663 |
info->iFullName = apaAppInfo->FullName(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1664 |
info->iCaption = apaAppInfo->Caption(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1665 |
// Get the length of the target descriptor |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1666 |
TInt targetLen=aMessage.GetDesMaxLength(1); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1667 |
if (targetLen==KApaAppInfoDesMaxLength) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1668 |
info->iShortCaption = apaAppInfo->ShortCaption(); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1669 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1670 |
iApaAppInfoArray.Remove(0); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1671 |
delete apaAppInfo; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1672 |
TPckgC<TApaAppInfo> infoPk(*info); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1673 |
if (targetLen<KApaAppInfoDesMaxLength) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1674 |
infoPk.Set(infoPk.Left(_FOFF(TApaAppInfo,iShortCaption))); // reduce the length of infoPk to the 7.0 size of TApaAppInfo |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1675 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1676 |
aMessage.WriteL(1,infoPk); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1677 |
CleanupStack::PopAndDestroy(info); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1678 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1679 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1680 |
TBool CApaAppListServSession::AppMatchesEmbeddabilityFilter(const CApaAppData& aAppData, const TApaEmbeddabilityFilter& aEmbeddabilityFilter) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1681 |
// returns True if aAppData's embeddability matches the filter set by InitListL |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1682 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1683 |
TApaAppCapabilityBuf capabilityBuf; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1684 |
aAppData.Capability(capabilityBuf); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1685 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1686 |
return (aEmbeddabilityFilter.MatchesEmbeddability(capabilityBuf().iEmbeddability)); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1687 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1688 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1689 |
TBool CApaAppListServSession::AppMatchesCapabilityAttrFilter(const CApaAppData& aAppData) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1690 |
// returns True if aAppData's capability attributes match the filter set by InitListL |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1691 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1692 |
TApaAppCapabilityBuf capabilityBuf; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1693 |
aAppData.Capability(capabilityBuf); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1694 |
return ((capabilityBuf().iAttributes & iCapabilityAttrFilterMask) == (iCapabilityAttrFilterValue & iCapabilityAttrFilterMask)); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1695 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1696 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1697 |
TBool CApaAppListServSession::AppIsControlPanelItem(const CApaAppData& aAppData) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1698 |
// returns True if aAppData represents a control panel app |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1699 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1700 |
TApaAppCapabilityBuf capabilityBuf; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1701 |
aAppData.Capability(capabilityBuf); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1702 |
return (capabilityBuf().iAttributes & TApaAppCapability::EControlPanelItem); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1703 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1704 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1705 |
/** |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1706 |
locate app in list, return EFalse if it isn't present |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1707 |
search is regardless of screen mode. |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1708 |
@internalComponent |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1709 |
*/ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1710 |
TBool CApaAppListServSession::FindAppInList(CApaAppData*& aApp, TApaAppEntry& aEntry, TUid aAppUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1711 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1712 |
// Look for the app with aAppUid in the app list we keep |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1713 |
const CApaAppList& list = iAppList; |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1714 |
aApp = list.AppDataByUid(aAppUid); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1715 |
if (aApp) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1716 |
aEntry = aApp->AppEntry(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1717 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1718 |
// If the app list is currently in flux, try to nail down the app by looking for it specifically |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1719 |
const TBool appPendingOnLangChange = (aApp && list.IsLanguageChangePending() && aApp->IsPending()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1720 |
if ((!aApp || appPendingOnLangChange) && !list.IsIdleUpdateComplete()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1721 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1722 |
// 1. App wasn't found, but an app scan is currently in progress, |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1723 |
// so try to find and add the specific app we're looking for to the list |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1724 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1725 |
// 2. On language change event, current app scan could not yet update the found app, |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1726 |
// so try to update the specific app we're looking for, in the list. |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1727 |
if(aAppUid != KNullUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1728 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1729 |
CApaAppData* app = NULL; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1730 |
TRAPD(err, app = FindSpecificAppL(aAppUid)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1731 |
if (!err && app) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1732 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1733 |
// app has been found and added to the app list |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1734 |
aApp = app; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1735 |
aEntry = aApp->AppEntry(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1736 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1737 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1738 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1739 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1740 |
return (aApp != NULL); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1741 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1742 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1743 |
CApaAppData* CApaAppListServSession::FindSpecificAppL(TUid aAppUid) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1744 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1745 |
//Scans the drives and folder lists for the specific app |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1746 |
CApaAppRegFinder* regFinder = CApaAppRegFinder::NewLC(iFs); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1747 |
CApaAppData* app = iAppList.FindAndAddSpecificAppL(regFinder, aAppUid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1748 |
CleanupStack::PopAndDestroy(regFinder); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1749 |
return app; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1750 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1751 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1752 |
void CApaAppListServSession::GetAppInfoL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1753 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1754 |
// get UID of required app |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1755 |
const TUid uid = TUid::Uid(aMessage.Int0()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1756 |
TApaAppInfo* info = new(ELeave) TApaAppInfo; // on heap to avoid running out of stack |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1757 |
CleanupStack::PushL(info); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1758 |
GetAppInfoL(uid, *info); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1759 |
TPckgC<TApaAppInfo> infoPk(*info); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1760 |
aMessage.WriteL(1, infoPk); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1761 |
CleanupStack::PopAndDestroy(info); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1762 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1763 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1764 |
void CApaAppListServSession::GetAppCapabilityL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1765 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1766 |
const TUid uid = TUid::Uid(aMessage.Int1()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1767 |
const CApaAppData& app = FindAppInListL(uid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1768 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1769 |
TInt targetLen = aMessage.GetDesMaxLength(0); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1770 |
HBufC8* buf = HBufC8::NewLC(User::LeaveIfError(targetLen)); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1771 |
TPtr8 ptr = buf->Des(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1772 |
app.Capability(ptr); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1773 |
ptr.SetLength(targetLen); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1774 |
aMessage.WriteL(0, *buf); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1775 |
CleanupStack::PopAndDestroy(buf); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1776 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1777 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1778 |
void CApaAppListServSession::GetDefaultScreenNumberL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1779 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1780 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1781 |
const CApaAppData& app = FindAppInListL(uid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1782 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1783 |
aMessage.Complete(app.DefaultScreenNumber()); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1784 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1785 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1786 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1787 |
void CApaAppListServSession::SetNotify(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1788 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1789 |
if (!iNotifyMessage.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1790 |
aMessage.Panic(KApaPanicCli,ENotifierAlreadyPresent); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1791 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1792 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1793 |
const TBool completeImmediatelyIfNoScanImpendingOrInProgress=aMessage.Int0(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1794 |
if ((!completeImmediatelyIfNoScanImpendingOrInProgress) || |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1795 |
iAppArcSrv.AppFsMonitor().AnyNotificationImpending() || |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1796 |
iAppList.AppScanInProgress()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1797 |
iNotifyMessage=aMessage; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1798 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1799 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1800 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1801 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1802 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1803 |
void CApaAppArcServSession::NotifyClients(TInt aReason) |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1804 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1805 |
iAppListSession->NotifyClients(aReason); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1806 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1807 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1808 |
void CApaAppListServSession::CancelNotify() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1809 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1810 |
NotifyClients(KErrCancel); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1811 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1812 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1813 |
void CApaAppListServSession::NotifyClients(TInt aReason) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1814 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1815 |
if (!iNotifyMessage.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1816 |
iNotifyMessage.Complete(aReason); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1817 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1818 |
//Notify client for scan complete. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1819 |
NotifyScanComplete(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1820 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1821 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1822 |
void CApaAppListServSession::AppInfoProvidedByRegistrationFileL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1823 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1824 |
// get UID of required app |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1825 |
const TUid uid = TUid::Uid(aMessage.Int0()); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1826 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1827 |
// locate app in list |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1828 |
const CApaAppData& app = FindAppInListL(uid); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1829 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1830 |
const TBool registrationFileUsed = app.RegistrationFileUsed(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1831 |
TPckgC<TBool> pckg(registrationFileUsed); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1832 |
aMessage.WriteL(1, pckg); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1833 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1834 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1835 |
void CApaAppListServSession::IconFileNameL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1836 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1837 |
// get UID of required app |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1838 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1839 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1840 |
// locate app in list |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1841 |
const CApaAppData& app = FindAppInListL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1842 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1843 |
if (!app.RegistrationFileUsed()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1844 |
User::Leave(KErrNotSupported); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1845 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1846 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1847 |
TPtrC iconFileName(app.IconFileName()); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1848 |
if (iconFileName.Length() == 0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1849 |
User::Leave(KErrNotFound); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1850 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1851 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1852 |
TFileName fileName = iconFileName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1853 |
TPckgC<TFileName> pckg(fileName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1854 |
aMessage.WriteL(1, pckg); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1855 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1856 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1857 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1858 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1859 |
void CApaAppListServSession::ViewIconFileNameL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1860 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1861 |
// get UID of required app |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1862 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1863 |
// get UID of required view |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1864 |
const TUid viewUid=TUid::Uid(aMessage.Int1()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1865 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1866 |
TPtrC viewIconFileName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1867 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1868 |
// locate app in list |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1869 |
const CApaAppData& app = FindAppInListL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1870 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1871 |
if (!app.RegistrationFileUsed()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1872 |
User::Leave(KErrNotSupported); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1873 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1874 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1875 |
const CArrayPtr<CApaAppViewData>& viewDataArray = *app.Views(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1876 |
const TInt count = viewDataArray.Count(); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1877 |
for (TInt ii=0; ii<count; ii++) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1878 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1879 |
const CApaAppViewData& appViewData = *viewDataArray[ii]; |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1880 |
if (appViewData.Uid() == viewUid) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1881 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1882 |
viewIconFileName.Set(appViewData.IconFileName()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1883 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1884 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1885 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1886 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1887 |
if (viewIconFileName.Length() == 0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1888 |
User::Leave(KErrNotFound); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1889 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1890 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1891 |
TFileName fileName = viewIconFileName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1892 |
TPckgC<TFileName> pckg(fileName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1893 |
aMessage.WriteL(2, pckg); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1894 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1895 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1896 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1897 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1898 |
void CApaAppArcServSession::GetAppServicesL(const RMessage2& aMessage) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1899 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1900 |
const TInt initialBufSize = aMessage.Int2(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1901 |
if (initialBufSize) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1902 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1903 |
delete iBuffer; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1904 |
iBuffer = NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1905 |
iBuffer = GetServiceBufferL(aMessage); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1906 |
if (iBuffer->Size() > initialBufSize) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1907 |
User::Leave(iBuffer->Ptr(0).Size()); // default buffer provided by client is too small, ask client to provide buffer of correct size |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1908 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1909 |
__ASSERT_ALWAYS(iBuffer, aMessage.Panic(KApaPanicCli,EClientBadRequest)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1910 |
aMessage.WriteL(3, iBuffer->Ptr(0)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1911 |
delete iBuffer; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1912 |
iBuffer = NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1913 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1914 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1915 |
CBufBase* CApaAppArcServSession::GetServiceBufferL(const RMessage2& aMessage) const |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1916 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1917 |
CBufBase* buffer = NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1918 |
const TUid uid = TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1919 |
switch (aMessage.Function()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1920 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1921 |
case EAppListServGetAppServices: |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1922 |
buffer = iAppListSession->AppList().ServiceArrayBufferL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1923 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1924 |
case EAppListServGetServiceImplementations: |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1925 |
buffer = iAppListSession->AppList().ServiceImplArrayBufferL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1926 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1927 |
case EAppListServGetServiceImplementationsDataType: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1928 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1929 |
TDataType dataType; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1930 |
TPckg<TDataType> dataType_asDescriptor(dataType); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1931 |
aMessage.ReadL(1,dataType_asDescriptor); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1932 |
buffer = iAppListSession->AppList().ServiceImplArrayBufferL(uid, dataType); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1933 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1934 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1935 |
case EAppListServGetAppServiceUids: |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1936 |
buffer = iAppListSession->AppList().ServiceUidBufferL(uid); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1937 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1938 |
case EAppListServGetAppServiceOpaqueData: |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1939 |
buffer = iAppListSession->AppList().ServiceOpaqueDataBufferL(uid, TUid::Uid(aMessage.Int1())); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1940 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1941 |
default: |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1942 |
aMessage.Panic(KApaPanicCli,EClientBadRequest); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1943 |
User::Leave(KErrNotSupported); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1944 |
break; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1945 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1946 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1947 |
return buffer; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1948 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1949 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1950 |
CApaAppListServSession::CApaAppInfo::CApaAppInfo() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1951 |
:iUid(KNullUid), iCaption(NULL), iShortCaption(NULL), iFullName(NULL) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1952 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1953 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1954 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1955 |
CApaAppListServSession::CApaAppInfo::~CApaAppInfo() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1956 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1957 |
delete iCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1958 |
delete iShortCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1959 |
delete iFullName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1960 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1961 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1962 |
void CApaAppListServSession::CApaAppInfo::SetUid(const TUid aUid) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1963 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1964 |
iUid=aUid; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1965 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1966 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1967 |
void CApaAppListServSession::CApaAppInfo::SetCaptionL(const TDesC& aCaption) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1968 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1969 |
HBufC* caption = aCaption.AllocL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1970 |
delete iCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1971 |
iCaption = caption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1972 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1973 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1974 |
void CApaAppListServSession::CApaAppInfo::SetShortCaptionL(const TDesC& aShortCaption) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1975 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1976 |
HBufC* shortCaption = aShortCaption.AllocL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1977 |
delete iShortCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1978 |
iShortCaption = shortCaption; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1979 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1980 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1981 |
void CApaAppListServSession::CApaAppInfo::SetFullNameL(const TDesC& aFullName) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1982 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1983 |
HBufC* fullName = aFullName.AllocL(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1984 |
delete iFullName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1985 |
iFullName = fullName; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1986 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1987 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1988 |
void CApaAppListServSession::RegisterListPopulationCompleteObserver(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1989 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1990 |
if (!iCompletionOfListPopulationObserverMsg.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1991 |
aMessage.Panic(KApaPanicCli,EObserverAlreadyPresent); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1992 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1993 |
{ |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
1994 |
if(iAppList.IsFirstScanComplete()) |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1995 |
aMessage.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1996 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1997 |
iCompletionOfListPopulationObserverMsg=aMessage; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1998 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
1999 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2000 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2001 |
void CApaAppArcServSession::NotifyClientForCompletionOfListPopulation() |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2002 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2003 |
iAppListSession->NotifyClientForCompletionOfListPopulation(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2004 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2005 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2006 |
void CApaAppListServSession::NotifyClientForCompletionOfListPopulation() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2007 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2008 |
if (!iCompletionOfListPopulationObserverMsg.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2009 |
iCompletionOfListPopulationObserverMsg.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2010 |
} //lint !e1762 Suppress member function could be made const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2011 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2012 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2013 |
void CApaAppListServSession::CancelListPopulationCompleteObserver() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2014 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2015 |
if (!iCompletionOfListPopulationObserverMsg.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2016 |
iCompletionOfListPopulationObserverMsg.Complete(KErrCancel); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2017 |
} //lint !e1762 Suppress member function could be made const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2018 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2019 |
void CApaAppArcServSession::NotifyClientOfDataMappingChange() |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2020 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2021 |
if (!iMessage_NotifyOnDataMappingChange.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2022 |
iMessage_NotifyOnDataMappingChange.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2023 |
} //lint !e1762 Suppress member function could be made const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2024 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2025 |
void CApaAppListServSession::MatchesSecurityPolicyL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2026 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2027 |
const TUid appUid=TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2028 |
TApaAppInfo* const appInfo=new(ELeave) TApaAppInfo; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2029 |
CleanupStack::PushL(appInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2030 |
//Get the app info for the given App uid. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2031 |
GetAppInfoL(appUid, *appInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2032 |
const TPtrC executableName(appInfo->iFullName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2033 |
//Create a process only if the executable name is of non zero length |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2034 |
if (executableName.Length() != 0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2035 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2036 |
RProcess process; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2037 |
TInt result = process.Create(executableName, KNullDesC); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2038 |
//Proceed with checking the security policy if the process is created normally |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2039 |
if (result == KErrNone) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2040 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2041 |
TPckgBuf<TSecurityPolicy> securityPolicy; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2042 |
aMessage.ReadL(1,securityPolicy); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2043 |
aMessage.Complete(securityPolicy().CheckPolicy(process)); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2044 |
process.Close(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2045 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2046 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2047 |
aMessage.Complete(result); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2048 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2049 |
else |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2050 |
aMessage.Complete(KErrNotFound); |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2051 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2052 |
CleanupStack::PopAndDestroy(appInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2053 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2054 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2055 |
void CApaAppListServSession::SetAppShortCaptionL(const RMessage2& aMessage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2056 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2057 |
const TUid uid=TUid::Uid(aMessage.Int0()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2058 |
CApaAppData* app=NULL; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2059 |
TApaAppEntry entry; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2060 |
if (!FindAppInList(app,entry,uid)) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2061 |
User::Leave(KErrNotFound); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2062 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2063 |
const TInt length = aMessage.GetDesLength(1); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2064 |
if(length < 0) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2065 |
User::Leave(length); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2066 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2067 |
HBufC* const shortCaption = HBufC::NewLC(length); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2068 |
TPtr captionPtr(shortCaption->Des()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2069 |
aMessage.ReadL(1, captionPtr); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2070 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2071 |
TLanguage appLanguage = TLanguage(aMessage.Int2()); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2072 |
iAppList.AddCustomAppInfoInListL(uid, appLanguage, *shortCaption); |
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2073 |
if(app->ApplicationLanguage() == appLanguage) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2074 |
app->SetShortCaptionL(*shortCaption); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2075 |
else if(appLanguage==ELangNone) |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2076 |
iAppList.UpdateAppListByShortCaptionL(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2077 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2078 |
CleanupStack::PopAndDestroy(shortCaption); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2079 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2080 |
|
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2081 |
|
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2082 |
void CApaAppArcServSession::NotifyScanComplete() |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2083 |
{ |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2084 |
iAppListSession->NotifyScanComplete(); |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2085 |
} |
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2086 |
|
1
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2087 |
void CApaAppListServSession::NotifyScanComplete() |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2088 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2089 |
//See if the session is intrested in scan complete notification. |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2090 |
if (!iNotifyOnScanCompleteMsg.IsNull()) |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2091 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2092 |
iNotifyOnScanCompleteMsg.Complete(KErrNone); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2093 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2094 |
iNonNativeApplicationsManager->NotifyScanComplete(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2095 |
} //lint !e1762 Suppress member function could be made const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2096 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2097 |
// TSizeArrayItemWriter |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2098 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2099 |
TInt TSizeArrayItemWriter::ArrayItemCount() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2100 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2101 |
return iArray.Count(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2102 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2103 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2104 |
TInt TSizeArrayItemWriter::ArrayItemSize() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2105 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2106 |
return sizeof(TSize); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2107 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2108 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2109 |
void TSizeArrayItemWriter::WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2110 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2111 |
const TSize& size = iArray[aIndex]; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2112 |
aWriteStream.WriteUint32L(size.iWidth); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2113 |
aWriteStream.WriteUint32L(size.iHeight); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2114 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2115 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2116 |
// TViewDataArrayItemWriter |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2117 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2118 |
TInt TViewDataArrayItemWriter::ArrayItemCount() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2119 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2120 |
return iArray.Count(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2121 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2122 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2123 |
TInt TViewDataArrayItemWriter::ArrayItemSize() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2124 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2125 |
return sizeof(TApaAppViewInfo); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2126 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2127 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2128 |
void TViewDataArrayItemWriter::WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2129 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2130 |
const CApaAppViewData& appViewData=*(iArray[aIndex]); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2131 |
aWriteStream << TApaAppViewInfo(appViewData.Uid(),appViewData.Caption(),appViewData.ScreenMode()); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2132 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2133 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2134 |
// TDesCArrayItemWriter |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2135 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2136 |
TInt TDesCArrayItemWriter::ArrayItemCount() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2137 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2138 |
return iArray.Count(); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2139 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2140 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2141 |
TInt TDesCArrayItemWriter::ArrayItemSize() const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2142 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2143 |
return sizeof(TFileName); |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2144 |
} |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2145 |
|
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2146 |
void TDesCArrayItemWriter::WriteArrayItemL(RWriteStream& aWriteStream,TInt aIndex) const |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2147 |
{ |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2148 |
aWriteStream << iArray[aIndex]; |
8758140453c0
Added Symbian2 smoketests from FBF at changeset bde28f2b1d99
Maciej Seroka <maciejs@symbian.org>
parents:
diff
changeset
|
2149 |
} |
57
b8d18c84f71c
Re-enabled smoke test for Language-setting
Maciej Seroka <maciejs@symbian.org>
parents:
6
diff
changeset
|
2150 |