31
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef FBDRIVELISTVIEWITEMS_H
|
|
19 |
#define FBDRIVELISTVIEWITEMS_H
|
|
20 |
|
|
21 |
#include <HbListViewItem>
|
|
22 |
|
|
23 |
#include <QGraphicsWidget>
|
|
24 |
#include <QtGlobal>
|
|
25 |
|
|
26 |
class HbAbstractViewItem;
|
|
27 |
class HbLabel;
|
|
28 |
class HbCheckBox;
|
|
29 |
class HbWidget;
|
|
30 |
|
|
31 |
class QGraphicsLinearLayout;
|
|
32 |
class QModelIndex;
|
|
33 |
class QGraphicsItem;
|
|
34 |
|
|
35 |
class FbDriveListViewItem : public HbListViewItem
|
|
36 |
{
|
|
37 |
Q_OBJECT
|
|
38 |
|
|
39 |
public:
|
|
40 |
FbDriveListViewItem( QGraphicsItem *parent = 0 );
|
|
41 |
~FbDriveListViewItem();
|
|
42 |
|
|
43 |
virtual bool canSetModelIndex(const QModelIndex &index) const;
|
|
44 |
virtual HbAbstractViewItem *createItem();
|
|
45 |
virtual void updateChildItems();
|
|
46 |
|
|
47 |
private slots:
|
|
48 |
void setCheckedState( int state );
|
|
49 |
|
|
50 |
private:
|
|
51 |
virtual void polish(HbStyleParameters& params);
|
|
52 |
|
|
53 |
private:
|
|
54 |
void init();
|
|
55 |
|
|
56 |
QGraphicsLinearLayout *hLayout;
|
|
57 |
|
|
58 |
HbLabel *mDiskNameLabel;
|
|
59 |
HbLabel *mSizeLabel;
|
|
60 |
HbLabel *mFreeLabel;
|
|
61 |
//HbCheckBox *mCheckBox;
|
|
62 |
HbLabel *mIconLabel;
|
|
63 |
};
|
|
64 |
|
|
65 |
#endif // FBDRIVELISTVIEWITEMS_H
|