diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-03-17 13:41:49 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-03-17 13:41:49 +0000 |
commit | 5e6e1e8838fe7637ef588e0fb080ad07fc5700aa (patch) | |
tree | 2cc32c95da0cf49f8361879eec1fa5a4a4b557d8 /plugins/!NotAdopted/WinterSpeak/general/observer/observer.h | |
parent | 561f00a7d38c61ec30c5898b90766314011d32d8 (diff) |
Winter Speak plugin added (not adopted)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4076 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/WinterSpeak/general/observer/observer.h')
-rw-r--r-- | plugins/!NotAdopted/WinterSpeak/general/observer/observer.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/WinterSpeak/general/observer/observer.h b/plugins/!NotAdopted/WinterSpeak/general/observer/observer.h new file mode 100644 index 0000000000..9f93ea91f1 --- /dev/null +++ b/plugins/!NotAdopted/WinterSpeak/general/observer/observer.h @@ -0,0 +1,30 @@ +#ifndef guard_general_observer_observer_observer_h +#define guard_general_observer_observer_observer_h +//==============================================================================
+// General Code, © 2002 Ryan Winter
+//==============================================================================
+ +class Subject; +
+class Observer +{ + public: + virtual ~Observer(); + + //-------------------------------------------------------------------------- + // Description : Called by a subject that this observer is observing
+ // to signify a change in state
+ // Parameters : subject - the subject that changed + //-------------------------------------------------------------------------- + virtual void update(Subject &subject) = 0; +}; +
+//==============================================================================
+//
+// Summary : Observer side of the observer pattern
+//
+// Description :
+//
+//==============================================================================
+ +#endif |