mpviewplugins/mpplaybackviewplugin/tsrc/unittest_mpplaybackview/stub/inc/mpviewbase.h
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: Base class for all Music Player views. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MPVIEWBASE_H |
|
19 #define MPVIEWBASE_H |
|
20 |
|
21 #include <QString> |
|
22 #include <hbview.h> |
|
23 #include "mpcommondefs.h" |
|
24 |
|
25 class MpViewBase : public HbView |
|
26 { |
|
27 Q_OBJECT |
|
28 |
|
29 public: |
|
30 |
|
31 void setViewMode(MpCommon::MpViewMode viewMode) { mViewMode = viewMode; } |
|
32 MpCommon::MpViewMode viewMode() { return mViewMode; } |
|
33 virtual void setDefaultView() { } |
|
34 |
|
35 signals: |
|
36 |
|
37 void songSelected( QString songPath ); |
|
38 |
|
39 protected: |
|
40 |
|
41 MpViewBase() : mViewMode(MpCommon::DefaultView) {} |
|
42 |
|
43 public: |
|
44 |
|
45 MpCommon::MpViewMode mViewMode; |
|
46 |
|
47 }; |
|
48 |
|
49 #endif // MPVIEWBASE_H |
|
50 |