25 |
25 |
26 // --------------------------------------------------------------------------- |
26 // --------------------------------------------------------------------------- |
27 |
27 |
28 void Notifications::imageCaptured() |
28 void Notifications::imageCaptured() |
29 { |
29 { |
30 showGlobalNote("Screen shot saved to Media Gallery", HbMessageBox::MessageTypeInformation); |
30 HbDeviceMessageBox::information("Screen shot saved to Media Gallery"); |
31 } |
31 } |
32 |
32 |
33 // --------------------------------------------------------------------------- |
33 // --------------------------------------------------------------------------- |
34 |
34 |
35 void Notifications::about() |
35 void Notifications::about() |
36 { |
36 { |
37 |
37 HbMessageBox *messageBox = new HbMessageBox(HbMessageBox::MessageTypeInformation); |
38 HbMessageBox dlg; |
38 messageBox->setText("Version 5.0.0 - March 10th 2010. Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0."); |
39 |
39 HbLabel *header = new HbLabel("About Screen Grabber", messageBox); |
40 dlg.setText("Version 5.0.0 - March 10th 2010. Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Licensed under Eclipse Public License v1.0."); |
40 messageBox->setHeadingWidget(header); |
41 HbLabel header("About Screen Grabber"); |
41 messageBox->setAttribute(Qt::WA_DeleteOnClose); |
42 dlg.setHeadingWidget(&header); |
42 messageBox->setTimeout(HbPopup::NoTimeout); |
43 dlg.setTimeout(HbPopup::NoTimeout); |
43 messageBox->open(); |
44 dlg.exec(); |
|
45 } |
44 } |
46 |
45 |
47 // --------------------------------------------------------------------------- |
46 // --------------------------------------------------------------------------- |
48 |
47 |
49 void Notifications::error(const QString& errorMessage) |
48 void Notifications::error(const QString& errorMessage) |
50 { |
49 { |
51 showGlobalNote(errorMessage, HbMessageBox::MessageTypeWarning); |
50 HbDeviceMessageBox::warning(errorMessage); |
52 |
51 |
53 } |
52 } |
54 |
53 |
55 // --------------------------------------------------------------------------- |
54 // --------------------------------------------------------------------------- |
56 |
55 |
58 // Code below launches a global note |
57 // Code below launches a global note |
59 QString text; |
58 QString text; |
60 text.setNum(amount, 10); |
59 text.setNum(amount, 10); |
61 text.append(" screen shots saved to Media Gallery"); |
60 text.append(" screen shots saved to Media Gallery"); |
62 |
61 |
63 showGlobalNote(text, HbMessageBox::MessageTypeInformation); |
62 HbDeviceMessageBox::information(text); |
64 |
63 |
65 } |
64 } |
66 |
65 |
67 // --------------------------------------------------------------------------- |
66 // --------------------------------------------------------------------------- |
68 |
67 |
69 void Notifications::videoCaptured() |
68 void Notifications::videoCaptured() |
70 { |
69 { |
71 showGlobalNote("Video saved to Media Gallery", HbMessageBox::MessageTypeInformation); |
70 HbDeviceMessageBox::information("Video saved to Media Gallery"); |
72 |
71 |
73 } |
72 } |
74 |
73 |
75 // --------------------------------------------------------------------------- |
74 // --------------------------------------------------------------------------- |
76 |
75 |