|
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: Definitions for SIF UI device dialog plugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SIFUIDIALOGDEFINITIONS_H |
|
19 #define SIFUIDIALOGDEFINITIONS_H |
|
20 |
|
21 enum SifUiDeviceDialogType |
|
22 { |
|
23 SifUiUnspecifiedDialog = 0, |
|
24 SifUiConfirmationQuery = 1, |
|
25 SifUiProgressNote = 2, |
|
26 SifUiCompleteNote = 3, |
|
27 SifUiErrorNote = 4 |
|
28 }; |
|
29 |
|
30 enum SifUiDeviceDialogMode { |
|
31 SifUiUnspecified = 0, |
|
32 SifUiInstalling = 1, |
|
33 SifUiUninstalling = 2 |
|
34 }; |
|
35 |
|
36 // Variant map keys for dialog type and title (common to all dialog types) |
|
37 const QString KeySifUiDialogType = "type"; // enum SifUiDeviceDialogType |
|
38 const QString KSifUiDialogMode = "mode"; // enum SifUiDeviceDialogMode |
|
39 const QString KSifUiDialogTitle = "title"; // string |
|
40 |
|
41 // Variant map keys for device dialog return values |
|
42 const QString KSifUiQueryAccepted = "accept"; // boolean |
|
43 const QString KSifUiSelectedMemoryIndex = "memi"; // integer |
|
44 |
|
45 // Variant map keys for "confirmation query" dialog parameters |
|
46 const QString KSifUiApplicationName = "app"; // string |
|
47 const QString KSifUiApplicationIconHandle = "icon"; // integer, bitmap handle |
|
48 const QString KSifUiApplicationIconMaskHandle = "mask"; // integer, bitmap handle |
|
49 const QString KSifUiApplicationVersion = "ver"; // string |
|
50 const QString KSifUiApplicationSize = "size"; // integer |
|
51 const QString KSifUiApplicationDetails = "details"; // string list |
|
52 const QString KSifUiMemorySelection = "mem"; // string list |
|
53 const QString KSifUiCertificates = "cert"; // string list ?? |
|
54 |
|
55 // Variant map keys for "progress note" dialog parameters |
|
56 const QString KSifUiProgressNoteText = "txt"; // string |
|
57 const QString KSifUiProgressNoteFinalValue = "fin"; // integer |
|
58 const QString KSifUiProgressNoteValue = "val"; // integer |
|
59 |
|
60 // Variant map keys for "error" dialog parameters |
|
61 const QString KSifUiErrorCode = "err"; // integer |
|
62 |
|
63 |
|
64 #endif // SIFUIDIALOGDEFINITIONS_H |
|
65 |