|
1 /* |
|
2 * Copyright (c) 2010 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: Variant map key names for CSifUi API and SW install |
|
15 * notification dialog plugin. |
|
16 */ |
|
17 |
|
18 #ifndef SIFUIDEFS_H |
|
19 #define SIFUIDEFS_H |
|
20 |
|
21 // SifUi plugin literal and variant map key names defined as _LIT macros. |
|
22 // Note that _LIT macros defined in this file must match to the definitions |
|
23 // in sifuidevicedialogdefinitions.h and sifuiinstallindicatorparams.h files. |
|
24 // Symbian code needs descriptor constants, as Qt code uses QString constants. |
|
25 |
|
26 _LIT( KSifUiDeviceDialog, "com.nokia.sifui/1.0" ); |
|
27 |
|
28 enum TSifUiDeviceDialogType |
|
29 { |
|
30 ESifUiConfirmationQuery = 1, |
|
31 ESifUiProgressNote = 2, |
|
32 ESifUiCompleteNote = 3, |
|
33 ESifUiErrorNote = 4 |
|
34 }; |
|
35 |
|
36 enum TSifUiDeviceDialogReturnValue |
|
37 { |
|
38 ESifUiContinue = 0, |
|
39 ESifUiCancel = 1, |
|
40 ESifUiIndicator = 3 |
|
41 }; |
|
42 |
|
43 // Variant map keys for dialog type and title (common to all dialog types) |
|
44 _LIT( KSifUiDialogType, "type" ); // enum TSifUiDeviceDialogType |
|
45 |
|
46 // Variant map keys for device dialog return values |
|
47 _LIT( KSifUiQueryReturnValue, "ret" ); // enum TSifUiDeviceDialogReturnValue |
|
48 _LIT( KSifUiSelectedMemory, "drv" ); // drive letter |
|
49 |
|
50 // Variant map keys for "confirmation query" dialog parameters |
|
51 _LIT( KSifUiApplicationName, "app" ); // descriptor |
|
52 _LIT( KSifUiApplicationIconHandle, "icon" ); // integer, bitmap handle |
|
53 _LIT( KSifUiApplicationIconMaskHandle, "mask" ); // integer, bitmap handle |
|
54 _LIT( KSifUiApplicationVersion, "ver" ); // descriptor |
|
55 _LIT( KSifUiApplicationSize, "size" ); // integer |
|
56 _LIT( KSifUiApplicationDetails, "details" ); // descriptor array |
|
57 _LIT( KSifUiMemorySelection, "mem" ); // descriptor (comma separated drive letters) |
|
58 _LIT( KSifUiCertificates, "cert" ); // binary (CSifUiCertificateInfo) |
|
59 |
|
60 // Variant map keys for "progress note" dialog parameters |
|
61 _LIT( KSifUiProgressNoteText, "txt" ); // string |
|
62 _LIT( KSifUiProgressNoteFinalValue, "fin" ); // integer |
|
63 _LIT( KSifUiProgressNoteValue, "val" ); // integer |
|
64 _LIT( KSifUiProgressNotePhase, "phase" ); // enum CSifUi::TInstallingPhase |
|
65 |
|
66 // Variant map keys for "progress note" and "installation complete note" buttons |
|
67 _LIT( KSifUiProgressNoteIsHideButtonHidden, "hidebtn" ); // boolean |
|
68 _LIT( KSifUiProgressNoteIsCancelButtonHidden, "cancelbtn" ); // boolean |
|
69 _LIT( KSifUiCompleteNoteIsShowButtonHidden, "showbtn" ); // boolean |
|
70 _LIT( KSifUiErrorNoteIsDetailsButtonHidden, "errdtlbtn" ); // boolean |
|
71 |
|
72 // Variant map keys for "error" dialog parameters |
|
73 _LIT( KSifUiErrorCategory, "errcat" ); // enum Usif::TErrorCategory |
|
74 _LIT( KSifUiErrorCode, "errcode" ); // integer |
|
75 _LIT( KSifUiErrorCodeExtended, "errext" ); // integer |
|
76 _LIT( KSifUiErrorMessage, "errmsg" ); // string |
|
77 _LIT( KSifUiErrorDetails, "errdet" ); // string |
|
78 |
|
79 // Variant map keys for "grant capabilities" dialog parameters |
|
80 _LIT( KSifUiGrantCapabilities, "grcap" ); // binary (TCapabilitySet) |
|
81 |
|
82 // Variant map keys for "select language" dialog parameters |
|
83 _LIT( KSifUiSelectableLanguages, "lang" ); // binary (TPckg< RArray<TLanguage> >) |
|
84 _LIT( KSifUiSelectedLanguageIndex, "langind" ); // integer |
|
85 |
|
86 // Variant map keys for "select options" dialog parameters |
|
87 _LIT( KSifUiSelectableOptions, "opts" ); // descriptor array |
|
88 _LIT( KSifUiSelectedOptions, "optsind" ); // binary (TPckg< RArray<TInt> >) |
|
89 |
|
90 #endif // SIFUIDEFS_H |
|
91 |