A problem is that the QueryMetadata.h file [1] and the public docs [2] states that Unknown is one of the enum values. As such a scope dev needs to handle the case.
Perhaps those texts should be modified to indicate "Unknown" will never be the value, therefore sparing the dev the need to figure out how to handle it. [1] \brief Indicates the internet connectivity status. The `Unknown` enumerator indicates that set_internet_connectivity() has not yet been called, hence the connectivity status is currently unknown. [2] https://developer.ubuntu.com/api/scopes/cpp/sdk-15.04.1/unity.scopes.QueryMetadata/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1502282 Title: "unknown" connectivity status problematic To manage notifications about this bug go to: https://bugs.launchpad.net/savilerow/+bug/1502282/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs