| 114 | } |
| 115 | |
| 116 | void Schedule::setTime(const time::TimePattern& timePattern) |
| 117 | { |
| 118 | // if (state.getValue().count("localtime")) |
| 119 | //{ |
| 120 | sendPutRequest({{"localtime", timePattern.toString()}}, CURRENT_FILE_INFO); |
| 121 | // Time requires UTC time, which is not yet supported |
| 122 | //} |
| 123 | // else |
| 124 | //{ |
| 125 | // sendPutRequest({{"time", timePattern.toString()}}, CURRENT_FILE_INFO); |
| 126 | //} |
| 127 | refresh(); |
| 128 | } |
| 129 | |
| 130 | void Schedule::setEnabled(bool enabled) |
| 131 | { |