Changeset 4877 for branches/erijo-dev
- Timestamp:
- 03/20/07 05:43:38 (21 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/erijo-dev/testplugin/src/pluginfactory.cpp
r4851 r4877 24 24 #include <iostream> 25 25 26 #define TRACE std::cout << __FILE__ << ':' << __LINE__ << " " << __PRETTY_FUNCTION__ << std::endl26 #define TRACE std::cout << "[TRACE] " << __PRETTY_FUNCTION__ << " " 27 27 28 28 unsigned int TPluginFactory::getPluginCount() const 29 29 { 30 TRACE ;30 TRACE << "\n"; 31 31 return 1; 32 32 } 33 33 34 Licq::TPluginInformation TPluginFactory::getPluginInformation(unsigned int index) const 34 Licq::TPluginInformation 35 TPluginFactory::getPluginInformation(unsigned int index) const 35 36 { 36 TRACE ;37 TRACE << "index " << index << "\n"; 37 38 assert(index == 0); 38 39 39 40 Licq::TPluginInformation info; 40 41 info.IntVersion = 1; 41 info.Type = Licq:: IPlugin::PluginTypeGeneral;42 info.Type = Licq::PLUGIN_TYPE_GENERAL; 42 43 43 44 info.Name = "Testplugin"; 44 45 info.Version = "0.1"; 45 46 info.Description = "A plugin used for testing."; 47 info.Homepage = "http://licq.org/"; 46 48 47 49 Licq::TPluginAuthor erik; … … 54 56 } 55 57 56 Licq::IPlugin* TPluginFactory::createPlugin(unsigned int index, Licq::TPluginId id, Licq::ILog* log) 58 Licq::IPlugin* 59 TPluginFactory::createPlugin(unsigned int index, 60 Licq::TPluginId id, 61 Licq::ILog* log) 57 62 { 58 TRACE; 63 TRACE << "index " << index << "\n"; 64 59 65 assert(index == 0); 60 66 // TODO Create new plugin … … 66 72 Licq::IPluginFactory* licqCreatePluginFactory() 67 73 { 68 TRACE ;74 TRACE << "\n"; 69 75 return &PluginFactory; 70 76 } … … 72 78 void licqDestroyPluginFactory(Licq::IPluginFactory*) 73 79 { 74 TRACE ;80 TRACE << "\n"; 75 81 } 76 82 77 83 unsigned int licqGetPluginApiVersion() 78 84 { 79 TRACE ;85 TRACE << "\n"; 80 86 return LICQ_VERSION_PLUGIN_API; 81 87 }
