notepad/notepad1/inc/NpdDialogBase.inl
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 10:12:19 +0200
changeset 0 f979ecb2b13e
child 27 55d60436f00b
permissions -rw-r--r--
Revision: 201003 Kit: 201005

/*
* 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 functions of Base class of Notepad Dialogs.
*
*/


#include <NpdLib.rsg>
#include <avkon.hrh>

// -----------------------------------------------------------------------------
// CNotepadDialogBase::IsWaiting
// -----------------------------------------------------------------------------
//
inline TBool CNotepadDialogBase::IsWaiting() const
    {
    return iResId == R_NOTEPAD_TEMPLATE_LIST_DIALOG_ORG ||
        iResId == R_NOTEPAD_VIEWER_WAITING_DIALOG_ORG ;
    }

// -----------------------------------------------------------------------------
// CNotepadDialogBase::IsNotepad
// -----------------------------------------------------------------------------
//
inline TBool CNotepadDialogBase::IsNotepad() const
    {
    return iResId == R_NOTEPAD_LIST_DIALOG_ORG || 
        iResId == R_NOTEPAD_EDITOR_DIALOG_ORG;
    }

// -----------------------------------------------------------------------------
// CNotepadDialogBase::IsTemplates
// -----------------------------------------------------------------------------
//
inline TBool CNotepadDialogBase::IsTemplates() const
    {
    return iResId == R_NOTEPAD_TEMPLATE_LIST_DIALOG_ORG || 
        iResId == R_NOTEPAD_TEMPLATE_EDITOR_DIALOG_ORG;
    }

// -----------------------------------------------------------------------------
// CNotepadDialogBase::IsModeless
// -----------------------------------------------------------------------------
//
inline TBool CNotepadDialogBase::IsModeless()
    {
    return DialogFlags() & EEikDialogFlagModeless;
    }

// -----------------------------------------------------------------------------
// CNotepadDialogBase::IsExitDelayedBySendUi
// -----------------------------------------------------------------------------
//
inline TBool CNotepadDialogBase::IsExitDelayedBySendUi() const
    {
    return iBaseFlags & ENotepadSendUiDelayedExit;
    }

// End of file