sipxportlib  Version 3.3
UtlObservableImpl.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 
12 #ifndef _UtlObservableImpl_h_
13 #define _UtlObservableImpl_h_
14 
15 // SYSTEM INCLUDES
16 // APPLICATION INCLUDES
17 #include "os/OsLock.h"
18 #include "os/OsMutex.h"
19 #include "utl/UtlObservable.h"
20 #include "utl/UtlSList.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
32 {
33 public:
38 
45  virtual void registerObserver(UtlObserver* observer) = 0;
46 
53  virtual void removeObserver(UtlObserver* observer) = 0;
54 protected:
55 
64  virtual void notify(int code, void *pUserData);
65 private:
69  UtlSList mObservers;
70 
74  OsMutex mMutex;
75 };
76 
77 #endif
virtual void registerObserver(UtlObserver *observer)=0
virtual void notify(int code, void *pUserData)
Definition: UtlObservable.h:17
Definition: UtlSList.h:47
Definition: UtlObservableImpl.h:31
Definition: UtlObservable.h:43
virtual void removeObserver(UtlObserver *observer)=0