qtinternetradio/irdb/inc/imgwrapper.h
changeset 16 5723da102db1
equal deleted inserted replaced
15:065198191975 16:5723da102db1
       
     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 * Description: 
       
    13 *
       
    14 */
       
    15 
       
    16 #ifndef _IMG_WRAPPER_H_
       
    17 #define _IMG_WRAPPER_H_
       
    18 
       
    19 #include "irdbexport.h"
       
    20 #include "irdbwrapper.h"
       
    21 
       
    22 class IRDB_DLL_EXPORT imgWrapper: public IRDBWrapper
       
    23 {
       
    24 public:
       
    25     imgWrapper();
       
    26     ~imgWrapper();
       
    27 
       
    28 public:
       
    29     /*
       
    30     * RowData:   [direction: in] table row value, only accept imgUrl and imgLocalFile column;
       
    31     * channelId: [direction: in] channelid for update row;
       
    32     * return true if operation success; 
       
    33     */     
       
    34     bool updateImg(const columnMap* const RowData,
       
    35                    const uint& channelId,
       
    36                    const logoMap* const logoData = NULL);    
       
    37 
       
    38     QList<QVariant*>* getImg(const columnMap* const condAND = NULL,  
       
    39                              const columnMap* const condOR = NULL);
       
    40 
       
    41 private:
       
    42     /*
       
    43     * It is called by IRDB instance;
       
    44     * IRDB instance delivers rows set to IRDBWrapper via this function;
       
    45     * the rows set is storaged in m_IRDataSet;
       
    46     */
       
    47     bool getIRTableCB(QSqlQuery& aIRDataSet, 
       
    48                       QList<QVariant*>* pDataSet);
       
    49  
       
    50 };
       
    51 
       
    52 #endif
       
    53