equal
deleted
inserted
replaced
|
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 * MsgEditor video media control - a Message Editor Base control. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // CMsgVideoControl::Volume |
|
23 // --------------------------------------------------------- |
|
24 // |
|
25 inline TInt CMsgVideoControl::Volume() const |
|
26 { |
|
27 #ifdef SIMULATE_VIDEO |
|
28 return 0xf5; |
|
29 #else |
|
30 return iVolume; |
|
31 #endif |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CMsgVideoControl::MaxVolume |
|
36 // --------------------------------------------------------- |
|
37 // |
|
38 inline TInt CMsgVideoControl::MaxVolume() const |
|
39 { |
|
40 #ifdef SIMULATE_VIDEO |
|
41 return 0xff; |
|
42 #else |
|
43 return iMaxVolume; |
|
44 #endif |
|
45 } |
|
46 |
|
47 // --------------------------------------------------------- |
|
48 // CMsgVideoControl::ContinueOnFocus |
|
49 // --------------------------------------------------------- |
|
50 // |
|
51 inline void CMsgVideoControl::ContinueOnFocus( TBool aContinue ) |
|
52 { |
|
53 iContinueOnFocus = aContinue; |
|
54 } |
|
55 |
|
56 // --------------------------------------------------------- |
|
57 // CMsgVideoControl::HasVideoStream |
|
58 // --------------------------------------------------------- |
|
59 // |
|
60 inline TBool CMsgVideoControl::HasVideoStream() const |
|
61 { |
|
62 return iHasVideo; |
|
63 } |
|
64 |
|
65 // End of File |