Top | ![]() |
![]() |
![]() |
![]() |
MrpDay * | mrp_day_add () |
GList * | mrp_day_get_all () |
void | mrp_day_remove () |
gint | mrp_day_get_id () |
const gchar * | mrp_day_get_name () |
void | mrp_day_set_name () |
const gchar * | mrp_day_get_description () |
void | mrp_day_set_description () |
MrpDay * | mrp_day_ref () |
void | mrp_day_unref () |
MrpDay * | mrp_day_get_work () |
MrpDay * | mrp_day_get_nonwork () |
MrpDay * | mrp_day_get_use_base () |
A day is a specific type of day, such as working day or non-working day. Other examples might be custom types like half day, or a holiday.
MrpDay * mrp_day_add (MrpProject *project
,const gchar *name
,const gchar *description
);
Adds a new day type to project
.
project |
an MrpProject |
|
name |
the name of the day type |
|
description |
human readable description of the day type |
GList *
mrp_day_get_all (MrpProject *project
);
Fetches a list of all available day types in project
.
void mrp_day_remove (MrpProject *project
,MrpDay *day
);
Remove day
from available day types in project
void mrp_day_set_name (MrpDay *day
,const gchar *name
);
Sets the name of day
to name
and emits the "day-changed" signal
const gchar *
mrp_day_get_description (MrpDay *day
);
Fetches the description of day
void mrp_day_set_description (MrpDay *day
,const gchar *description
);
Sets the description of day
to description
and emits the "day-changed"
signal
MrpDay *
mrp_day_ref (MrpDay *day
);
Add a reference to day
. User should call this when storing a reference to
a day.
void
mrp_day_unref (MrpDay *day
);
Remove a reference from property. If the reference count reaches 0 the
property will be freed. User should not use it's reference after calling
mrp_day_unref()
.
MrpDay *
mrp_day_get_use_base (void
);
Fetches the builtin day type user base