Changeset View
Changeset View
Standalone View
Standalone View
src/rsitimer.h
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Line(s) | 178 | enum class TimerState { | |||
---|---|---|---|---|---|
181 | Suggesting, // politely suggest to take a break with some patience. | 181 | Suggesting, // politely suggest to take a break with some patience. | ||
182 | Resting // suggestion ignored, waiting out the break. | 182 | Resting // suggestion ignored, waiting out the break. | ||
183 | } m_state; | 183 | } m_state; | ||
184 | 184 | | |||
185 | std::unique_ptr<RSITimerCounter> m_bigBreakCounter; | 185 | std::unique_ptr<RSITimerCounter> m_bigBreakCounter; | ||
186 | std::unique_ptr<RSITimerCounter> m_tinyBreakCounter; | 186 | std::unique_ptr<RSITimerCounter> m_tinyBreakCounter; | ||
187 | std::unique_ptr<RSITimerCounter> m_pauseCounter; | 187 | std::unique_ptr<RSITimerCounter> m_pauseCounter; | ||
188 | std::unique_ptr<RSITimerCounter> m_popupCounter; | 188 | std::unique_ptr<RSITimerCounter> m_popupCounter; | ||
189 | std::unique_ptr<RSITimerCounter> m_shortInputCounter; | ||||
189 | 190 | | |||
190 | void hibernationDetector( const int totalIdle ); | 191 | void hibernationDetector( const int totalIdle ); | ||
191 | void suggestBreak( const int time ); | 192 | void suggestBreak( const int time ); | ||
192 | void defaultUpdateToolTip(); | 193 | void defaultUpdateToolTip(); | ||
193 | void createTimers(); | 194 | void createTimers(); | ||
194 | 195 | | |||
195 | // This function is called when a break has passed. | 196 | // This function is called when a break has passed. | ||
196 | void resetAfterBreak(); | 197 | void resetAfterBreak(); | ||
Show All 16 Lines |