85
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: CCaLocalizerScannerProxy.h
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef CALOCALSCANNERPROXY_H
|
|
19 |
#define CALOCALSCANNERPROXY_H
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <e32std.h>
|
|
23 |
#include <e32base.h>
|
93
|
24 |
#include "hbtextresolversymbian.h"
|
85
|
25 |
|
|
26 |
#include "castorage_global.h"
|
|
27 |
|
|
28 |
// FORWARD DECLARATIONS
|
|
29 |
class CCaLocalizationEntry;
|
|
30 |
class CCaStorageProxy;
|
93
|
31 |
class CCaInnerEntry;
|
85
|
32 |
|
|
33 |
/**
|
|
34 |
* CCaLocalizerScannerProxy
|
|
35 |
*
|
|
36 |
*/
|
|
37 |
class CCaLocalizerScannerProxy : public CBase
|
|
38 |
{
|
|
39 |
|
|
40 |
|
|
41 |
public:
|
|
42 |
|
|
43 |
|
|
44 |
/**
|
|
45 |
* Two-phased constructor.
|
|
46 |
*/
|
|
47 |
static CCaLocalizerScannerProxy* NewL( CCaStorageProxy* storageProxy );
|
|
48 |
|
|
49 |
/**
|
|
50 |
* Two-phased constructor.
|
|
51 |
*/
|
|
52 |
static CCaLocalizerScannerProxy* NewLC( CCaStorageProxy* aStorageProxy );
|
|
53 |
|
|
54 |
/**
|
|
55 |
* Destructor.
|
|
56 |
*/
|
|
57 |
~CCaLocalizerScannerProxy( );
|
|
58 |
|
93
|
59 |
|
85
|
60 |
private:
|
|
61 |
|
|
62 |
/**
|
|
63 |
* Constructor.
|
|
64 |
*/
|
|
65 |
CCaLocalizerScannerProxy( CCaStorageProxy* aStorageProxy );
|
|
66 |
|
|
67 |
/**
|
|
68 |
* By default Symbian 2nd phase constructor is private.
|
|
69 |
*/
|
|
70 |
void ConstructL( );
|
|
71 |
|
|
72 |
private:
|
|
73 |
/**
|
|
74 |
* Get localization rows and updates database
|
|
75 |
*/
|
|
76 |
void UpdateLocalNamesL( );
|
|
77 |
|
|
78 |
/**
|
|
79 |
* Gets localization rows from database as table of CCaLocalizationEntries
|
|
80 |
* @param aLocals pointers to localization entries
|
|
81 |
*/
|
|
82 |
void GetLocalizationRowsL( RPointerArray<CCaLocalizationEntry>& aLocals );
|
|
83 |
|
93
|
84 |
const TDesC& GetEntryText(
|
|
85 |
RPointerArray<CCaInnerEntry> aEntries, TInt aId );
|
85
|
86 |
/*
|
|
87 |
* Not own
|
|
88 |
*/
|
|
89 |
CCaStorageProxy* iStorageProxy;
|
|
90 |
|
|
91 |
/*
|
93
|
92 |
* Owned
|
|
93 |
*/
|
|
94 |
HbTextResolverSymbian* iResolver;
|
85
|
95 |
|
|
96 |
};
|
|
97 |
|
|
98 |
#endif // CALOCALSCANNERPROXY_H
|