|
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 Base class of Notepad Dialogs. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <NpdLib.rsg> |
|
20 #include <avkon.hrh> |
|
21 |
|
22 // ----------------------------------------------------------------------------- |
|
23 // CNotepadDialogBase::IsWaiting |
|
24 // ----------------------------------------------------------------------------- |
|
25 // |
|
26 inline TBool CNotepadDialogBase::IsWaiting() const |
|
27 { |
|
28 return iResId == R_NOTEPAD_TEMPLATE_LIST_DIALOG_ORG || |
|
29 iResId == R_NOTEPAD_VIEWER_WAITING_DIALOG_ORG ; |
|
30 } |
|
31 |
|
32 // ----------------------------------------------------------------------------- |
|
33 // CNotepadDialogBase::IsNotepad |
|
34 // ----------------------------------------------------------------------------- |
|
35 // |
|
36 inline TBool CNotepadDialogBase::IsNotepad() const |
|
37 { |
|
38 return iResId == R_NOTEPAD_LIST_DIALOG_ORG || |
|
39 iResId == R_NOTEPAD_EDITOR_DIALOG_ORG; |
|
40 } |
|
41 |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CNotepadDialogBase::IsTemplates |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 inline TBool CNotepadDialogBase::IsTemplates() const |
|
47 { |
|
48 return iResId == R_NOTEPAD_TEMPLATE_LIST_DIALOG_ORG || |
|
49 iResId == R_NOTEPAD_TEMPLATE_EDITOR_DIALOG_ORG; |
|
50 } |
|
51 |
|
52 // ----------------------------------------------------------------------------- |
|
53 // CNotepadDialogBase::IsModeless |
|
54 // ----------------------------------------------------------------------------- |
|
55 // |
|
56 inline TBool CNotepadDialogBase::IsModeless() |
|
57 { |
|
58 return DialogFlags() & EEikDialogFlagModeless; |
|
59 } |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // CNotepadDialogBase::IsExitDelayedBySendUi |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 inline TBool CNotepadDialogBase::IsExitDelayedBySendUi() const |
|
66 { |
|
67 return iBaseFlags & ENotepadSendUiDelayedExit; |
|
68 } |
|
69 |
|
70 // End of file |