<commit_before>//  
// Copyright (C) 2007 SIPez LLC. 
// Licensed to SIPfoundry under a Contributor Agreement. 
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////

#ifndef _MpResourceMsg_h_
#define _MpResourceMsg_h_

// SYSTEM INCLUDES

// APPLICATION INCLUDES
#include "os/OsMsg.h"
#include "utl/UtlString.h"

// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS

/// Message object used to communicate with the media processing task
class MpResourceMsg : public OsMsg
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:

   /// Phone set message types
   typedef enum
   {
      MPRM_RESOURCE_DISABLE,
      MPRM_RESOURCE_ENABLE,
      MPRM_ENABLE_ALL_NOTIFICATIONS,
      MPRM_DISABLE_ALL_NOTIFICATIONS,

      MPRM_START_TONE,
      MPRM_STOP_TONE,
      MPRM_FROMFILE_START,
      MPRM_FROMFILE_PAUSE,
      MPRM_FROMFILE_STOP,

      MPRM_BUF_RECORDER_START,
      MPRM_BUF_RECORDER_STOP,

      // Connection Resource messages
      MPRM_START_RECEIVE_RTP,
      MPRM_STOP_RECEIVE_RTP,
      MPRM_START_SEND_RTP,
      MPRM_STOP_SEND_RTP,

      // Add new built in resource operation messages above

      // Non-builtin resource messages
      MPRM_EXTERNAL_MESSAGE_START = 128
      // Do not add new message types after this
   } MpResourceMsgType;

/* ============================ CREATORS ================================== */
///@name Creators<commit_msg>Properly document message resource type enum.<commit_after>//  
// Copyright (C) 2007 SIPez LLC. 
// Licensed to SIPfoundry under a Contributor Agreement. 
//
// Copyright (C) 2007 SIPfoundry Inc.
// Licensed by SIPfoundry under the LGPL license.
//
// $$
///////////////////////////////////////////////////////////////////////////////

#ifndef _MpResourceMsg_h_
#define _MpResourceMsg_h_

// SYSTEM INCLUDES

// APPLICATION INCLUDES
#include "os/OsMsg.h"
#include "utl/UtlString.h"

// DEFINES
// MACROS
// EXTERNAL FUNCTIONS
// EXTERNAL VARIABLES
// CONSTANTS
// STRUCTS
// TYPEDEFS
// FORWARD DECLARATIONS

/// Message object used to communicate with the media processing task
class MpResourceMsg : public OsMsg
{
/* //////////////////////////// PUBLIC //////////////////////////////////// */
public:

     /// Resource message types
   typedef enum
   {
      MPRM_RESOURCE_DISABLE,           ///< Generic resource disable message
      MPRM_RESOURCE_ENABLE,            ///< Generic resource enable message
      MPRM_ENABLE_ALL_NOTIFICATIONS,   ///< Message to enable all notifications to be sent from resources
      MPRM_DISABLE_ALL_NOTIFICATIONS,  ///< Message to disable all notification from being sent from resources

      MPRM_START_TONE,          ///< Start a tone.
      MPRM_STOP_TONE,           ///< Stop a tone.
      MPRM_FROMFILE_START,      ///< Start playing a file.
      MPRM_FROMFILE_PAUSE,      ///< Pause a playing file.
      MPRM_FROMFILE_STOP,       ///< Stop a playing file.

      MPRM_BUF_RECORDER_START,  ///< Start recording to a buffer.
      MPRM_BUF_RECORDER_STOP,   ///< Stop recording to a buffer.

      // Connection Resource messages
      MPRM_START_RECEIVE_RTP,   ///< Start receiving RTP.
      MPRM_STOP_RECEIVE_RTP,    ///< Stop receiving RTP.
      MPRM_START_SEND_RTP,      ///< Start sending RTP.
      MPRM_STOP_SEND_RTP,       ///< Stop sending RTP.

      // Add new built in resource operation messages above

      // Non-builtin resource messages
      MPRM_EXTERNAL_MESSAGE_START = 128
      // Do not add new message types after this
   } MpResourceMsgType;

/* ============================ CREATORS ================================== */
///@name Creators
{'fraction_non_alphanumeric': 0.1837215388641717, 'fraction_numerical': 0.0057576550641193405, 'mean_word_length': 2.0847457627118646, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2352027', 'n_tokens_mistral': 1207, 'n_tokens_neox': 1155, 'n_words': 297}