channel_settings.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_CHANNEL_SETTINGS_H_
  17. #define WIFICOND_SCANNING_CHANNEL_SETTINGS_H_
  18. #include <binder/Parcel.h>
  19. #include <binder/Parcelable.h>
  20. namespace com {
  21. namespace android {
  22. namespace server {
  23. namespace wifi {
  24. namespace wificond {
  25. class ChannelSettings : public ::android::Parcelable {
  26. public:
  27. ChannelSettings()
  28. : frequency_(0) {}
  29. bool operator==(const ChannelSettings& rhs) const {
  30. return frequency_ == rhs.frequency_;
  31. }
  32. ::android::status_t writeToParcel(::android::Parcel* parcel) const override;
  33. ::android::status_t readFromParcel(const ::android::Parcel* parcel) override;
  34. int32_t frequency_;
  35. };
  36. } // namespace wificond
  37. } // namespace wifi
  38. } // namespace server
  39. } // namespace android
  40. } // namespace com
  41. #endif // WIFICOND_SCANNING_CHANNEL_SETTINGS_H_