notepad/notepad1/inc/NpdListDialog.inl
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2002 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:  Inline functions of Notepad List Dialog class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <eikclbd.h>
       
    20 #include <aknlists.h>
       
    21 
       
    22 #include "NpdModel_platsec.h"
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // CNotepadListDialog::QueryDeleteSingleResId
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 inline TInt CNotepadListDialog::QueryDeleteSingleResId() const
       
    29     {
       
    30     return IsNotepad() ? R_NOTEPAD_QUERY_DELETE_MEMO : 
       
    31         R_NOTEPAD_QUERY_DELETE_TE;
       
    32     }
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CNotepadListDialog::QueryDeleteMultipleResId
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 inline TInt CNotepadListDialog::QueryDeleteMultipleResId() const
       
    39     {
       
    40     return IsNotepad() ? R_NOTEPAD_QUERY_DELETE_MEMOS : 
       
    41         R_NOTEPAD_QUERY_DELETE_TEMPLATES;
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CNotepadListDialog::LevelOfActiveScheduler
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 inline TInt CNotepadListDialog::LevelOfActiveScheduler()
       
    49     {
       
    50     return STATIC_CAST( CNotepadListDialog::CKludgeScheduler*, 
       
    51         CActiveScheduler::Current() )->PublicLevel();
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CNotepadListDialog::CNotepadIdle::MarkCountWhenStarted
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 inline TInt CNotepadListDialog::CNotepadIdle::MarkCountWhenStarted() const 
       
    59     {
       
    60     return iMarkCount;
       
    61     }
       
    62 
       
    63 // -----------------------------------------------------------------------------
       
    64 // CNotepadListDialog::CNotepadIdle::CNotepadIdle
       
    65 // -----------------------------------------------------------------------------
       
    66 //
       
    67 inline CNotepadListDialog::CNotepadIdle::CNotepadIdle(
       
    68     const TInt aMarkCount)
       
    69     :CIdle(CActive::EPriorityLow), 
       
    70     iMarkCount(aMarkCount)
       
    71     {
       
    72     }
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CNotepadListDialog::CKludgeScheduler::PublicLevel
       
    76 // -----------------------------------------------------------------------------
       
    77 //
       
    78 inline TInt CNotepadListDialog::CKludgeScheduler::PublicLevel() const
       
    79     {
       
    80     return Level(); 
       
    81     }
       
    82 
       
    83 // -----------------------------------------------------------------------------
       
    84 // CNotepadListDialog::CNotepadProgressDialog::ProgressInfo
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 inline CEikProgressInfo* 
       
    88 CNotepadListDialog::CNotepadProgressDialog::ProgressInfo() const
       
    89     {
       
    90     return iProgressInfo;
       
    91     }
       
    92 
       
    93 // End of file