|
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: VideoProxyModelAllVideos class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef VIDEOPROXYMODELALLVIDEOS_H |
|
19 #define VIDEOPROXYMODELALLVIDEOS_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <qsortfilterproxymodel.h> |
|
23 #include <mpxitemid.h> |
|
24 #include "videocollectioncommon.h" |
|
25 #include "videoproxymodelgeneric.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class VideoProxyModelAllVideos : public VideoProxyModelGeneric |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 /** |
|
35 * Contructor. |
|
36 * |
|
37 * @param QObject parent object. |
|
38 */ |
|
39 VideoProxyModelAllVideos(QObject *parent = 0); |
|
40 |
|
41 /** |
|
42 * Destructor. |
|
43 * |
|
44 */ |
|
45 virtual ~VideoProxyModelAllVideos(); |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * Gets the currently opened item. |
|
51 * |
|
52 * @param None. |
|
53 * @return TMPXItemId. |
|
54 */ |
|
55 TMPXItemId getOpenItem() const; |
|
56 |
|
57 protected: // from QSortFilterProxyModel |
|
58 |
|
59 /** |
|
60 * Filtering functionality. Called by the fw. |
|
61 * |
|
62 * @param source_row row to check |
|
63 * @param source_parent row's parent |
|
64 * |
|
65 * @return bool row accepted(true) or not accepted(false) |
|
66 */ |
|
67 bool filterAcceptsRow(int source_row, const QModelIndex & source_parent) const; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif // VIDEOPROXYMODELALLVIDEOS_H |