equal
deleted
inserted
replaced
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 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CNTFETCHSELECTIONITEM_H |
|
19 #define CNTFETCHSELECTIONITEM_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <hbwidget.h> |
|
23 |
|
24 class QGraphicsLinearLayout; |
|
25 class HbCheckBox; |
|
26 class HbLabel; |
|
27 |
|
28 /** |
|
29 * Custom widget class for use with a HbPopup. |
|
30 * This adds a "Mark All" checkbox and a selection counter. |
|
31 */ |
|
32 class CntFetchSelectionItems : public HbWidget |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 CntFetchSelectionItems(QGraphicsItem *aParent = 0); |
|
38 ~CntFetchSelectionItems(); |
|
39 |
|
40 HbLabel* counter() const; |
|
41 |
|
42 signals: |
|
43 void passStateChanged(int aState); |
|
44 |
|
45 public slots: |
|
46 void handleStateChange(int aState); |
|
47 |
|
48 private: |
|
49 friend class TestCntFetchSelectionItems; |
|
50 |
|
51 HbCheckBox* mCheckBox; |
|
52 HbLabel* mCounterLabel; |
|
53 QGraphicsLinearLayout* mLayout; // Ownership transferred to this class |
|
54 }; |
|
55 |
|
56 #endif // CNTFETCHSELECTIONITEM_H |
|