contentstorage/casrv/calocalizerscanner/inc/calocalizerscannerproxy.h
changeset 94 dbb8300717f7
parent 93 82b66994846c
child 83 156f692b1687
equal deleted inserted replaced
93:82b66994846c 94:dbb8300717f7
    19 #define CALOCALSCANNERPROXY_H
    19 #define CALOCALSCANNERPROXY_H
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include <e32std.h>
    22 #include <e32std.h>
    23 #include <e32base.h>
    23 #include <e32base.h>
       
    24 
    24 #include "hbtextresolversymbian.h"
    25 #include "hbtextresolversymbian.h"
    25 
    26 
    26 #include "castorage_global.h"
    27 #include "castorage_global.h"
    27 
    28 
    28 // FORWARD DECLARATIONS
    29 // FORWARD DECLARATIONS
    34  *  CCaLocalizerScannerProxy
    35  *  CCaLocalizerScannerProxy
    35  *
    36  *
    36  */
    37  */
    37 class CCaLocalizerScannerProxy : public CBase
    38 class CCaLocalizerScannerProxy : public CBase
    38     {
    39     {
    39     
       
    40 
       
    41 public:
    40 public:
    42     
       
    43 
       
    44     /**
    41     /**
    45      * Two-phased constructor.
    42      * Two-phased constructor.
    46      */
    43      */
    47     static CCaLocalizerScannerProxy* NewL( CCaStorageProxy* storageProxy );
    44     static CCaLocalizerScannerProxy* NewL( CCaStorageProxy* storageProxy );
    48     
    45     
    53     
    50     
    54     /**
    51     /**
    55      * Destructor.
    52      * Destructor.
    56      */
    53      */
    57     ~CCaLocalizerScannerProxy( );
    54     ~CCaLocalizerScannerProxy( );
    58 
    55     
       
    56     /**
       
    57      * Get localization rows and updates database 
       
    58      */
       
    59     void UpdateLocalNamesL( );
    59    
    60    
    60 private:
    61 private:
    61 
    62 
    62     /**
    63     /**
    63      * Constructor.
    64      * Constructor.
    67     /**
    68     /**
    68      * By default Symbian 2nd phase constructor is private.
    69      * By default Symbian 2nd phase constructor is private.
    69      */
    70      */
    70     void ConstructL( );
    71     void ConstructL( );
    71 
    72 
    72 private:
       
    73     /**
       
    74      * Get localization rows and updates database 
       
    75      */
       
    76     void UpdateLocalNamesL( );
       
    77 
       
    78     /**
    73     /**
    79      * Gets localization rows from database as table of CCaLocalizationEntries
    74      * Gets localization rows from database as table of CCaLocalizationEntries
    80      * @param aLocals pointers to localization entries
    75      * @param aLocals pointers to localization entries
    81      */
    76      */
    82     void GetLocalizationRowsL( RPointerArray<CCaLocalizationEntry>& aLocals );
    77     void GetLocalizationRowsL( RPointerArray<CCaLocalizationEntry>& aLocals );
    83     
    78     
       
    79     /**
       
    80      * Gets localized names from translation files
       
    81      * @param aLocEntry localization entry
       
    82      * @return localized name
       
    83      */
       
    84     HBufC* GetLocalizedNameLC( const CCaLocalizationEntry* aLocEntry );
       
    85     
       
    86     /**
       
    87      * Gets entry text from the storage
       
    88      * @param aEntries array containing entries
       
    89      * @param aId entry id
       
    90      * @return entry text
       
    91      */
    84     const TDesC& GetEntryText(
    92     const TDesC& GetEntryText(
    85             RPointerArray<CCaInnerEntry> aEntries, TInt aId );
    93             const RPointerArray<CCaInnerEntry>& aEntries, TInt aId );
       
    94 
       
    95 private:
       
    96 	
    86     /*
    97     /*
    87      * Not own
    98      * Not own
    88      */
    99      */
    89     CCaStorageProxy* iStorageProxy;
   100     CCaStorageProxy* iStorageProxy;
    90 
   101 
    91     /*
   102     /*
    92      * Owned
   103      * Recent translation file name
    93      */
   104      */
    94     HbTextResolverSymbian* iResolver;
   105     RBuf iRecentQmFile;
    95 
       
    96     };
   106     };
    97 
   107 
    98 #endif // CALOCALSCANNERPROXY_H
   108 #endif // CALOCALSCANNERPROXY_H