diff -r 84d9eb65b26f -r 2981cb3aa489 mobilemessaging/audiomsg/inc/audiomessageappui.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mobilemessaging/audiomsg/inc/audiomessageappui.inl Wed Nov 03 09:52:46 2010 +0530 @@ -0,0 +1,80 @@ +/* +* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Provides audiomessage appui inline functions +* +*/ + + + + +inline CMsgAddressControl* CAudioMessageAppUi::ToCtrl() const + { + return ( iView + ? static_cast( iView->ControlById( EMsgComponentIdTo ) ) + : NULL ); + } + +inline CMsgAddressControl* CAudioMessageAppUi::FromCtrl() const + { + return ( iView + ? static_cast( iView->ControlById( EMsgComponentIdFrom ) ) + : NULL ); + } + +inline CMsgExpandableControl* CAudioMessageAppUi::SubjectCtrl() const + { + if ( iSupportedFeatures & EUniFeatureSubject ) + + { + return ( iView + ? static_cast( iView->ControlById( EMsgComponentIdSubject ) ) + : NULL ); + } + return NULL; + } + +inline CMsgBodyControl* CAudioMessageAppUi::BodyCtrl() const + { + return ( iView + ? static_cast( iView->ControlById( EMsgComponentIdBody ) ) + : NULL ); + } + +inline CAudioMessageDocument* CAudioMessageAppUi::Document() const + { + return static_cast( CMsgEditorAppUi::Document() ); + } + + +inline TBool CAudioMessageAppUi::IsHeaderEmpty() const + { + return ( Document()->AddressSize() <= 0 ); + } + +inline TBool CAudioMessageAppUi::IsBodyEmpty() const + { + return (Document()->AudioFileSize() == 0 ); + } + +inline RFs& CAudioMessageAppUi::FsSession() const + { + return ( iCoeEnv->FsSession() ); + } + +inline TAmsSenderType CAudioMessageAppUi::SenderType() + { + return iSenderType; + } + +