|
1 /* |
|
2 * Copyright (c) 2006 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 |
|
19 |
|
20 #ifndef CMCEEXTERNALSINK_H |
|
21 #define CMCEEXTERNALSINK_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <MceMediaSink.h> |
|
26 |
|
27 // CONSTANTS |
|
28 const TMceSinkType KMceExternalSink = 6; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Class representing a sink for a media stream that is implemented outside MCE. |
|
34 * |
|
35 * @lib mceclient.lib |
|
36 */ |
|
37 class CMceExternalSink: public CMceMediaSink |
|
38 { |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 IMPORT_C static CMceExternalSink* NewL(); |
|
45 |
|
46 /** |
|
47 * Two-phased constructor. |
|
48 */ |
|
49 IMPORT_C static CMceExternalSink* NewLC(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 IMPORT_C ~CMceExternalSink(); |
|
55 |
|
56 public: // From CMceMediaSource |
|
57 |
|
58 /** |
|
59 * Sets the sink enabled. |
|
60 */ |
|
61 IMPORT_C void EnableL(); |
|
62 |
|
63 /** |
|
64 * Sets the sink disabled. |
|
65 */ |
|
66 IMPORT_C void DisableL(); |
|
67 |
|
68 private: |
|
69 /** |
|
70 * C++ default constructor. |
|
71 */ |
|
72 CMceExternalSink(); |
|
73 |
|
74 /** |
|
75 * Second-phase constructor. |
|
76 */ |
|
77 void ConstructL(); |
|
78 |
|
79 //for testing |
|
80 |
|
81 MCE_UNIT_TEST_DEFS |
|
82 }; |
|
83 |
|
84 #endif // CMCEEXTERNALSINK_H |