|
1 /* |
|
2 * Copyright (c) 2002 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 * Inline methods for CMsgEditorModel. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 // INLINE METHODS |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // CMsgEditorModel::Session |
|
25 // |
|
26 // Return reference to current session. |
|
27 // --------------------------------------------------------- |
|
28 // |
|
29 inline CMsvSession& CMsgEditorModel::Session() const |
|
30 { |
|
31 return *iSession; |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CMsgEditorModel::Mtm |
|
36 // |
|
37 // Return reference to mtm. |
|
38 // --------------------------------------------------------- |
|
39 // |
|
40 inline CBaseMtm& CMsgEditorModel::Mtm() const |
|
41 { |
|
42 return *iMtm; |
|
43 } |
|
44 |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // CMsgEditorModel::Entry |
|
48 // |
|
49 // Return current message's entry. |
|
50 // --------------------------------------------------------- |
|
51 // |
|
52 inline const TMsvEntry& CMsgEditorModel::Entry() const |
|
53 { |
|
54 return (iMtm->Entry()).Entry(); |
|
55 } |
|
56 |
|
57 // --------------------------------------------------------- |
|
58 // CMsgEditorModel::SetModelObserver |
|
59 // |
|
60 // Set the editor model observer. |
|
61 // --------------------------------------------------------- |
|
62 // |
|
63 inline void CMsgEditorModel::SetModelObserver(MMsgEditorModelObserver* aObserver) |
|
64 { |
|
65 iModelObserver = aObserver; |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------- |
|
69 // CMsgEditorModel::MediaAvailable |
|
70 // |
|
71 // Returns the current (the most recently known) status of the media. |
|
72 // --------------------------------------------------------- |
|
73 // |
|
74 inline TBool CMsgEditorModel::MediaAvailable() const |
|
75 { |
|
76 return iMediaAvailable; |
|
77 } |
|
78 |
|
79 // --------------------------------------------------------- |
|
80 // CMsgEditorModel::SetMediaAvailable |
|
81 // |
|
82 // Allows changing the media availability flag stored in model. |
|
83 // --------------------------------------------------------- |
|
84 // |
|
85 inline void CMsgEditorModel::SetMediaAvailable(TBool aMediaAvailable) |
|
86 { |
|
87 iMediaAvailable = aMediaAvailable; |
|
88 } |
|
89 |
|
90 // End of File |