iVoiceCallSourceList.h
1 #ifndef IVOICECALLSOURCELIST_H_
2 #define IVOICECALLSOURCELIST_H_
3 
4 #include <boost/system/error_code.hpp>
5 #include <boost/shared_ptr.hpp>
6 #include <list>
7 
8 #include "iVoiceCallSource.h"
9 
10 namespace dpyVoicecall {
11 
17 {
18 public:
22  virtual void listEvent(boost::shared_ptr<IVoiceCallSource> voiceCallSource, dpyVoicecall::ListEvent event) = 0;
23 
27  virtual ~ListObserver()
28  {
29  }
30 };
31 }
32 
39 {
40 private:
41  std::vector<dpyVoicecall::ListObserver*> mObserversList;
42 protected:
43  virtual ~IVoiceCallSourceList();
44 
45  boost::system::error_code subscribe(dpyVoicecall::ListObserver* observer);
46  boost::system::error_code unsubscribe(dpyVoicecall::ListObserver* observer);
47 
48  virtual boost::system::error_code getVoiceCallSources(std::list<boost::shared_ptr<IVoiceCallSource>>& list) = 0;
49 };
50 
51 #endif /* IVOICECALLSOURCELIST_H_ */
ListEvent
Definition: iVoiceCallSource.h:12
virtual ~ListObserver()
Destructor.
Definition: iVoiceCallSourceList.h:27
Deepsy Voicecall namespace that includes the different enums, structs or method signatures that shoul...
virtual void listEvent(boost::shared_ptr< IVoiceCallSource > voiceCallSource, dpyVoicecall::ListEvent event)=0
Interface for Voice Call List.
Definition: iVoiceCallSourceList.h:38
List Observer class.
Definition: iVoiceCallSourceList.h:16