2 * UsageLimits.h - TaskJuggler
4 * Copyright (c) 2001, 2002, 2003, 2004, 2005 by Chris Schlaeger <cs@kde.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of version 2 of the GNU General Public License as
8 * published by the Free Software Foundation.
13 #ifndef _UsageLimits_h_
14 #define _UsageLimits_h_
17 * This class stores usage limits of resources or task allocations. The values
18 * are stored as number of scoreboard slots.
20 * @short The class stores usage limits
23 * @author Chris Schlaeger <cs@kde.org>
40 void setDailyMax(uint m) { dailyMax = m; }
41 uint getDailyMax() const { return dailyMax; }
43 void setWeeklyMax(uint m) { weeklyMax = m; }
44 uint getWeeklyMax() const { return weeklyMax; }
46 void setWeeklyRatioMax(double m) { weeklyRatioMax = m; }
47 double getWeeklyRatioMax() const { return weeklyRatioMax; }
49 void setMonthlyMax(uint m) { monthlyMax = m; }
50 uint getMonthlyMax() const { return monthlyMax; }
52 void setMonthlyRatioMax(double m) { monthlyRatioMax = m; }
53 double getMonthlyRatioMax() const { return monthlyRatioMax; }
55 void setYearlyMax(uint m) { yearlyMax = m; }
56 uint getYearlyMax() const { return yearlyMax; }
58 void setProjectMax(uint m) { projectMax = m; }
59 uint getProjectMax() const { return projectMax; }
64 double weeklyRatioMax;
66 double monthlyRatioMax;