sipxmediaadapterlib  Version 3.3
MaNotfTranslatorDispatcher.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2007 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2007 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // $$
10 
11 // Author: Keith Kyzivat <kkyzivat AT SIPez DOT com>
12 
13 #ifndef _MaNotfConvertDispatcher_h_
14 #define _MaNotfConvertDispatcher_h_
15 
16 // SYSTEM INCLUDES
17 #include <os/OsMsgDispatcher.h>
18 
19 // APPLICATION INCLUDES
20 #include "mi/MiNotification.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
40 class MaNotfTranslatorDispatcher : public OsMsgDispatcher
41 {
42 /* //////////////////////////// PUBLIC //////////////////////////////////// */
43 public:
44 
45 /* ============================ CREATORS ================================== */
47 
48 
50  MaNotfTranslatorDispatcher(OsMsgDispatcher* pAbstractedMsgDispatcher = NULL);
51 
54 
56 
57 /* ============================ MANIPULATORS ============================== */
59 
60  virtual OsMsgDispatcher* setDispatcher(OsMsgDispatcher* pMIDispatcher);
63 
65  virtual OsStatus post(const OsMsg& msg);
66 
68  virtual OsStatus receive(OsMsg*& rpMsg,
69  const OsTime& rTimeout=OsTime::OS_INFINITY);
70 
72 
73 /* ============================ ACCESSORS ================================= */
75 
76 
78  virtual OsMsgDispatcher* getDispatcher() const;
79 
80 /* ============================ INQUIRY =================================== */
82 
83 
86  virtual UtlBoolean hasDispatcher() const;
87 
89 
90 /* //////////////////////////// PROTECTED ///////////////////////////////// */
91 protected:
92  OsMsgDispatcher* mpAbstractedMsgDispatcher;
93 
94 /* //////////////////////////// PRIVATE /////////////////////////////////// */
95 private:
96 
97 };
98 
99 /* ============================ INLINE METHODS ============================ */
100 
101 #endif // _MaNotfConvertDispatcher_h_
Dispatcher to translate MediaLib notifications into abstracted MediaAdapterLib notifications.
Definition: MaNotfTranslatorDispatcher.h:40
virtual OsMsgDispatcher * setDispatcher(OsMsgDispatcher *pMIDispatcher)
Definition: MaNotfTranslatorDispatcher.cpp:54
MaNotfTranslatorDispatcher(OsMsgDispatcher *pAbstractedMsgDispatcher=NULL)
Default constructor.
Definition: MaNotfTranslatorDispatcher.cpp:43
virtual UtlBoolean hasDispatcher() const
Definition: MaNotfTranslatorDispatcher.cpp:267
virtual OsStatus post(const OsMsg &msg)
Definition: MaNotfTranslatorDispatcher.cpp:61
virtual OsStatus receive(OsMsg *&rpMsg, const OsTime &rTimeout=OsTime::OS_INFINITY)
Definition: MaNotfTranslatorDispatcher.cpp:253
virtual OsMsgDispatcher * getDispatcher() const
Get the media interface dispatcher currently set on this translator dispatcher.
Definition: MaNotfTranslatorDispatcher.cpp:260
OsMsgDispatcher * mpAbstractedMsgDispatcher
Definition: MaNotfTranslatorDispatcher.h:92
virtual ~MaNotfTranslatorDispatcher()
Destructor.
Definition: MaNotfTranslatorDispatcher.cpp:48