diff options
Diffstat (limited to 'orkaudio/audiocaptureplugins/voip/VoIpConfig.h')
-rw-r--r-- | orkaudio/audiocaptureplugins/voip/VoIpConfig.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/orkaudio/audiocaptureplugins/voip/VoIpConfig.h b/orkaudio/audiocaptureplugins/voip/VoIpConfig.h new file mode 100644 index 0000000..7bea647 --- /dev/null +++ b/orkaudio/audiocaptureplugins/voip/VoIpConfig.h @@ -0,0 +1,68 @@ +/* + * Oreka -- A media capture and retrieval platform + * + * Copyright (C) 2005, orecx LLC + * + * http://www.orecx.com + * + * This program is free software, distributed under the terms of + * the GNU General Public License. + * Please refer to http://www.gnu.org/copyleft/gpl.html + * + */ + +#ifndef __VOIPCONFIG_H__ +#define __VOIPCONFIG_H__ + +#include <list> +#include "StdString.h" +#include "Object.h" +#include "boost/shared_ptr.hpp" + +#define DEVICE_PARAM "Device" + +/** This class defines various configuration parameters for the generator. */ +class VoIpConfig : public Object +{ +public: + VoIpConfig(); + void Define(Serializer* s); + void Validate(); + + CStdString GetClassName(); + ObjectRef NewInstance(); + inline ObjectRef Process() {return ObjectRef();}; + + bool IsPartOfLan(struct in_addr); + bool IsMediaGateway(struct in_addr); + + CStdString m_device; + std::list<unsigned int> m_mediaGateways; + std::list<CStdString> m_asciiMediaGateways; + std::list<unsigned int> m_lanMasks; + std::list<CStdString> m_asciiLanMasks; +}; + +//======================================== + +#define SOUND_DEVICE_CONFIG_PARAM "VoIpPlugin" + +/** This class represents the top of the configuration hierarchy for the generator. */ +class VoIpConfigTopObject : public Object +{ +public: + void Define(Serializer* s); + void Validate(); + + CStdString GetClassName(); + ObjectRef NewInstance(); + inline ObjectRef Process() {return ObjectRef();}; + + VoIpConfig m_config; +}; + +typedef boost::shared_ptr<VoIpConfigTopObject> VoIpConfigTopObjectRef; + + +#endif + |