|
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 #ifndef MUSHENGPREVIEWSESSION_H |
|
20 #define MUSHENGPREVIEWSESSION_H |
|
21 |
|
22 class MMusEngPreviewSessionObserver; |
|
23 |
|
24 class CMusEngPreviewSession : public CMusEngSession |
|
25 { |
|
26 |
|
27 private: |
|
28 // MMusEngPreviewSessionObserver* iSessionObserver; |
|
29 |
|
30 public: |
|
31 /** |
|
32 * Implements virtual from CMusEngSession |
|
33 */ |
|
34 IMPORT_C void Play(); |
|
35 |
|
36 |
|
37 /** |
|
38 * Implements virtual from CMusEngSession |
|
39 */ |
|
40 IMPORT_C void Pause(); |
|
41 |
|
42 /** |
|
43 * Implements virtual from CMusEngSession |
|
44 */ |
|
45 IMPORT_C void Close(); |
|
46 |
|
47 /** |
|
48 * Implements virtual from CMusEngSession |
|
49 */ |
|
50 IMPORT_C void Mute(); |
|
51 |
|
52 /** |
|
53 * Implements virtual from CMusEngSession |
|
54 */ |
|
55 IMPORT_C void Unmute(); |
|
56 |
|
57 public: |
|
58 /** |
|
59 * Implements 2nd phase constructor from CMusEngSession |
|
60 */ |
|
61 void ConstructL( /*const TDesC& aFileName*/ ); |
|
62 |
|
63 public: |
|
64 /** |
|
65 * Sets callback interface pointer |
|
66 * |
|
67 * @param aSessionObserver Pointer to class which implements interface |
|
68 */ |
|
69 void SetSessionObserver( MMusEngPreviewSessionObserver* aSessionObserver ); |
|
70 |
|
71 |
|
72 /** |
|
73 * Creates new MultimediaSharing Preview session. |
|
74 * |
|
75 * @param aFileName Media filename |
|
76 * @param aRect UI drawing area. It is allowed handle from engine |
|
77 * @param aEngObserver Engine specific callbacks |
|
78 * @param aSessionObserver Session specific callbacks |
|
79 * @return CMusEngPreviewSession* New instanse of specified class |
|
80 */ |
|
81 IMPORT_C CMusEngPreviewSession* NewL( const TDesC& aFileName, |
|
82 const TRect& aRect, |
|
83 MMusEngPreviewSessionObserver* aSessionObserver); |
|
84 ~CMusEngPreviewSession(); |
|
85 |
|
86 public: |
|
87 //CMusEngPreviewSession(); |
|
88 CMusEngPreviewSession( MMusEngPreviewSessionObserver* aSessionObserver, const TRect& aRect); |
|
89 |
|
90 |
|
91 |
|
92 // TODO: FixMe |
|
93 void SipProfileChanged() |
|
94 { |
|
95 }; |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 }; |
|
101 |
|
102 #endif // |