1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright (C) 2001-2002 CodeFactory AB
* Copyright (C) 2001-2002 Richard Hult <richard@imendio.com>
* Copyright (C) 2001-2002 Mikael Hallendal <micke@imendio.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#pragma once
#define MRP_TYPE_DAY (mrp_day_get_type ())
/**
* MrpDay:
*
* Object representing a day in the project.
*/
typedef struct _MrpDay MrpDay;
#include <libplanner/mrp-project.h>
#define MRP_DAY(o) (MrpDay *) o
/* Used while saving/loading */
enum {
MRP_DAY_WORK = 0,
MRP_DAY_NONWORK = 1,
MRP_DAY_USE_BASE = 2,
MRP_DAY_NEXT = 3
};
GType mrp_day_get_type (void) G_GNUC_CONST;
MrpDay * mrp_day_add (MrpProject *project,
const gchar *name,
const gchar *description);
GList * mrp_day_get_all (MrpProject *project);
void mrp_day_remove (MrpProject *project,
MrpDay *day);
gint mrp_day_get_id (MrpDay *day);
const gchar * mrp_day_get_name (MrpDay *day);
void mrp_day_set_name (MrpDay *day,
const gchar *name);
const gchar * mrp_day_get_description (MrpDay *day);
void mrp_day_set_description (MrpDay *day,
const gchar *description);
MrpDay * mrp_day_ref (MrpDay *day);
void mrp_day_unref (MrpDay *day);
MrpDay * mrp_day_get_work (void);
MrpDay * mrp_day_get_nonwork (void);
MrpDay * mrp_day_get_use_base (void);
|