equal
deleted
inserted
replaced
24 #include <hbicon.h> |
24 #include <hbicon.h> |
25 #include <hbinstance.h> |
25 #include <hbinstance.h> |
26 #include <hbaction.h> |
26 #include <hbaction.h> |
27 #include <hbgridview.h> |
27 #include <hbgridview.h> |
28 #include <qstandarditemmodel.h> |
28 #include <qstandarditemmodel.h> |
29 #include <qdebug.h> |
|
30 #include <qgraphicswidget.h> |
29 #include <qgraphicswidget.h> |
31 #include <qdir.h> |
30 #include <qdir.h> |
32 // --------------------------------------------------------------------------- |
31 // --------------------------------------------------------------------------- |
33 // SearchSettingsState::SearchSettingsState |
32 // SearchSettingsState::SearchSettingsState |
34 // --------------------------------------------------------------------------- |
33 // --------------------------------------------------------------------------- |
39 minitialCount = true; |
38 minitialCount = true; |
40 mWidget = new SettingsWidget(); |
39 mWidget = new SettingsWidget(); |
41 |
40 |
42 connect(mWidget, SIGNAL(settingsEvent(bool)), this, |
41 connect(mWidget, SIGNAL(settingsEvent(bool)), this, |
43 SLOT(handleBackEvent(bool))); |
42 SLOT(handleBackEvent(bool))); |
44 |
43 |
45 connect(mWidget, SIGNAL(selectedItemCategory(int, bool)), this, |
|
46 SLOT(getItemCategory(int, bool))); |
|
47 |
|
48 connect(mWidget, SIGNAL(ISProvidersIcon(HbIcon, int)), this, |
44 connect(mWidget, SIGNAL(ISProvidersIcon(HbIcon, int)), this, |
49 SLOT(slotISProvidersIcon(HbIcon, int))); |
45 SLOT(slotISProvidersIcon(HbIcon, int))); |
50 } |
46 } |
51 // --------------------------------------------------------------------------- |
47 // --------------------------------------------------------------------------- |
52 // SearchSettingsState::~SearchSettingsState |
48 // SearchSettingsState::~SearchSettingsState |
64 void SearchSettingsState::slotISProvidersIcon(HbIcon icon, int id) |
60 void SearchSettingsState::slotISProvidersIcon(HbIcon icon, int id) |
65 { |
61 { |
66 emit publishISProviderIcon(id, icon); |
62 emit publishISProviderIcon(id, icon); |
67 } |
63 } |
68 // --------------------------------------------------------------------------- |
64 // --------------------------------------------------------------------------- |
69 // SearchSettingsState::getItemCategory |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 void SearchSettingsState::getItemCategory(int str, bool avalue) |
|
73 { |
|
74 emit publishSelectedCategory(str, avalue); |
|
75 } |
|
76 // --------------------------------------------------------------------------- |
|
77 // SearchSettingsState::onEntry |
65 // SearchSettingsState::onEntry |
78 // --------------------------------------------------------------------------- |
66 // --------------------------------------------------------------------------- |
79 // |
67 // |
80 void SearchSettingsState::onEntry(QEvent *event) |
68 void SearchSettingsState::onEntry(QEvent *event) |
81 { |
69 { |
86 mWidget->loadBaseSettings(); |
74 mWidget->loadBaseSettings(); |
87 mWidget->loadDeviceSettings(); |
75 mWidget->loadDeviceSettings(); |
88 mWidget->loadIS(); |
76 mWidget->loadIS(); |
89 isInternetOn(); |
77 isInternetOn(); |
90 minitialCount = false; |
78 minitialCount = false; |
91 // isInternetOn(); |
|
92 //emit backEventTriggered(); |
|
93 } |
79 } |
94 else |
80 else |
95 { |
81 { |
96 mWidget->launchSettingWidget(); |
82 mWidget->launchSettingWidget(); |
97 } |
83 } |