notepad/notepad1/inc/NpdDialogBase.inl
author Simon Howkins <simonh@symbian.org>
Mon, 22 Nov 2010 16:01:09 +0000
branchRCL_3
changeset 93 d216ae5a8733
parent 66 bd7edf625bdd
child 67 1539a383d7b6
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* 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;
    }

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

// -----------------------------------------------------------------------------
// CNotepadDialogBase::IsTemplateListDialog
// -----------------------------------------------------------------------------
//
inline TBool CNotepadDialogBase::IsTemplateListDialog() const
    {
    return iResId == R_NOTEPAD_TEMPLATE_LIST_DIALOG_ORG;
    }
// End of file