/*! Class that contains the model that holds the timers'
@author Heli Hyvättinen
- @date 2010-09-08
- @version 0.1.1
+ @date 2011-04-05
+ @version 0.2.1
Class that contains the model that holds the timers
*/
bool isThisTimerAlerting(QModelIndex index);
+
+ /*! Saves a timer to a file
+ @param index The index of the timer to be saved. Any cell from the row of the timer is good here.
+ @param filename The name of the file to which the timer is to be saved
+ */
+ bool saveTimer(QModelIndex index,QString filename);
+
+
signals:
public slots:
void addTimers(QList <Timer *> timers, bool startImmediately = true);
/*!
- Tells the view to refresh all information in the time column.
+ Tells the view to refresh all information in the time and status columns.
+ (The time and status change without user inervention unlike the alert text and thus
+ need to be refreshed.)
*/
- void refreshTimeColumn ();
+ void refreshTimeAndStatusColumns ();
/*!
Passes the start command to the timer in the given index.
*/
void setUpdateViewOnChanges(bool update);
+/*!
+ Removes a timer from the model
+ */
+
+ void removeTimer(QModelIndex index);
+
+
+
private:
QList <Timer * > currentTimers_; /*! Holds the timers */