|
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: Provides audiomessage appui inline functions |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 inline CMsgAddressControl* CAudioMessageAppUi::ToCtrl() const |
|
22 { |
|
23 return ( iView |
|
24 ? static_cast<CMsgAddressControl*>( iView->ControlById( EMsgComponentIdTo ) ) |
|
25 : NULL ); |
|
26 } |
|
27 |
|
28 inline CMsgAddressControl* CAudioMessageAppUi::FromCtrl() const |
|
29 { |
|
30 return ( iView |
|
31 ? static_cast<CMsgAddressControl*>( iView->ControlById( EMsgComponentIdFrom ) ) |
|
32 : NULL ); |
|
33 } |
|
34 |
|
35 inline CMsgExpandableControl* CAudioMessageAppUi::SubjectCtrl() const |
|
36 { |
|
37 if ( iSupportedFeatures & EUniFeatureSubject ) |
|
38 |
|
39 { |
|
40 return ( iView |
|
41 ? static_cast<CMsgExpandableControl*>( iView->ControlById( EMsgComponentIdSubject ) ) |
|
42 : NULL ); |
|
43 } |
|
44 return NULL; |
|
45 } |
|
46 |
|
47 inline CMsgBodyControl* CAudioMessageAppUi::BodyCtrl() const |
|
48 { |
|
49 return ( iView |
|
50 ? static_cast<CMsgBodyControl*>( iView->ControlById( EMsgComponentIdBody ) ) |
|
51 : NULL ); |
|
52 } |
|
53 |
|
54 inline CAudioMessageDocument* CAudioMessageAppUi::Document() const |
|
55 { |
|
56 return static_cast<CAudioMessageDocument*>( CMsgEditorAppUi::Document() ); |
|
57 } |
|
58 |
|
59 |
|
60 inline TBool CAudioMessageAppUi::IsHeaderEmpty() const |
|
61 { |
|
62 return ( Document()->AddressSize() <= 0 ); |
|
63 } |
|
64 |
|
65 inline TBool CAudioMessageAppUi::IsBodyEmpty() const |
|
66 { |
|
67 return (Document()->AudioFileSize() == 0 ); |
|
68 } |
|
69 |
|
70 inline RFs& CAudioMessageAppUi::FsSession() const |
|
71 { |
|
72 return ( iCoeEnv->FsSession() ); |
|
73 } |
|
74 |
|
75 inline TAmsSenderType CAudioMessageAppUi::SenderType() |
|
76 { |
|
77 return iSenderType; |
|
78 } |
|
79 |
|
80 |