Add deprecated for BusAttorney

This commit is contained in:
Dawid Drozd 2017-12-04 13:24:44 +01:00
parent dc672b48ab
commit 4d43ff4483

View File

@ -11,7 +11,7 @@
namespace Dexode
{
class BusAttorney
class [[deprecated("This class will be removed, is breaking API")]] BusAttorney
{
public:
BusAttorney(std::shared_ptr<EventBus> bus)
@ -25,12 +25,14 @@ public:
* @param event your event struct
*/
template<typename Event>
[[deprecated]]
void notify(const Event& event) const
{
_bus->notify(event);
}
std::shared_ptr<EventBus> extract()
[[deprecated]]
std::shared_ptr<EventBus> extract() const
{
return _bus;
}
@ -92,6 +94,7 @@ public:
bool isUsing(const std::shared_ptr<EventBus>& bus) const;
///I wan't explicitly say getBus. Ok we could add method for notify but this is more explicit
[[deprecated("This method will be removed, is breaking encapsulation")]]
BusAttorney getBus() const;
private: