diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-01-10 19:00:07 -0500 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-01-10 19:00:07 -0500 |
| commit | b32ca560259df262e4d37a26333e281f8fa68730 (patch) | |
| tree | 66ac6132bb2ed06939e3d94efaa5e96c0a9a0dde /sigmod/Time.cpp | |
| parent | 9834ea2f8f8ea736c53d9686393f50ccc72a982b (diff) | |
Added a script variable to Time
Diffstat (limited to 'sigmod/Time.cpp')
| -rw-r--r-- | sigmod/Time.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sigmod/Time.cpp b/sigmod/Time.cpp index f0f34486..f4673758 100644 --- a/sigmod/Time.cpp +++ b/sigmod/Time.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2007-2008 Ben Boeckel <MathStuf@gmail.com> + * Copyright 2007-2009 Ben Boeckel <MathStuf@gmail.com> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -32,7 +32,8 @@ Sigmod::Time::Time(const Sigmod* parent, const int id) : Object(parent, id), m_name(""), m_hour(0), - m_minute(0) + m_minute(0), + m_script("", "") { } @@ -65,6 +66,7 @@ void Sigmod::Time::load(const QDomElement& xml) LOAD(name); LOAD(hour); LOAD(minute); + LOAD(script); } QDomElement Sigmod::Time::save() const @@ -73,20 +75,24 @@ QDomElement Sigmod::Time::save() const SAVE(name); SAVE(hour); SAVE(minute); + SAVE(script); return xml; } SETTER(Time, QString&, Name, name) SETTER(Time, int, Hour, hour) SETTER(Time, int, Minute, minute) +SETTER(Time, Sigcore::Script&, Script, script) GETTER(Time, QString, name) GETTER(Time, int, hour) GETTER(Time, int, minute) +GETTER(Time, Sigcore::Script, script) CHECK(Time, QString&, name) CHECK_BOUNDS(Time, int, hour, 0, 23) CHECK_BOUNDS(Time, int, minute, 0, 59) +CHECK(Time, Sigcore::Script&, script) Sigmod::Time& Sigmod::Time::operator=(const Time& rhs) { @@ -95,5 +101,6 @@ Sigmod::Time& Sigmod::Time::operator=(const Time& rhs) COPY(name); COPY(hour); COPY(minute); + COPY(script); return *this; } |
