|
1 /* |
|
2 * Copyright (c) 2008 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 the License "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: TVcxHgMyVideosIndicatorHelper class definition* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef VCXHGMYVIDEOSINDICATORHELPER_H |
|
21 #define VCXHGMYVIDEOSINDICATORHELPER_H |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include <coemain.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CVcxHgMyVideosModel; |
|
28 class CFbsBitmap; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * |
|
34 * @lib vcxhgmyvideos.lib |
|
35 */ |
|
36 NONSHARABLE_CLASS( TVcxHgMyVideosIndicatorHelper ) |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * DRM status of video, for indicator selection. |
|
42 */ |
|
43 enum TIndicatorDrmStatus |
|
44 { |
|
45 EIndicatorDrmStatusUnknown = 0, |
|
46 EIndicatorDrmStatusValid, |
|
47 EIndicatorDrmStatusExpired |
|
48 }; |
|
49 |
|
50 public: |
|
51 |
|
52 /** |
|
53 * Default constructor |
|
54 * |
|
55 */ |
|
56 TVcxHgMyVideosIndicatorHelper(); |
|
57 |
|
58 /** |
|
59 * Destructor. |
|
60 */ |
|
61 virtual ~TVcxHgMyVideosIndicatorHelper(); |
|
62 |
|
63 /** |
|
64 * Selectes which indicators should be shown for a video. |
|
65 * |
|
66 * @param aModel Reference to component's model. |
|
67 * @param aNewVideo ETrue if video is new. |
|
68 * @param aRecordingOngoing ETrue if video is recording. |
|
69 * @param aPath Path to video. |
|
70 * @param aDrmStatus TIndicatorDrmStatus. |
|
71 * @param aIndicator1 On return, indicator 1. |
|
72 * @param aIndicator2 On return, indicator 2. |
|
73 */ |
|
74 void GetIndicatorsForVideoL( CVcxHgMyVideosModel& aModel, |
|
75 TBool aNewVideo, |
|
76 TBool aRecordingOngoing, |
|
77 const TDesC& aPath, |
|
78 TIndicatorDrmStatus aDrmStatus, |
|
79 TInt& aIndicator1, |
|
80 TInt& aIndicator2 ); |
|
81 }; |
|
82 |
|
83 #endif // VCXHGMYVIDEOSINDICATORHELPER_H |