7#ifndef __HDI_CORE_NOTIFIER__
8#define __HDI_CORE_NOTIFIER__
10#if defined(HDI_CORE_AIP_MODE)
175 typedef std::unique_ptr<Notifier> NotifierUP;
176 typedef std::shared_ptr<Notifier> NotifierSP;
177 typedef std::weak_ptr<Notifier> NotifierWP;
Base class for templated __Callback class.
Definition: hdicoreCallback.h:68
Acts as a receiver for specific notifications, passing them along to caller-supplied callbacks.
Definition: hdicoreNotifier.h:24
virtual void deactivate() const
Deactivates (disables) the notifier.
virtual void activate() const
Activates (enables) the notifier.
virtual NotifierType type() const
Gets the type of the notifier.
virtual Callback *const callback() const
Gets the registered callback for the notifier.
virtual bool isEmpty() const
Gets whether the target Notifier object is empty (constructed with the default ctor)
virtual Notifier & operator=(const Notifier &rhs_)
Assigns one Notifier object to another.
Notifier(const NotifierType type_, const Callback &responder_)
Constructs a Notifier object to fire a responder (target and action) when Illustrator sends a notific...
virtual ~Notifier()
Destructs a Notifier object, deactivating it first.
Notifier(const Notifier &n_)
Constructs a new Notifier object from an existing Notifier object (copy constructor)
Notifier()
Constructs an empty Notifier object.
virtual bool active() const
Gets whether the notifier is active.
virtual void setCallback(const Callback &cb_)
Sets the callback for the notifier.
virtual void setActive(const bool active_)
Sets whether the notifier is active.
virtual bool operator!=(const Notifier &rhs_) const
Tests whether a given Notifier object is not the same as another.
virtual bool operator==(const Notifier &rhs_) const
Tests whether a given Notifier object is the same as another.
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
NotifierType
Describes the types of Illustrator notifiers for which subscriptions are available.
Definition: hdicoreTypes.h:1264