hidden_network.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2016 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef WIFICOND_SCANNING_HIDDEN_NETWORK_H_
  17. #define WIFICOND_SCANNING_HIDDEN_NETWORK_H_
  18. #include <vector>
  19. #include <binder/Parcel.h>
  20. #include <binder/Parcelable.h>
  21. namespace com {
  22. namespace android {
  23. namespace server {
  24. namespace wifi {
  25. namespace wificond {
  26. class HiddenNetwork : public ::android::Parcelable {
  27. public:
  28. HiddenNetwork() = default;
  29. bool operator==(const HiddenNetwork& rhs) const {
  30. return ssid_ == rhs.ssid_;
  31. }
  32. ::android::status_t writeToParcel(::android::Parcel* parcel) const override;
  33. ::android::status_t readFromParcel(const ::android::Parcel* parcel) override;
  34. std::vector<uint8_t> ssid_;
  35. };
  36. } // namespace wificond
  37. } // namespace wifi
  38. } // namespace server
  39. } // namespace android
  40. } // namespace com
  41. #endif // WIFICOND_SCANNING_HIDDEN_NETWORK_H_