|
1 /* |
|
2 * Copyright (c) 2005 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 |
|
21 #ifndef CMCECOMEXTERNALSINK_H |
|
22 #define CMCECOMEXTERNALSINK_H |
|
23 |
|
24 #include <e32std.h> |
|
25 #include "mcecomexternalsource.h" |
|
26 #include "mcecommediasink.h" |
|
27 |
|
28 /** |
|
29 * |
|
30 * |
|
31 * @lib |
|
32 */ |
|
33 class CMceComExternalSink: public CMceComMediaSink |
|
34 { |
|
35 |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Constructor |
|
40 */ |
|
41 static CMceComExternalSink* NewL(); |
|
42 |
|
43 /** |
|
44 * Constructor |
|
45 */ |
|
46 static CMceComExternalSink* NewLC(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 ~CMceComExternalSink(); |
|
52 |
|
53 |
|
54 public: // from CMceComMediaSource |
|
55 |
|
56 /** |
|
57 * Internalizes flat data |
|
58 * @param aReadStream read stream |
|
59 */ |
|
60 void InternalizeFlatL( RReadStream& aReadStream ); |
|
61 |
|
62 /** |
|
63 * Externalizes flat data |
|
64 * @param aWriteStream write stream |
|
65 */ |
|
66 void ExternalizeFlatL( RWriteStream& aWriteStream ); |
|
67 |
|
68 /** |
|
69 * Clones this object |
|
70 * @return the cloned object |
|
71 */ |
|
72 CMceComMediaSink* CloneL(); |
|
73 |
|
74 #ifdef MCE_COMMON_SERVER_SIDE |
|
75 |
|
76 /** |
|
77 * Returns mcc type for mcc endpoint |
|
78 * @return mcc type |
|
79 */ |
|
80 const TUid MccType(); |
|
81 |
|
82 /** |
|
83 * Prepares this endpoint |
|
84 */ |
|
85 void PrepareL(); |
|
86 |
|
87 #endif//MCE_COMMON_SERVER_SIDE |
|
88 |
|
89 |
|
90 protected: |
|
91 |
|
92 /** |
|
93 * C++ default constructor. |
|
94 */ |
|
95 CMceComExternalSink(); |
|
96 |
|
97 }; |
|
98 |
|
99 |
|
100 #endif |