Hot Door CORE  0.7.1
Adobe® Illustrator® Plug-in Library
hdicoreNotifier.h
Go to the documentation of this file.
1 
7 #ifndef __HDI_CORE_NOTIFIER__
8 #define __HDI_CORE_NOTIFIER__
9 
10 #include "hdicoreTypes.h"
11 
12 namespace hdi
13 {
14  namespace core
15  {
16  class Callback;
17 
21  class Notifier
22  {
23  public:
35  Notifier();
36 
44  Notifier(const Notifier& n_);
45 
55  Notifier(const NotifierType type_, const Callback& responder_);
56 
62  virtual ~Notifier();
63 
73  virtual Notifier& operator=(const Notifier& rhs_);
74 
83  virtual bool operator==(const Notifier& rhs_) const;
84 
93  virtual bool operator!=(const Notifier& rhs_) const;
94 
102  virtual bool isEmpty() const;
103 
111  virtual NotifierType type() const;
112 
120  virtual bool active() const;
121 
131  virtual void setActive(const bool active_);
132 
138  virtual void activate() const;
139 
145  virtual void deactivate() const;
146 
154  virtual Callback* const callback() const;
155 
163  virtual void setCallback(const Callback& cb_);
164 
165 
166  private:
170  void* __data;
171  };
172 
173  typedef std::auto_ptr<Notifier> NotifierAP;
174  }
175 }
176 
177 #endif
178 // __HDI_CORE_NOTIFIER__
Notifier()
Constructs an empty Notifier object.
virtual void deactivate() const
Deactivates (disables) the notifier.
virtual bool operator!=(const Notifier &rhs_) const
Tests whether a given Notifier object is not the same as another.
virtual void setCallback(const Callback &cb_)
Sets the callback for the notifier.
virtual NotifierType type() const
Gets the type of the notifier.
virtual bool operator==(const Notifier &rhs_) const
Tests whether a given Notifier object is the same as another.
virtual Notifier & operator=(const Notifier &rhs_)
Assigns one Notifier object to another.
virtual bool isEmpty() const
Gets whether the target Notifier object is empty (constructed with the default ctor) ...
virtual Callback *const callback() const
Gets the registered callback for the notifier.
NotifierType
Describes the types of Illustrator notifiers for which subscriptions are available.
Definition: hdicoreTypes.h:858
Base class for templated __Callback class.
Definition: hdicoreCallback.h:67
Header file for a wide variety of necessary typedefs, enums, and forwards declarations.
virtual void activate() const
Activates (enables) the notifier.
virtual ~Notifier()
Destructs a Notifier object, deactivating it first.
Definition: hdicoreaiArray.h:12
virtual bool active() const
Gets whether the notifier is active.
Acts as a receiver for specific notifications, passing them along to caller-supplied callbacks...
Definition: hdicoreNotifier.h:21
virtual void setActive(const bool active_)
Sets whether the notifier is active.