equal
deleted
inserted
replaced
28 #include <QApplication> |
28 #include <QApplication> |
29 #include <qs60mainapplication.h> |
29 #include <qs60mainapplication.h> |
30 #include <qs60maindocument.h> |
30 #include <qs60maindocument.h> |
31 #include <qs60mainappui.h> |
31 #include <qs60mainappui.h> |
32 #include <QSymbianEvent> |
32 #include <QSymbianEvent> |
|
33 |
|
34 /// \cond |
33 |
35 |
34 // In order to override CCoeAppUi::FrameworkCallsRendezvous() Application/Document/AppUi needs to be |
36 // In order to override CCoeAppUi::FrameworkCallsRendezvous() Application/Document/AppUi needs to be |
35 // derived from. |
37 // derived from. |
36 |
38 |
37 class DeviceDialogMainAppUi : public QS60MainAppUi |
39 class DeviceDialogMainAppUi : public QS60MainAppUi |
64 int &argc, char *argv[], Hb::ApplicationFlags flags) : |
66 int &argc, char *argv[], Hb::ApplicationFlags flags) : |
65 HbApplication(factory, argc, argv, flags) |
67 HbApplication(factory, argc, argv, flags) |
66 { |
68 { |
67 } |
69 } |
68 |
70 |
69 // Event filter to block exit |
|
70 bool HbDeviceDialogServerApp::symbianEventFilter(const QSymbianEvent *event) |
|
71 { |
|
72 if (event->type() == QSymbianEvent::CommandEvent) { |
|
73 int command = event->command(); |
|
74 if (command == EAknSoftkeyExit || command == EEikCmdExit) { |
|
75 return true; // block exit commands |
|
76 } |
|
77 } |
|
78 return false; |
|
79 } |
|
80 |
|
81 // Block application quit() slot |
71 // Block application quit() slot |
82 void HbDeviceDialogServerApp::quit() |
72 void HbDeviceDialogServerApp::quit() |
83 { |
73 { |
84 } |
74 } |
|
75 |
|
76 /// \endcond |