19
`Reminder` CSE 454 Software Development Project

Reminder Application by Qt and C++

Embed Size (px)

Citation preview

Page 1: Reminder Application by Qt and C++

`Reminder`CSE 454 Software Development Project

Page 2: Reminder Application by Qt and C++

12320002 Sumaia Alavi12320289 Firoza Akhter Bintu12320395 Anamika Afrin

Page 3: Reminder Application by Qt and C++

What is `Reminder`● Reminder is a small application that helps

any user to set a message to be notified after a custom period of time.

● For example, an user can set the message “Remember to call Mom” to be popped out after 10 minutes.

Page 4: Reminder Application by Qt and C++

Features of `Reminder`● Reminder works on all platforms including

Windows, Ubuntu or Mac OS X.● Reminder has an easy to use user interface

to set time interval.● Reminder shows remaining time is in form

of a progressbar.● Reminder has a System Tray icon.

Page 5: Reminder Application by Qt and C++

Features of `Reminder`● Reminder is a portable application, anyone

can put it in USB disk and run.● No need to install any extra software or

library.● Comes with native executable for easy

execution.

Page 6: Reminder Application by Qt and C++

How `Reminder` is built● Reminder is written in C++.● Qt library is used to create Graphical User

Interface.● Qt is widely used to create applications like

Skype, VLC Media Player, Autodesk Maya etc.

Page 7: Reminder Application by Qt and C++

int m

ain(

)`Reminder` Skeleton

Popup● Shows text at

desktop corner● Hides when X

button is clicked

Window● Shows the user

interface control● Starts and stops the

timer● Shows the popup

notification

Page 8: Reminder Application by Qt and C++

How to Use `Reminder`

Application executable

Qt LibrariesC++ Libraries

Clicking on “Reminder.exe” will start the application window

Page 9: Reminder Application by Qt and C++

How to Use `Reminder`

Text area to write some note

Time input box

Timer Start button

Page 10: Reminder Application by Qt and C++

How to Use `Reminder`

Window showing progress Popup notification

Page 11: Reminder Application by Qt and C++

How to Use `Reminder`

Clicking on X will close it

Error handling

Page 12: Reminder Application by Qt and C++

Window : Variables● The Window is an instance of QWidget● Window contains the following members

Ui::Window *ui; // The Window User Interface or formQTimer timer_progress; // Timer to show progressbar per secondQTimer timer_reminder; // Timer to show notificationuint reminder_time; // Timer valueQSystemTrayIcon *systemTrayIcon; // Icon at System TrayPopup *popup; // Notification Box

Page 13: Reminder Application by Qt and C++

Window : Functions● The Window contains the following member

functionsvoid resetReminder(); // Resets the reminder to zerovoid restartReminder(); // Starts the reminder with previous time valuevoid startTimer(); // Starts the remindervoid stopTimer(); // Stops the remindervoid showReminder(); // Shows the reminder at desktop cornervoid showProgress(); // Updates the progress barvoid systemTrayIconActivated(); // Called when the tray icon is clicked

Page 14: Reminder Application by Qt and C++

Popup : Variables● The Popup box is an instance of QWidget● Popup contains the following members

Ui::Popup *ui; // The Popup User Interface or form

Page 15: Reminder Application by Qt and C++

Popup : Functions● The Popup contains the following member

functions// Show popup box with Title and Descriptionvoid showPopup(QString title, QString description);

// When any mouse click is performed on the boxvoid mousePressEvent(QMouseEvent*);

// Close the popup when clicked on X buttonvoid closePopup();

Page 16: Reminder Application by Qt and C++

Timer : How it works?● When the user clicks Start button, the timer

values is converted into secondsQTime after = ui->timeAfter->time();reminder_time = (after.hour()*3600 + after.minute()*60 + after.second()) * 1000;

● Then reminder_time is checked, if greater than 1000, the timer is started

Page 17: Reminder Application by Qt and C++

Why Use `Reminder`?Reminder app can help ...● People about important meeting or call● Students about important assignments or

email or study● Teachers about upcoming class● Mothers to turn off oven or any machine

Page 18: Reminder Application by Qt and C++

Future Plans● Add reminder for specific date● Set image for popup notification● Multiple reminder entry

Page 19: Reminder Application by Qt and C++

Thank you.