|
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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef GLXFAVMEDIAMODEL_H |
|
21 #define GLXFAVMEDIAMODEL_H |
|
22 |
|
23 #include <QAbstractItemModel> |
|
24 #include <glxmlwrapper.h> |
|
25 #include <glxuistd.h> |
|
26 |
|
27 |
|
28 |
|
29 #ifdef BUILD_FAVMEDIAMODEL |
|
30 #define GLX_MEDIAMODEL_EXPORT Q_DECL_EXPORT |
|
31 #else |
|
32 #define GLX_MEDIAMODEL_EXPORT Q_DECL_IMPORT |
|
33 #endif |
|
34 |
|
35 //forward declarations |
|
36 class GlxModelParm; |
|
37 |
|
38 |
|
39 class GLX_MEDIAMODEL_EXPORT GlxFavMediaModel : public QAbstractItemModel |
|
40 { |
|
41 Q_OBJECT |
|
42 public : |
|
43 |
|
44 GlxFavMediaModel(GlxModelParm & modelParm); |
|
45 ~GlxFavMediaModel(); |
|
46 int rowCount(const QModelIndex &parent = QModelIndex()) const; |
|
47 int columnCount(const QModelIndex &parent = QModelIndex()) const; |
|
48 QModelIndex parent(const QModelIndex &child) const; |
|
49 QVariant data(const QModelIndex &index, int role) const; |
|
50 QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; |
|
51 |
|
52 public slots: |
|
53 |
|
54 void itemsAdded(int startIndex, int endIndex); |
|
55 void itemsRemoved(int startIndex, int endIndex); |
|
56 |
|
57 private: |
|
58 GlxMLWrapper* mMLWrapper; |
|
59 GlxContextMode mContextMode; |
|
60 }; |
|
61 |
|
62 |
|
63 #endif /* GLXFAVMEDIAMODEL_H */ |