/* * Copyright (c) 2021 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #ifndef SENSOR_CHANNEL_INFO_H #define SENSOR_CHANNEL_INFO_H #include #include #include namespace OHOS { namespace Sensors { class SensorChannelInfo { public: SensorChannelInfo(); virtual ~SensorChannelInfo() = default; int32_t GetUid() const; void SetUid(int32_t uid); std::string GetPackageName() const; void SetPackageName(const std::string &packageName); int32_t GetSensorId() const; void SetSensorId(int32_t sensorId); int64_t GetSamplingPeriodNs() const; void SetSamplingPeriodNs(int64_t samplingPeriodNs); int32_t GetFifoCount() const; void SetFifoCount(uint32_t fifoCount); std::vector GetCmdType() const; void SetCmdType(const std::vector &cmdType); private: int32_t uid_; std::string packageName_; int32_t sensorId_; int64_t samplingPeriodNs_; uint32_t fifoCount_; std::vector cmdType_; }; } // namespace Sensors } // namespace OHOS #endif // SENSOR_CHANNEL_INFO_H