|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Defines activation message for videoplayer application. |
|
15 |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef VIDEOPLAYERACTIVATIONMESSAGE_H |
|
22 #define VIDEOPLAYERACTIVATIONMESSAGE_H |
|
23 |
|
24 // INCLUDES |
|
25 |
|
26 #include <e32base.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 /** |
|
31 * Minimum length of this object in bytes, can be used to check length of |
|
32 * parameter string that is passed to applications and should be this object. |
|
33 */ |
|
34 const TInt KVideoPlayerActivationMessageMinLength = 20; |
|
35 |
|
36 /** |
|
37 * Max length of path. |
|
38 */ |
|
39 const TInt KVideoPlayerMsgMaxPath = 255; |
|
40 |
|
41 /** |
|
42 * Custom Uid when sending activation message. |
|
43 */ |
|
44 const TInt KVideoPlayerVodStartPlayer = 10500; |
|
45 |
|
46 /** |
|
47 * Custom Uid when sending activation message to make progressive download. |
|
48 */ |
|
49 const TInt KVideoPlayerStartPDlPlayer = 10501; |
|
50 |
|
51 // CLASS DECLARATION |
|
52 |
|
53 /** |
|
54 * Data class for VideoPlayer activation message. |
|
55 * |
|
56 * @lib IptvUtil.dll |
|
57 * @since R4 |
|
58 */ |
|
59 class TVideoPlayerActivationMessage |
|
60 { |
|
61 public: // Data types. |
|
62 |
|
63 /** |
|
64 * Message types. |
|
65 */ |
|
66 enum TMessageType |
|
67 { |
|
68 ENoType = 0, |
|
69 ELaunchVideoToPlayer, |
|
70 ELaunchLastWatchedVideo, |
|
71 EOpenVideoStorage, |
|
72 EOpenInternetVideos, |
|
73 ELaunchServiceById, |
|
74 EOpenServiceCatalogue, |
|
75 EOpenVideoShop, |
|
76 ELiveTVMessage, |
|
77 EOpenRecordingsCategory, |
|
78 EOpenVCSettings, |
|
79 EOpenVCSettingsFeedSubscriptions, |
|
80 EOpenVCSettingsAddFeed, |
|
81 ELiveTVMessageLastWatched, |
|
82 EOpenVCSettingsLiveTVSubscriptions, |
|
83 EOpenVCSettingsEditFeed |
|
84 }; |
|
85 |
|
86 /** |
|
87 * Message sender. |
|
88 */ |
|
89 enum TMessageSender |
|
90 { |
|
91 ENoSender = 0, |
|
92 ENotification, |
|
93 EActiveSpace, |
|
94 EIptvMainLastWatched, |
|
95 EMatrixMenu |
|
96 }; |
|
97 |
|
98 public: // Common data members |
|
99 |
|
100 /** |
|
101 * TMessageType |
|
102 */ |
|
103 TMessageType iMsgType; |
|
104 |
|
105 /** |
|
106 * TMessageSender |
|
107 */ |
|
108 TMessageSender iMsgSender; |
|
109 |
|
110 /** |
|
111 * Service Id |
|
112 */ |
|
113 TUint32 iServiceId; |
|
114 |
|
115 /** |
|
116 * Group Id |
|
117 */ |
|
118 TUint32 iGroupId; |
|
119 |
|
120 #if !defined(__SERIES60_30__) && !defined(__SERIES60_31__) && !defined(__SERIES60_32__) |
|
121 /** |
|
122 * Channel Id |
|
123 */ |
|
124 TInt64 iChannelId; |
|
125 #endif |
|
126 |
|
127 /** |
|
128 * Application Uid of message sender. |
|
129 */ |
|
130 TUid iSenderUid; |
|
131 |
|
132 public: // Vod data members. |
|
133 |
|
134 /** |
|
135 * Deprecated. Do not use. |
|
136 */ |
|
137 TUid iUid; |
|
138 |
|
139 /** |
|
140 * Deprecated. Do not use. |
|
141 */ |
|
142 TInt32 iActive; |
|
143 |
|
144 /** |
|
145 * Deprecated. Do not use. |
|
146 */ |
|
147 TBool iSingle; |
|
148 |
|
149 /** |
|
150 * File Id (Global file Id 1/2). |
|
151 */ |
|
152 TUint32 iFileId; |
|
153 |
|
154 /** |
|
155 * Drive Id, see TDriveNumber (Global file Id 2/2). |
|
156 */ |
|
157 TInt iDrive; |
|
158 |
|
159 /** |
|
160 * Full path to video. |
|
161 */ |
|
162 TBuf<KVideoPlayerMsgMaxPath> iFullPath; |
|
163 }; |
|
164 |
|
165 #endif // XVIDEOPLAYERACTIVATIONMESSAGE_H |