filemanager/src/filemanager/src/listviewitems.h
changeset 37 15bc28c9dd51
parent 16 ada7962b4308
child 46 d58987eac7e8
equal deleted inserted replaced
16:ada7962b4308 37:15bc28c9dd51
     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 *     Zhiqiang Yang <zhiqiang.yang@nokia.com>
       
    14 * 
       
    15 * Description:
       
    16 *     The header file of the disk list view item
       
    17 *
       
    18 */
       
    19 
       
    20 #ifndef LISTVIEWITEMS_H
       
    21 #define LISTVIEWITEMS_H
       
    22 
       
    23 #include "fmcommon.h"
       
    24 
       
    25 #include <hblistviewitem.h>
       
    26 
       
    27 class HbCheckBox;
       
    28 class HbLabel;
       
    29 
       
    30 class DiskListViewItem : public HbListViewItem
       
    31 {
       
    32     Q_OBJECT
       
    33 
       
    34 public:
       
    35     DiskListViewItem( QGraphicsItem *parent = 0 );
       
    36     ~DiskListViewItem();
       
    37 
       
    38     virtual bool canSetModelIndex( const QModelIndex &index ) const;
       
    39     virtual HbAbstractViewItem *createItem();
       
    40     virtual void updateChildItems();
       
    41 
       
    42 private slots:
       
    43 	void setCheckedState( int state );
       
    44 
       
    45 private:
       
    46     virtual void polish(HbStyleParameters& params);
       
    47 
       
    48 private:
       
    49     void init();
       
    50 
       
    51     HbLabel *mIconLabel;
       
    52     HbLabel *mDiskNameLabel;
       
    53     HbLabel *mSizeLabel;
       
    54     HbLabel *mFreeLabel;
       
    55     HbCheckBox *mCheckBox;
       
    56 };
       
    57 
       
    58 /* not used
       
    59 class FileListViewItem : public HbListViewItem
       
    60 {
       
    61 	Q_OBJECT
       
    62 
       
    63 public:
       
    64     FileListViewItem( QGraphicsItem *parent = 0 );
       
    65     ~FileListViewItem();
       
    66 
       
    67     virtual bool canSetModelIndex( const QModelIndex &index ) const;
       
    68     virtual HbAbstractViewItem *createItem();
       
    69     virtual void updateChildItems();
       
    70 
       
    71     virtual void polish(HbStyleParameters& params);
       
    72 private slots:
       
    73 	void setCheckedState( int state );
       
    74 
       
    75 private:
       
    76     void init();
       
    77 
       
    78     HbLabel *mIconLabel;
       
    79     HbLabel *mNameLabel;
       
    80     HbCheckBox *mCheckBox;
       
    81 };
       
    82 */
       
    83 
       
    84 #endif //LISTVIEWITEMS_H