mirror of https://github.com/opencardev/aasdk
Make getter for channelId const method
parent
71cf9b43c3
commit
bd67b8aadc
|
@ -42,7 +42,7 @@ public:
|
|||
void sendAVChannelSetupResponse(const proto::messages::AVChannelSetupResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendAVInputOpenResponse(const proto::messages::AVInputOpenResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendAVMediaWithTimestampIndication(messenger::Timestamp::ValueType, const common::Data& data, SendPromise::Pointer promise) override;
|
||||
messenger::ChannelId getId() override;
|
||||
messenger::ChannelId getId() const override;
|
||||
|
||||
private:
|
||||
using std::enable_shared_from_this<AVInputServiceChannel>::shared_from_this;
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendAVChannelSetupResponse(const proto::messages::AVChannelSetupResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendAVMediaAckIndication(const proto::messages::AVMediaAckIndication& indication, SendPromise::Pointer promise) override;
|
||||
messenger::ChannelId getId() override;
|
||||
messenger::ChannelId getId() const override;
|
||||
|
||||
private:
|
||||
using std::enable_shared_from_this<AudioServiceChannel>::shared_from_this;
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
virtual void sendAVChannelSetupResponse(const proto::messages::AVChannelSetupResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendAVMediaWithTimestampIndication(messenger::Timestamp::ValueType, const common::Data& data, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendAVInputOpenResponse(const proto::messages::AVInputOpenResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual messenger::ChannelId getId() = 0;
|
||||
virtual messenger::ChannelId getId() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ public:
|
|||
virtual void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendAVChannelSetupResponse(const proto::messages::AVChannelSetupResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendAVMediaAckIndication(const proto::messages::AVMediaAckIndication& indication, SendPromise::Pointer promise) = 0;
|
||||
virtual messenger::ChannelId getId() = 0;
|
||||
virtual messenger::ChannelId getId() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
virtual void sendAVChannelSetupResponse(const proto::messages::AVChannelSetupResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendVideoFocusIndication(const proto::messages::VideoFocusIndication& indication, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendAVMediaAckIndication(const proto::messages::AVMediaAckIndication& indication, SendPromise::Pointer promise) = 0;
|
||||
virtual messenger::ChannelId getId() = 0;
|
||||
virtual messenger::ChannelId getId() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
void sendAVChannelSetupResponse(const proto::messages::AVChannelSetupResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendVideoFocusIndication(const proto::messages::VideoFocusIndication& indication, SendPromise::Pointer promise) override;
|
||||
void sendAVMediaAckIndication(const proto::messages::AVMediaAckIndication& indication, SendPromise::Pointer promise) override;
|
||||
messenger::ChannelId getId() override;
|
||||
messenger::ChannelId getId() const override;
|
||||
|
||||
private:
|
||||
using std::enable_shared_from_this<VideoServiceChannel>::shared_from_this;
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
BluetoothServiceChannel(boost::asio::io_service::strand& strand, messenger::IMessenger::Pointer messenger);
|
||||
|
||||
void receive(IBluetoothServiceChannelEventHandler::Pointer eventHandler) override;
|
||||
messenger::ChannelId getId() override;
|
||||
messenger::ChannelId getId() const override;
|
||||
void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendBluetoothPairingResponse(const proto::messages::BluetoothPairingResponse& response, SendPromise::Pointer promise) override;
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
virtual void receive(IBluetoothServiceChannelEventHandler::Pointer eventHandler) = 0;
|
||||
virtual void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendBluetoothPairingResponse(const proto::messages::BluetoothPairingResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual messenger::ChannelId getId() = 0;
|
||||
virtual messenger::ChannelId getId() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ public:
|
|||
virtual void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendInputEventIndication(const proto::messages::InputEventIndication& indication, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendBindingResponse(const proto::messages::BindingResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual messenger::ChannelId getId() = 0;
|
||||
virtual messenger::ChannelId getId() const = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ class InputServiceChannel: public IInputServiceChannel, public ServiceChannel, p
|
|||
void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendInputEventIndication(const proto::messages::InputEventIndication& indication, SendPromise::Pointer promise) override;
|
||||
void sendBindingResponse(const proto::messages::BindingResponse& response, SendPromise::Pointer promise) override;
|
||||
messenger::ChannelId getId() override;
|
||||
messenger::ChannelId getId() const override;
|
||||
|
||||
private:
|
||||
using std::enable_shared_from_this<InputServiceChannel>::shared_from_this;
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
virtual ~ISensorServiceChannel() = default;
|
||||
|
||||
virtual void receive(ISensorServiceChannelEventHandler::Pointer eventHandler) = 0;
|
||||
virtual messenger::ChannelId getId() = 0;
|
||||
virtual messenger::ChannelId getId() const = 0;
|
||||
virtual void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendSensorEventIndication(const proto::messages::SensorEventIndication& indication, SendPromise::Pointer promise) = 0;
|
||||
virtual void sendSensorStartResponse(const proto::messages::SensorStartResponseMessage& response, SendPromise::Pointer promise) = 0;
|
||||
|
|
|
@ -36,7 +36,7 @@ public:
|
|||
SensorServiceChannel(boost::asio::io_service::strand& strand, messenger::IMessenger::Pointer messenger);
|
||||
|
||||
void receive(ISensorServiceChannelEventHandler::Pointer eventHandler) override;
|
||||
messenger::ChannelId getId() override;
|
||||
messenger::ChannelId getId() const override;
|
||||
void sendChannelOpenResponse(const proto::messages::ChannelOpenResponse& response, SendPromise::Pointer promise) override;
|
||||
void sendSensorEventIndication(const proto::messages::SensorEventIndication& indication, SendPromise::Pointer promise) override;
|
||||
void sendSensorStartResponse(const proto::messages::SensorStartResponseMessage& response, SendPromise::Pointer promise) override;
|
||||
|
|
|
@ -65,7 +65,7 @@ void AVInputServiceChannel::sendAVChannelSetupResponse(const proto::messages::AV
|
|||
this->send(std::move(message), std::move(promise));
|
||||
}
|
||||
|
||||
messenger::ChannelId AVInputServiceChannel::getId()
|
||||
messenger::ChannelId AVInputServiceChannel::getId() const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ void AudioServiceChannel::receive(IAudioServiceChannelEventHandler::Pointer even
|
|||
messenger_->enqueueReceive(channelId_, std::move(receivePromise));
|
||||
}
|
||||
|
||||
messenger::ChannelId AudioServiceChannel::getId()
|
||||
messenger::ChannelId AudioServiceChannel::getId() const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ void VideoServiceChannel::receive(IVideoServiceChannelEventHandler::Pointer even
|
|||
messenger_->enqueueReceive(channelId_, std::move(receivePromise));
|
||||
}
|
||||
|
||||
messenger::ChannelId VideoServiceChannel::getId()
|
||||
messenger::ChannelId VideoServiceChannel::getId() const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ void BluetoothServiceChannel::receive(IBluetoothServiceChannelEventHandler::Poin
|
|||
messenger_->enqueueReceive(channelId_, std::move(receivePromise));
|
||||
}
|
||||
|
||||
messenger::ChannelId BluetoothServiceChannel::getId()
|
||||
messenger::ChannelId BluetoothServiceChannel::getId() const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ void InputServiceChannel::receive(IInputServiceChannelEventHandler::Pointer even
|
|||
messenger_->enqueueReceive(channelId_, std::move(receivePromise));
|
||||
}
|
||||
|
||||
messenger::ChannelId InputServiceChannel::getId()
|
||||
messenger::ChannelId InputServiceChannel::getId() const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
|
|
@ -47,7 +47,7 @@ void SensorServiceChannel::receive(ISensorServiceChannelEventHandler::Pointer ev
|
|||
messenger_->enqueueReceive(channelId_, std::move(receivePromise));
|
||||
}
|
||||
|
||||
messenger::ChannelId SensorServiceChannel::getId()
|
||||
messenger::ChannelId SensorServiceChannel::getId() const
|
||||
{
|
||||
return channelId_;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue