messagingappbase/msgeditor/modelinc/MsgEditorModel.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:44:11 +0200
changeset 0 72b543305e3a
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2002 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:  
*     Inline methods for CMsgEditorModel.
*
*/



//  INLINE METHODS

// ---------------------------------------------------------
// CMsgEditorModel::Session
//
// Return reference to current session.
// ---------------------------------------------------------
//
inline CMsvSession& CMsgEditorModel::Session() const
{
    return *iSession;
}

// ---------------------------------------------------------
// CMsgEditorModel::Mtm
//
// Return reference to mtm.
// ---------------------------------------------------------
//
inline CBaseMtm& CMsgEditorModel::Mtm() const
{
    return *iMtm;
}


// ---------------------------------------------------------
// CMsgEditorModel::Entry
//
// Return current message's entry.
// ---------------------------------------------------------
//
inline const TMsvEntry& CMsgEditorModel::Entry() const
{
    return (iMtm->Entry()).Entry();
}

// ---------------------------------------------------------
// CMsgEditorModel::SetModelObserver
//
// Set the editor model observer.
// ---------------------------------------------------------
//
inline void CMsgEditorModel::SetModelObserver(MMsgEditorModelObserver* aObserver)
{
    iModelObserver = aObserver;
}

// ---------------------------------------------------------
// CMsgEditorModel::MediaAvailable
//
// Returns the current (the most recently known) status of the media.
// ---------------------------------------------------------
//
inline TBool CMsgEditorModel::MediaAvailable() const
{
    return iMediaAvailable;
}

// ---------------------------------------------------------
// CMsgEditorModel::SetMediaAvailable
//
// Allows changing the media availability flag stored in model.
// ---------------------------------------------------------
//
inline void CMsgEditorModel::SetMediaAvailable(TBool aMediaAvailable)
{
    iMediaAvailable = aMediaAvailable;
}

// End of File