upnpharvester/common/cmlibrary/inc/cmsqlimageitem.h
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2006-2007 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:      Capsulating sql items
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef __CMSQLIMAGEITEM_H
       
    24 #define __CMSQLIMAGEITEM_H
       
    25 
       
    26 // INCLUDES
       
    27 #include <e32base.h>
       
    28 #include "cmsqlgenericitem.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 /**
       
    33  *  CCmSqlImageItem class
       
    34  *  Capsulating sql item
       
    35  *  @lib cmcommon.lib
       
    36  *  @since S60 v3.0
       
    37  */
       
    38 class CCmSqlImageItem : public CCmSqlGenericItem
       
    39     {
       
    40 
       
    41 public:
       
    42 
       
    43     /* Constructors and destructor. */
       
    44 
       
    45     /**
       
    46      * Creates new CCmSqlImageItem class.
       
    47      * @param None
       
    48      * @return  pointer to CCmSqlImageItem class
       
    49      */
       
    50     IMPORT_C static CCmSqlImageItem* NewL();
       
    51     
       
    52     /**
       
    53      * Creates new CCmSqlImageItem class and 
       
    54      * leaves the instance in the cleanup stack.
       
    55      * @return pointer to CCmSqlImageItem class
       
    56      */
       
    57     IMPORT_C static CCmSqlImageItem* NewLC();
       
    58 
       
    59     /**
       
    60      * Destructor.
       
    61      */
       
    62     IMPORT_C virtual ~CCmSqlImageItem();
       
    63   
       
    64 public:
       
    65 
       
    66     /**
       
    67     * Sets resolution id
       
    68     * @since Series 60 3.1
       
    69     * @param aResolutionId, resolution id
       
    70     * @return None
       
    71     */ 
       
    72     IMPORT_C void SetResolutionId( const TInt64 aResolutionId );
       
    73 
       
    74     /**
       
    75     * Sets description field
       
    76     * @since Series 60 3.1
       
    77     * @param aDescription, description text
       
    78     * @return None
       
    79     */     
       
    80     IMPORT_C void SetDescriptionL( const TDesC8& aDescription );
       
    81 
       
    82     /**
       
    83     * Gets resolution id
       
    84     * @since Series 60 3.1
       
    85     * @return Resolution id
       
    86     */     
       
    87     IMPORT_C TInt64 ResolutionId() const;
       
    88 
       
    89     /**
       
    90     * Gets description text
       
    91     * @since Series 60 3.1
       
    92     * @return Description text
       
    93     */    
       
    94     IMPORT_C TDesC8& Description() const;
       
    95     
       
    96 protected:
       
    97 
       
    98     /**
       
    99      * Constructor.
       
   100      */
       
   101     CCmSqlImageItem();
       
   102 
       
   103     /**
       
   104      * Second-phase constructor.
       
   105      */
       
   106     void ConstructL();
       
   107     
       
   108 
       
   109 private: // data  
       
   110     
       
   111     // Resolution id 
       
   112     TInt64 iResolutionId;
       
   113     
       
   114     // Description data
       
   115     HBufC8* iDescription; // owned
       
   116     
       
   117     };
       
   118 
       
   119 #endif //  __CMSQLIMAGEITEM_H