|
1 /* |
|
2 * Copyright (c) 2002-2004 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: Object to offer some common utility functions to Iptv engine testing* |
|
15 */ |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CIPTVTESTVCAPIUTIL_H |
|
21 #define CIPTVTESTVCAPIUTIL_H |
|
22 |
|
23 // INCLUDES |
|
24 //#include <TIptvIapList.h> |
|
25 //#include <CIptvService.h> |
|
26 #include "CIptvVodContentClient.h" |
|
27 #include "MIptvVodContentClientObserver.h" |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 //class CIptvService; |
|
38 class CIptvVodContentContentFullDetails; |
|
39 class CIptvTestVodContentAllDetails; |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * |
|
45 * |
|
46 * |
|
47 * |
|
48 * @since |
|
49 */ |
|
50 class CIptvTestVCApiUtil : public CBase, public MIptvVodContentClientObserver |
|
51 { |
|
52 public: // Constructors and destructor |
|
53 |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 */ |
|
57 IMPORT_C static CIptvTestVCApiUtil* NewL(); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 IMPORT_C virtual ~CIptvTestVCApiUtil(); |
|
63 |
|
64 |
|
65 public: |
|
66 //functions from baseclasses |
|
67 void HandleEpgManagerMsgL(TInt aMsg, TInt aInfo, TIptvServiceId aServiceId); |
|
68 |
|
69 // New functions |
|
70 /** |
|
71 * |
|
72 * @since |
|
73 * @param |
|
74 */ |
|
75 TBool GetContentIdsL(TIptvServiceId aServiceId, TUint32 aIAPId, RArray<TIptvContentId>& aContentIdArray, TUint32 aMaxSize, TUint32 aMaxPlaytime); |
|
76 |
|
77 /** |
|
78 * |
|
79 */ |
|
80 void GetEcgCategoryListL(TUint32 aServiceId, TUint32 aParentCategoryId, RPointerArray<CIptvVodContentCategoryBriefDetails>& aCategoryList); |
|
81 |
|
82 /** |
|
83 * |
|
84 */ |
|
85 void GetEcgListL(TUint32 aServiceId, TUint32 aCategoryId, RPointerArray<CIptvVodContentContentBriefDetails>& aEcgList); |
|
86 |
|
87 /** |
|
88 * |
|
89 */ |
|
90 TInt GetVodContentContentDetailsL(TUint32 aServiceId, TUint32 aContentId, CIptvVodContentContentFullDetails& aContentDetails); |
|
91 |
|
92 /*** |
|
93 * |
|
94 */ |
|
95 TInt GetContentAccessListL(TUint32 aServiceId, TUint32 aContentId, RPointerArray<CIptvMediaContent>& aCAList); |
|
96 |
|
97 /** |
|
98 * |
|
99 */ |
|
100 void GetVodContentAllDetailsListL( TUint32 aServiceId, RPointerArray<CIptvTestVodContentAllDetails>& aDetailsList ); |
|
101 |
|
102 private: |
|
103 |
|
104 /** |
|
105 * C++ default constructor. |
|
106 */ |
|
107 CIptvTestVCApiUtil(); |
|
108 |
|
109 /** |
|
110 * By default Symbian 2nd phase constructor is private. |
|
111 */ |
|
112 void ConstructL(); |
|
113 |
|
114 enum TIptvTestActiveWaitCmd |
|
115 { |
|
116 EActiveWaitStart, |
|
117 EActiveWaitStop |
|
118 }; |
|
119 |
|
120 void ActiveWait( TIptvTestActiveWaitCmd aActiveWaitCmd ); |
|
121 |
|
122 /** |
|
123 * Checks that VOD content client member is up to date. |
|
124 */ |
|
125 void CheckVodContentClient( TInt aServiceId ); |
|
126 |
|
127 private: // Data |
|
128 TInt iCurrentService; |
|
129 CIptvVodContentClient* iIptvVodContentClient; |
|
130 CActiveSchedulerWait* iActiveSchedulerWait; |
|
131 |
|
132 TInt iEpgUpdateError; |
|
133 }; |
|
134 |
|
135 |
|
136 #endif // CIPTVTESTVCAPIUTIL_H |
|
137 |
|
138 // End of File |