|
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: Language selection dialog in SifUi |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SIFUIDIALOGSELECTLANGUAGE_H |
|
19 #define SIFUIDIALOGSELECTLANGUAGE_H |
|
20 |
|
21 #include <HbDialog> |
|
22 |
|
23 class HbRadioButtonList; |
|
24 |
|
25 |
|
26 /** |
|
27 * SifUi dialog requesting the user to select language. This |
|
28 * dialog is displayed only if the languages in the sis-file |
|
29 * do not match the languages that are supported by the mobile |
|
30 * phone. |
|
31 */ |
|
32 class SifUiDialogSelectLanguage : public HbDialog |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: // constructor and destructor |
|
37 SifUiDialogSelectLanguage(const QVariant &languages, QGraphicsItem *parent = 0); |
|
38 ~SifUiDialogSelectLanguage(); |
|
39 |
|
40 signals: |
|
41 void languageSelected(int index); |
|
42 void languageSelectionCancelled(); |
|
43 |
|
44 public: // new functions |
|
45 int selectedLanguageIndex() const; |
|
46 |
|
47 private: // new functions |
|
48 QStringList languageNames(const QVariant &languages); |
|
49 |
|
50 private slots: |
|
51 void handleAccepted(); |
|
52 void handleRejected(); |
|
53 |
|
54 private: // data |
|
55 HbRadioButtonList *mRadioButtonList; |
|
56 HbAction *mOkAction; |
|
57 }; |
|
58 |
|
59 #endif // SIFUIDIALOGSELECTLANGUAGE_H |