18 #ifndef SIFUIDEFS_H |
18 #ifndef SIFUIDEFS_H |
19 #define SIFUIDEFS_H |
19 #define SIFUIDEFS_H |
20 |
20 |
21 // SifUi plugin literal and variant map key names defined as _LIT macros. |
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 |
22 // Note that _LIT macros defined in this file must match to the definitions |
23 // in sifuidevicedialogdefinitions.h file. This header is used in Symbian |
23 // in sifuidevicedialogdefinitions.h and sifuiinstallindicatorparams.h files. |
24 // code since Symbian code requires 16-bit descriptors, and definitions in |
24 // Symbian code needs descriptor constants, as Qt code uses QString constants. |
25 // Qt side (in sifuidevicedialogdefinitions.h) are 8-bit wide. |
|
26 |
25 |
27 _LIT( KSifUiDeviceDialog, "com.nokia.sifui/1.0" ); |
26 _LIT( KSifUiDeviceDialog, "com.nokia.sifui/1.0" ); |
|
27 _LIT( KSifUiInstallIndicatorType, "com.nokia.sifui.indi/1.0" ); |
28 |
28 |
29 enum TSifUiDeviceDialogType |
29 enum TSifUiDeviceDialogType |
30 { |
30 { |
31 ESifUiConfirmationQuery = 1, |
31 ESifUiConfirmationQuery = 1, |
32 ESifUiProgressNote = 2, |
32 ESifUiProgressNote = 2, |
33 ESifUiCompleteNote = 3, |
33 ESifUiCompleteNote = 3, |
34 ESifUiErrorNote = 4 |
34 ESifUiErrorNote = 4 |
35 }; |
35 }; |
36 |
36 |
|
37 enum TSifUiDeviceDialogReturnValue |
|
38 { |
|
39 ESifUiContinue = 0, |
|
40 ESifUiCancel = 1, |
|
41 ESifUiIndicator = 3 |
|
42 }; |
|
43 |
37 // Variant map keys for dialog type and title (common to all dialog types) |
44 // Variant map keys for dialog type and title (common to all dialog types) |
38 _LIT( KSifUiDialogType, "type" ); // enum TSifUiDeviceDialogType |
45 _LIT( KSifUiDialogType, "type" ); // enum TSifUiDeviceDialogType |
39 |
46 |
40 // Variant map keys for device dialog return values |
47 // Variant map keys for device dialog return values |
41 _LIT( KSifUiQueryAccepted, "accept" ); // boolean |
48 _LIT( KSifUiQueryReturnValue, "ret" ); // enum TSifUiDeviceDialogReturnValue |
42 _LIT( KSifUiSelectedMemory, "drv" ); // drive letter |
49 _LIT( KSifUiSelectedMemory, "drv" ); // drive letter |
43 |
50 |
44 // Variant map keys for "confirmation query" dialog parameters |
51 // Variant map keys for "confirmation query" dialog parameters |
45 _LIT( KSifUiApplicationName, "app" ); // descriptor |
52 _LIT( KSifUiApplicationName, "app" ); // descriptor |
46 _LIT( KSifUiApplicationIconHandle, "icon" ); // integer, bitmap handle |
53 _LIT( KSifUiApplicationIconHandle, "icon" ); // integer, bitmap handle |
54 // Variant map keys for "progress note" dialog parameters |
61 // Variant map keys for "progress note" dialog parameters |
55 _LIT( KSifUiProgressNoteText, "txt" ); // string |
62 _LIT( KSifUiProgressNoteText, "txt" ); // string |
56 _LIT( KSifUiProgressNoteFinalValue, "fin" ); // integer |
63 _LIT( KSifUiProgressNoteFinalValue, "fin" ); // integer |
57 _LIT( KSifUiProgressNoteValue, "val" ); // integer |
64 _LIT( KSifUiProgressNoteValue, "val" ); // integer |
58 |
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 |
59 // Variant map keys for "error" dialog parameters |
72 // Variant map keys for "error" dialog parameters |
60 _LIT( KSifUiErrorCode, "err" ); // integer |
73 _LIT( KSifUiErrorCode, "err" ); // integer |
61 _LIT( KSifUiErrorMessage, "msg" ); // string |
74 _LIT( KSifUiErrorMessage, "msg" ); // string |
62 _LIT( KSifUiErrorDetails, "det" ); // string |
75 _LIT( KSifUiErrorDetails, "det" ); // string |
63 |
76 |