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: hsmenuitemmodel.h |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HSMENUITEMMODEL_H |
|
19 #define HSMENUITEMMODEL_H |
|
20 |
|
21 // System includes |
|
22 #include <caquery.h> |
|
23 #include <caitemmodel.h> |
|
24 #include <HbIcon> |
|
25 |
|
26 // User includes |
|
27 #include "hsmenuservice_global.h" |
|
28 #include "hsmenuservice.h" |
|
29 |
|
30 // Class declaration |
|
31 class MENUSERVICE_EXPORT HsMenuItemModel: public CaItemModel |
|
32 { |
|
33 |
|
34 public: |
|
35 |
|
36 // Data types |
|
37 enum IconSize { |
|
38 SmallIconSize, |
|
39 BigIconSize |
|
40 }; |
|
41 |
|
42 // Function declarations |
|
43 explicit HsMenuItemModel(const CaQuery &query, |
|
44 QObject *parent = 0); |
|
45 ~HsMenuItemModel(); |
|
46 void setSort(HsSortAttribute sortAttribute); |
|
47 virtual QVariant data(const QModelIndex &index, |
|
48 int role = Qt::DisplayRole) const; |
|
49 bool newIconNeeded(const QModelIndex &index) const; |
|
50 }; |
|
51 |
|
52 #endif // HSMENUITEMMODEL_H |