contentstorage/cautils/inc/calocalizationentry.h
changeset 60 f62f87b200ec
child 80 397d00875918
equal deleted inserted replaced
4:1a2a00e78665 60:f62f87b200ec
       
     1 /*
       
     2  * Copyright (c) 2008 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:  ?Description
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef __CAINNERLOCALIZATION_H__
       
    19 #define __CAINNERLOCALIZATION_H__
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 /**
       
    24  * Class represents Content Arsenal entry
       
    25  */
       
    26 NONSHARABLE_CLASS( CCaLocalizationEntry ): public CBase
       
    27     {
       
    28 
       
    29 public:
       
    30 
       
    31     /**
       
    32      * Destructor.
       
    33      */
       
    34     virtual ~CCaLocalizationEntry( );
       
    35 
       
    36     /**
       
    37      * Two-phased constructor.
       
    38      * @return The created object.
       
    39      */
       
    40     IMPORT_C static CCaLocalizationEntry* NewL( );
       
    41 
       
    42     /**
       
    43      * Two-phased constructor.
       
    44      * @return The created object.
       
    45      */
       
    46     IMPORT_C static CCaLocalizationEntry* NewLC( );
       
    47 
       
    48     //    GETTERS
       
    49     /**
       
    50      * Gets entry id.
       
    51      * @return Entry id.
       
    52      */
       
    53     IMPORT_C TInt GetRowId( ) const;
       
    54 
       
    55     /**
       
    56      * Gets entry id.
       
    57      * @return Entry id.
       
    58      */
       
    59     IMPORT_C TInt GetTextId( ) const;
       
    60 
       
    61     /**
       
    62      * Gets entry text.
       
    63      * @return Entry text.
       
    64      */
       
    65     IMPORT_C const RBuf& GetAttributeName( ) const;
       
    66 
       
    67     /**
       
    68      * Gets entry text.
       
    69      * @return Entry text.
       
    70      */
       
    71     IMPORT_C const RBuf& GetStringId( ) const;
       
    72     
       
    73     /**
       
    74      * Gets entry text.
       
    75      * @return Entry text.
       
    76      */
       
    77     IMPORT_C const RBuf& GetTableName( ) const;  
       
    78     
       
    79     /**
       
    80      * Gets LocalizedString
       
    81      * @return LocalizedString
       
    82      */
       
    83     IMPORT_C const RBuf& GetLocalizedString( ) const;
       
    84     
       
    85     // SETTERS
       
    86     /**
       
    87 
       
    88      */
       
    89     IMPORT_C void SetRowId( TUint aRowId );
       
    90     
       
    91     /**
       
    92 
       
    93      */
       
    94     IMPORT_C void SetTextId( TUint aId );
       
    95     
       
    96 
       
    97     /**
       
    98      * Sets the entry text.
       
    99      * @param aText Entry text.
       
   100      */
       
   101     IMPORT_C void SetAttributeNameL( const TDesC& aAttribName );
       
   102 
       
   103     /**
       
   104      * Sets the entry text.
       
   105      * @param aText Entry text.
       
   106      */
       
   107     IMPORT_C void SetStringIdL( const TDesC& aStringId );
       
   108     
       
   109     /**
       
   110      * Sets the entry text.
       
   111      * @param aText Entry text.
       
   112      */
       
   113     IMPORT_C void SetTableNameL( const TDesC& aTableName );
       
   114 
       
   115     /**
       
   116      * Sets the Localized String 
       
   117      * @param aLocalName LocalizedString
       
   118      */
       
   119     IMPORT_C void SetLocalizedStringL( const TDesC& aLocalName );
       
   120     
       
   121     
       
   122 /*    *
       
   123      * Externalizes object to the stream
       
   124      * @param aStream a write stream
       
   125      
       
   126     IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
       
   127 
       
   128     *
       
   129      * Internalizes stream to the object
       
   130      * @param aStream a read stream
       
   131      
       
   132     IMPORT_C void InternalizeL( RReadStream& aStream );*/
       
   133 
       
   134 private:
       
   135 
       
   136     /**
       
   137      * Second phased constructor.
       
   138      */
       
   139     void ConstructL( );
       
   140 
       
   141     /**
       
   142      * Constructor
       
   143      */
       
   144     CCaLocalizationEntry( );
       
   145 
       
   146 private:
       
   147     // data
       
   148 	/*,                                                    
       
   149 	                                      
       
   150 	  				
       
   151 	                                  
       
   152 	
       
   153     /*
       
   154      * Unique identifier of the localization entry.
       
   155      */
       
   156     TInt iId;
       
   157     
       
   158     /*
       
   159      * Unique identifier of the entry to update.
       
   160      */
       
   161     TInt iRowId;
       
   162 
       
   163     /*
       
   164      * Name of table to update.
       
   165      * Own.
       
   166      */
       
   167     RBuf iTableName;
       
   168     
       
   169     /*
       
   170      * Name of attribute (column) to update.
       
   171      * Own.
       
   172      */
       
   173     RBuf iAttribName;
       
   174     
       
   175     /*
       
   176      * String it to translate.
       
   177      * Own.
       
   178      */
       
   179     RBuf iStringId;
       
   180 
       
   181     /*
       
   182      * Translated string.
       
   183      * Own.
       
   184      */
       
   185     RBuf iLocalName;
       
   186 
       
   187      };
       
   188 
       
   189 #endif // __CAINNERLOCALIZATION_H__