mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-27 12:21:02 +08:00
Add deprecated for BusAttorney
This commit is contained in:
parent
dc672b48ab
commit
4d43ff4483
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user