sipxmedialib  Version 3.3
MprRtpOutputConnectionConstructor.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006-2008 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2006-2008 SIPez LLC.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 // Author: Dan Petrie <dpetrie AT SIPez DOT com>
12 
13 #ifndef _MprRtpOutputConnectionConstructor_h_
14 #define _MprRtpOutputConnectionConstructor_h_
15 
16 // SYSTEM INCLUDES
17 // APPLICATION INCLUDES
20 #include <mp/MprToSpkr.h>
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 
36 {
37 /* //////////////////////////// PUBLIC //////////////////////////////////// */
38 public:
39 
40 /* ============================ CREATORS ================================== */
41 
46  0, 1, //minInputs, maxInputs,
47  0, 0) //minOutputs, maxOutputs
48  {
49  };
50 
54 
55 /* ============================ MANIPULATORS ============================== */
56 
58  virtual OsStatus newResource(const UtlString& resourceName,
59  int maxResourcesToCreate,
60  int& numResourcesCreated,
61  MpResource* resourceArray[])
62  {
63  assert(maxResourcesToCreate >= 1);
64  numResourcesCreated = 1;
65  resourceArray[0] = new MpRtpOutputConnection(resourceName, -1, NULL);
66  resourceArray[0]->enable();
67  return(OS_SUCCESS);
68  }
69 
70 /* ============================ ACCESSORS ================================= */
71 
72 /* ============================ INQUIRY =================================== */
73 
74 /* //////////////////////////// PROTECTED ///////////////////////////////// */
75 protected:
76 
77 /* //////////////////////////// PRIVATE /////////////////////////////////// */
78 private:
79 
82  MprRtpOutputConnectionConstructor(const MprRtpOutputConnectionConstructor& rMprRtpOutputConnectionConstructor);
83 
84 
88 
89 };
90 
91 /* ============================ INLINE METHODS ============================ */
92 
93 #endif // _MprRtpOutputConnectionConstructor_h_
virtual OsStatus newResource(const UtlString &resourceName, int maxResourcesToCreate, int &numResourcesCreated, MpResource *resourceArray[])
Create a new resource.
Definition: MprRtpOutputConnectionConstructor.h:58
virtual ~MprRtpOutputConnectionConstructor()
Definition: MprRtpOutputConnectionConstructor.h:53
MprRtpOutputConnectionConstructor & operator=(const MprRtpOutputConnectionConstructor &rhs)
MprRtpOutputConnectionConstructor is used to construct a ToOutputDevice resource. ...
Definition: MprRtpOutputConnectionConstructor.h:35
Connection container for the inbound and outbound network paths to a single remote party...
Definition: MpRtpOutputConnection.h:47
MprRtpOutputConnectionConstructor()
Definition: MprRtpOutputConnectionConstructor.h:44
virtual UtlBoolean enable()
Enable this resource.
Definition: MpResource.cpp:145
#define DEFAULT_RTP_OUTPUT_RESOURCE_TYPE
Definition: MpResourceFactory.h:32
Abstract base class for all media processing objects.
Definition: MpResource.h:56
MpAudioResourceConstructor is used to construct a specific audio resource type.
Definition: MpAudioResourceConstructor.h:36