/usr/include/sipxtapi/MaNotfTranslatorDispatcher.h is in libsipxtapi-dev 3.3.0~test17-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | //
// Copyright (C) 2007 SIPez LLC.
// Licensed to SIPfoundry under a Contributor Agreement.
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////
// Author: Keith Kyzivat <kkyzivat AT SIPez DOT com>
#ifndef _MaNotfConvertDispatcher_h_
#define _MaNotfConvertDispatcher_h_
// SYSTEM INCLUDES
#include <os/OsMsgDispatcher.h>
// APPLICATION INCLUDES
#include "mi/MiNotification.h"
// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS
/**
* @brief Dispatcher to translate MediaLib notifications into abstracted
* MediaAdapterLib notifications.
*
* This message dispatcher is used to receive notifications from the mediaLib
* layer, then convert those messages to more abstract mediaAdapter notification
* messages and send them off again to another, supplied dispatcher.
* @see OsMsgDispatcher
*/
class MaNotfTranslatorDispatcher : public OsMsgDispatcher
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:
/* ============================ CREATORS ================================== */
///@name Creators
//@{
/// Default constructor
MaNotfTranslatorDispatcher(OsMsgDispatcher* pAbstractedMsgDispatcher = NULL);
/// Destructor
virtual ~MaNotfTranslatorDispatcher();
//@}
/* ============================ MANIPULATORS ============================== */
///@name Manipulators
//@{
/// Set the media interface dispatcher that will receive the converted
/// abstract notifications.
virtual OsMsgDispatcher* setDispatcher(OsMsgDispatcher* pMIDispatcher);
/// @copydoc OsMsgDispatcher::post()
virtual OsStatus post(const OsMsg& msg);
/// @copydoc OsMsgDispatcher::receive()
virtual OsStatus receive(OsMsg*& rpMsg,
const OsTime& rTimeout=OsTime::OS_INFINITY);
//@}
/* ============================ ACCESSORS ================================= */
///@name Accessors
//@{
/// Get the media interface dispatcher currently set on this translator dispatcher
virtual OsMsgDispatcher* getDispatcher() const;
/* ============================ INQUIRY =================================== */
///@name Inquiry
//@{
/// Return whether this translator has a dispatcher to receive notifications from
/// set on it or not.
virtual UtlBoolean hasDispatcher() const;
//@}
/* //////////////////////////// PROTECTED ///////////////////////////////// */
protected:
OsMsgDispatcher* mpAbstractedMsgDispatcher;
/* //////////////////////////// PRIVATE /////////////////////////////////// */
private:
};
/* ============================ INLINE METHODS ============================ */
#endif // _MaNotfConvertDispatcher_h_
|