Skip to content
This repository
Newer
Older
100644 54 lines (46 sloc) 1.926 kb
e2db13c7 »
2011-05-19 autocreated firebreath project
1 /**********************************************************\
2
3 Auto-generated Factory.cpp
4
5 This file contains the auto-generated factory methods
6 for the linphone project
7
8 \**********************************************************/
9
10 #include "FactoryBase.h"
11 #include "linphone.h"
12 #include <boost/make_shared.hpp>
13
14 class PluginFactory : public FB::FactoryBase
15 {
16 public:
17 ///////////////////////////////////////////////////////////////////////////////
18 /// @fn FB::PluginCorePtr createPlugin(const std::string& mimetype)
19 ///
20 /// @brief Creates a plugin object matching the provided mimetype
21 /// If mimetype is empty, returns the default plugin
22 ///////////////////////////////////////////////////////////////////////////////
23 FB::PluginCorePtr createPlugin(const std::string& mimetype)
24 {
25 return boost::make_shared<linphone>();
26 }
27
28 ///////////////////////////////////////////////////////////////////////////////
29 /// @see FB::FactoryBase::globalPluginInitialize
30 ///////////////////////////////////////////////////////////////////////////////
31 void globalPluginInitialize()
32 {
33 linphone::StaticInitialize();
34 }
35
36 ///////////////////////////////////////////////////////////////////////////////
37 /// @see FB::FactoryBase::globalPluginDeinitialize
38 ///////////////////////////////////////////////////////////////////////////////
39 void globalPluginDeinitialize()
40 {
41 linphone::StaticDeinitialize();
42 }
43 };
44
45 ///////////////////////////////////////////////////////////////////////////////
46 /// @fn getFactoryInstance()
47 ///
48 /// @brief Returns the factory instance for this plugin module
49 ///////////////////////////////////////////////////////////////////////////////
50 FB::FactoryBasePtr getFactoryInstance()
51 {
52 static boost::shared_ptr<PluginFactory> factory = boost::make_shared<PluginFactory>();
53 return factory;
54 }
55
Something went wrong with that request. Please try again.