|
1 /* |
|
2 * Copyright (c) 2005-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 * Message Editor Base UI control. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // --------------------------------------------------------- |
|
22 // CMsgMediaControl::SetState |
|
23 // --------------------------------------------------------- |
|
24 // |
|
25 inline void CMsgMediaControl::SetState( TMsgAsyncControlState aState, |
|
26 TBool aDoNotCallObserver ) |
|
27 { |
|
28 TMsgAsyncControlState oldState = iState; |
|
29 iState = aState; |
|
30 |
|
31 if ( !aDoNotCallObserver ) |
|
32 { |
|
33 for ( TInt current = 0; current < iObservers->Count(); current++ ) |
|
34 { |
|
35 iObservers->At( current )->MsgAsyncControlStateChanged( *this, iState, oldState ); |
|
36 } |
|
37 } |
|
38 } |
|
39 |
|
40 // --------------------------------------------------------- |
|
41 // CMsgMediaControl::SetUniqueContentIdL |
|
42 // --------------------------------------------------------- |
|
43 // |
|
44 inline void CMsgMediaControl::SetUniqueContentIdL( const TDesC& aUniqueId ) |
|
45 { |
|
46 iUniqueContentId = aUniqueId; |
|
47 } |
|
48 |
|
49 // --------------------------------------------------------- |
|
50 // CMsgMediaControl::UniqueContentId |
|
51 // --------------------------------------------------------- |
|
52 // |
|
53 inline const TDesC& CMsgMediaControl::UniqueContentId() const |
|
54 { |
|
55 return iUniqueContentId; |
|
56 } |
|
57 |
|
58 // End of File |