|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef __CMCETESTUISTREAMVIEWMODEL_H |
|
19 #define __CMCETESTUISTREAMVIEWMODEL_H |
|
20 |
|
21 // INCLUDES |
|
22 |
|
23 #include <bamdesca.h> |
|
24 #include <badesca.h> |
|
25 |
|
26 #include "MMCETestUIEngineCmdProvider.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 |
|
30 class CMCETestUIEngine; |
|
31 class CMCETestUIEngineSession; |
|
32 class CMCETestUIEngineAudioStream; |
|
33 class CMCETestUIEngineVideoStream; |
|
34 |
|
35 // CLASS DECLARATION |
|
36 |
|
37 /** |
|
38 * CMCETestUISessionViewModel |
|
39 * |
|
40 */ |
|
41 class CMCETestUIStreamViewModel : public MDesCArray |
|
42 { |
|
43 public: // Constructors and destructor |
|
44 |
|
45 static CMCETestUIStreamViewModel* NewL( |
|
46 CMCETestUIEngine& aEngine, |
|
47 CMCETestUIEngineAudioStream& aStream ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CMCETestUIStreamViewModel (); |
|
53 |
|
54 public: // from MDesCArray |
|
55 |
|
56 TInt MdcaCount() const; |
|
57 TPtrC MdcaPoint( TInt aIndex ) const; |
|
58 |
|
59 public: // New functions |
|
60 TBool IsAudioSourceSelected( TInt aIndex ) const; |
|
61 TInt SelectedAudioSinkIndex( TInt aIndex ) const; |
|
62 TInt SelectedAudioCodecIndex( TInt aIndex ) const; |
|
63 MMCETestUIEngineCmdProvider& CmdProvider( TInt aIndex ); |
|
64 |
|
65 private: // Constructors |
|
66 |
|
67 CMCETestUIStreamViewModel( CMCETestUIEngine& aEngine, |
|
68 CMCETestUIEngineAudioStream& aStream ); |
|
69 CMCETestUIStreamViewModel(); |
|
70 |
|
71 void ConstructL(); |
|
72 |
|
73 |
|
74 private: // convenience functions |
|
75 |
|
76 // void PopulateStreamsL(); |
|
77 void PopulateSourcesL(); |
|
78 void PopulateSinksL(); |
|
79 void PopulateCodecsL(); |
|
80 |
|
81 private: //data |
|
82 |
|
83 CDesCArray* iArray; |
|
84 CMCETestUIEngine& iEngine; |
|
85 CMCETestUIEngineAudioStream& iStream; // Not owned |
|
86 |
|
87 TBool audioSourceSuppressed; |
|
88 TBool audioSinksSuppressed; |
|
89 |
|
90 }; |
|
91 |
|
92 /** |
|
93 * CMCETestUISessionViewModel |
|
94 * |
|
95 */ |
|
96 class CMCETestUIVideoStreamViewModel : public MDesCArray |
|
97 { |
|
98 public: // Constructors and destructor |
|
99 |
|
100 static CMCETestUIVideoStreamViewModel* NewL( |
|
101 CMCETestUIEngine& aEngine, |
|
102 CMCETestUIEngineVideoStream& aStream ); |
|
103 |
|
104 /** |
|
105 * Destructor. |
|
106 */ |
|
107 ~CMCETestUIVideoStreamViewModel (); |
|
108 |
|
109 public: // from MDesCArray |
|
110 |
|
111 TInt MdcaCount() const; |
|
112 TPtrC MdcaPoint( TInt aIndex ) const; |
|
113 |
|
114 public: // New functions |
|
115 TBool IsVideoSourceSelected( TInt aIndex ) const; |
|
116 TInt SelectedVideoSinkIndex( TInt aIndex ) const; |
|
117 TInt SelectedVideoCodecIndex( TInt aIndex ) const; |
|
118 MMCETestUIEngineCmdProvider& CmdProvider( TInt aIndex ); |
|
119 |
|
120 private: // Constructors |
|
121 |
|
122 CMCETestUIVideoStreamViewModel( CMCETestUIEngine& aEngine, |
|
123 CMCETestUIEngineVideoStream& aStream ); |
|
124 CMCETestUIVideoStreamViewModel(); |
|
125 |
|
126 void ConstructL(); |
|
127 |
|
128 |
|
129 private: // convenience functions |
|
130 |
|
131 // void PopulateStreamsL(); |
|
132 void PopulateVideoSourcesL(); |
|
133 void PopulateVideoSinksL(); |
|
134 void PopulateVideoCodecsL(); |
|
135 |
|
136 private: //data |
|
137 |
|
138 CDesCArray* iArray; |
|
139 CMCETestUIEngine& iEngine; |
|
140 CMCETestUIEngineVideoStream& iStream; // Not owned |
|
141 |
|
142 TBool videoSourceSuppressed; |
|
143 TBool videoSinksSuppressed; |
|
144 }; |
|
145 |
|
146 #endif |
|
147 |
|
148 // End of File |