| 42 | } |
| 43 | |
| 44 | Alert alertFromString(const std::string& s) |
| 45 | { |
| 46 | if (s == "select") |
| 47 | { |
| 48 | return Alert::select; |
| 49 | } |
| 50 | else if (s == "lselect") |
| 51 | { |
| 52 | return Alert::lselect; |
| 53 | } |
| 54 | else |
| 55 | { |
| 56 | return Alert::none; |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | bool Sensor::hasOn() const |
| 61 | { |
no outgoing calls