Make getter for channelId const method

master
michal.szwaj 2018-02-12 16:07:44 +01:00
parent 71cf9b43c3
commit bd67b8aadc
18 changed files with 18 additions and 18 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;
};
}

View File

@ -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;
};
}

View File

@ -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;
};
}

View File

@ -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;

View File

@ -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;

View File

@ -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;
};
}

View File

@ -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;
};
}

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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_;
}

View File

@ -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_;
}

View File

@ -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_;
}

View File

@ -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_;
}

View File

@ -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_;
}

View File

@ -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_;
}