online property

bool online

On/Offline indicator

Implementation

bool get online {
  /* If we are not online or we are and the CouchDb database is not
   * available we are offline
   */
  if ((!_online) || (_database.noCouchDb)) {
    return false;
  }
  return true;
}
void online=(bool state)

Implementation

set online(bool state) {
  _online = state;
  if (state) {
    _transitionToOnline();
  }
}