---------------------------------
|*****Event Reminder System*****|
---------------------------------

Aim
~~~
To make a event reminder system that:
1> Automatically reminds users of any events that have been scheduled on a once, daily, weekly, monthly or yearly basis on their exact time of occurence.
2> Displays the list of events for the given day.
3> Allows the user to add event for any day.
4> Allows the user to delete/update the events.

Assumptions
~~~~~~~~~~~
1> The program has to be running in order for the reminders to work. (./mainProject is the main program that has to be started)
2> Incase if the program is not running, next time when it starts it will remind the user of backlog events.
3> Calculation of time takes place, closest to the nearest minute.
4> We have kept the system valid from 2010 to 2020 although the calendar can be displayed after 2020 or before 2010.

Guidelines
~~~~~~~~~~
1> In the add event form, for the field 'event type' (once,daily, etc), the radio buttons has to be clicked explicitly each time, inspite of any button being shown as active.
2> The spinners for the time has to be clicked explicitly.
2> For the add/update/delete event form, the user is expected to double click on the menu to open the corresponding form
3> For the update/delete event form, the user is expected to double click on the tuple/row they wish to edit/delete.

Database
~~~~~~~~
Used: mysql
Username: alarm_user
Password: alarm_password
Dbname: alarm
Table name: ers

Commands to create username and password for the database
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1> CREATE USER 'alarm_user'@'localhost' IDENTIFIED BY 'alarm_password';
2> GRANT ALL PRIVILEGES ON *.* TO 'alarm_user'@'localhost'  WITH GRANT OPTION;

n.b.- If the table is not there it is created automatically by the program, also if the table exists it will not be created.


The table schema used is as given below
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+-------+--------------+------+-----+---------+----------------+
| Field | Type         | Null | Key | Default | Extra          |
+-------+--------------+------+-----+---------+----------------+
| dt    | date         | YES  |     | NULL    |                | 
| day   | varchar(5)   | YES  |     | NULL    |                | 
| hour  | int(11)      | YES  |     | NULL    |                | 
| min   | int(11)      | YES  |     | NULL    |                | 
| event | varchar(100) | YES  |     | NULL    |                | 
| o     | int(11)      | YES  |     | NULL    |                | 
| d     | int(11)      | YES  |     | NULL    |                | 
| w     | int(11)      | YES  |     | NULL    |                | 
| m     | int(11)      | YES  |     | NULL    |                | 
| y     | int(11)      | YES  |     | NULL    |                | 
| eo    | int(11)      | YES  |     | NULL    |                | 
| ed    | date         | YES  |     | NULL    |                | 
| ew    | date         | YES  |     | NULL    |                | 
| em    | int(11)      | YES  |     | NULL    |                | 
| ey    | int(11)      | YES  |     | NULL    |                | 
| id    | mediumint(9) | NO   | PRI | NULL    | auto_increment | 
+-------+--------------+------+-----+---------+----------------+
