diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /src/minicron.h | |
parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to '')
-rw-r--r-- | src/minicron.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/minicron.h b/src/minicron.h index b045e79..7ccf543 100644 --- a/src/minicron.h +++ b/src/minicron.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2007-2010 Xagasoft, All rights reserved. | 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. |
3 | * | 3 | * |
4 | * This file is part of the libbu++ library and is released under the | 4 | * This file is part of the libbu++ library and is released under the |
5 | * terms of the license contained in the file LICENSE. | 5 | * terms of the license contained in the file LICENSE. |
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | #include "bu/signals.h" | 11 | #include "bu/signals.h" |
12 | #include "bu/heap.h" | 12 | #include "bu/heap.h" |
13 | #include "bu/fstring.h" | 13 | #include "bu/string.h" |
14 | 14 | ||
15 | #include <time.h> | 15 | #include <time.h> |
16 | 16 | ||
@@ -89,7 +89,7 @@ namespace Bu | |||
89 | * JobId which can be used at a later time to control the execution of | 89 | * JobId which can be used at a later time to control the execution of |
90 | * the job. | 90 | * the job. |
91 | */ | 91 | */ |
92 | virtual JobId addJob( const Bu::FString &sName, CronSignal sigJob, | 92 | virtual JobId addJob( const Bu::String &sName, CronSignal sigJob, |
93 | const Timer &t ); | 93 | const Timer &t ); |
94 | 94 | ||
95 | /** | 95 | /** |
@@ -98,7 +98,7 @@ namespace Bu | |||
98 | * function returns a JobId which can be used at a later time to control | 98 | * function returns a JobId which can be used at a later time to control |
99 | * the execution of the job. | 99 | * the execution of the job. |
100 | */ | 100 | */ |
101 | virtual JobId addJobOnce( const Bu::FString &sName, CronSignal sigJob, | 101 | virtual JobId addJobOnce( const Bu::String &sName, CronSignal sigJob, |
102 | const Timer &t ); | 102 | const Timer &t ); |
103 | 103 | ||
104 | /** | 104 | /** |
@@ -113,12 +113,12 @@ namespace Bu | |||
113 | class JobInfo | 113 | class JobInfo |
114 | { | 114 | { |
115 | public: | 115 | public: |
116 | JobInfo( const Bu::FString &sName, JobId jid, time_t tNext ); | 116 | JobInfo( const Bu::String &sName, JobId jid, time_t tNext ); |
117 | virtual ~JobInfo(); | 117 | virtual ~JobInfo(); |
118 | 118 | ||
119 | bool operator<( const JobInfo &rhs ) const; | 119 | bool operator<( const JobInfo &rhs ) const; |
120 | 120 | ||
121 | Bu::FString sName; | 121 | Bu::String sName; |
122 | JobId jid; | 122 | JobId jid; |
123 | time_t tNext; | 123 | time_t tNext; |
124 | }; | 124 | }; |
@@ -189,7 +189,7 @@ namespace Bu | |||
189 | class TimerBasic : public Timer | 189 | class TimerBasic : public Timer |
190 | { | 190 | { |
191 | public: | 191 | public: |
192 | TimerBasic( const Bu::FString &s ); | 192 | TimerBasic( const Bu::String &s ); |
193 | virtual ~TimerBasic(); | 193 | virtual ~TimerBasic(); |
194 | 194 | ||
195 | virtual time_t nextTime(); | 195 | virtual time_t nextTime(); |
@@ -208,11 +208,11 @@ namespace Bu | |||
208 | tokErr, | 208 | tokErr, |
209 | tokEos | 209 | tokEos |
210 | }; | 210 | }; |
211 | Token lex( Bu::FString::const_iterator &i ); | 211 | Token lex( Bu::String::const_iterator &i ); |
212 | int lexInt( Bu::FString::const_iterator &i ); | 212 | int lexInt( Bu::String::const_iterator &i ); |
213 | int iVal; //< A temp variable for parsing. | 213 | int iVal; //< A temp variable for parsing. |
214 | time_t tLast; | 214 | time_t tLast; |
215 | Bu::FString sSpec; | 215 | Bu::String sSpec; |
216 | }; | 216 | }; |
217 | 217 | ||
218 | /** | 218 | /** |
@@ -225,7 +225,7 @@ namespace Bu | |||
225 | { | 225 | { |
226 | friend class Bu::MiniCron; | 226 | friend class Bu::MiniCron; |
227 | private: | 227 | private: |
228 | Job( const Bu::FString &sName, JobId jid, bool bRepeat=true ); | 228 | Job( const Bu::String &sName, JobId jid, bool bRepeat=true ); |
229 | virtual ~Job(); | 229 | virtual ~Job(); |
230 | 230 | ||
231 | public: | 231 | public: |
@@ -290,10 +290,10 @@ namespace Bu | |||
290 | /** | 290 | /** |
291 | * Gets the name that was set when the job was created. | 291 | * Gets the name that was set when the job was created. |
292 | */ | 292 | */ |
293 | Bu::FString getName() const; | 293 | Bu::String getName() const; |
294 | 294 | ||
295 | private: | 295 | private: |
296 | Bu::FString sName; | 296 | Bu::String sName; |
297 | CronSignal sigJob; | 297 | CronSignal sigJob; |
298 | time_t tNextRun; | 298 | time_t tNextRun; |
299 | Timer *pTimer; | 299 | Timer *pTimer; |