defuze.me
Client
|
Public Slots | |
void | eventClicked () |
Signals | |
void | clicked () |
Public Member Functions | |
EventModel (SchedulerPlugin *scheduler, QString title, QString description, short day, int start, int duration, int id=0) | |
int | save () |
void | saveColor (int color) |
void | savePlaylists (QList< int > playlists) |
int | getId () const |
Return the event id according to the database. | |
QString | getTitle () const |
Return the title of the event. | |
QString | getDescription () const |
Return the description. | |
short | getDay () const |
Return the day of the event (1-7) | |
int | getStartTime () const |
Return the event start time (seconds) | |
int | getDuration () const |
Return event duration (minutes) | |
QDateTime | nextInstance () const |
Return next event start from now. | |
const QString & | getColor () |
Return the color ( ex: "FFAD46" ) | |
int | getColorID () |
Return the color id according to the database. | |
QList< int > | getPlaylists () |
Return an int list of playlists associated to this event. | |
void | focusIn () |
Give the focus on the current event. | |
void | focusOut () |
Get the focus out of the event. | |
void | setStyle () |
Set the default style for the event + the appropriate color. | |
void | remove () |
Delete the event from the database. | |
Static Public Member Functions | |
static const QString & | getColorByID (int colorID) |
Return the color from database by its id ( ex: "FFAD46" ) | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *) |
Friends | |
class | EventWidget |
Definition at line 19 of file eventmodel.hpp.