Changeset 4877 for branches/erijo-dev

Show
Ignore:
Timestamp:
03/20/07 05:43:38 (21 months ago)
Author:
erijo
Message:

Update to compile with updated daemon

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/erijo-dev/testplugin/src/pluginfactory.cpp

    r4851 r4877  
    2424#include <iostream> 
    2525 
    26 #define TRACE std::cout << __FILE__ << ':' << __LINE__ << " " << __PRETTY_FUNCTION__ << std::endl 
     26#define TRACE std::cout << "[TRACE] " << __PRETTY_FUNCTION__ << " " 
    2727 
    2828unsigned int TPluginFactory::getPluginCount() const 
    2929{ 
    30   TRACE; 
     30  TRACE << "\n"; 
    3131  return 1; 
    3232} 
    3333 
    34 Licq::TPluginInformation TPluginFactory::getPluginInformation(unsigned int index) const 
     34Licq::TPluginInformation 
     35TPluginFactory::getPluginInformation(unsigned int index) const 
    3536{ 
    36   TRACE; 
     37  TRACE << "index " << index << "\n"; 
    3738  assert(index == 0); 
    3839 
    3940  Licq::TPluginInformation info; 
    4041  info.IntVersion = 1; 
    41   info.Type = Licq::IPlugin::PluginTypeGeneral; 
     42  info.Type = Licq::PLUGIN_TYPE_GENERAL; 
    4243 
    4344  info.Name = "Testplugin"; 
    4445  info.Version = "0.1"; 
    4546  info.Description = "A plugin used for testing."; 
     47  info.Homepage = "http://licq.org/"; 
    4648 
    4749  Licq::TPluginAuthor erik; 
     
    5456} 
    5557 
    56 Licq::IPlugin* TPluginFactory::createPlugin(unsigned int index, Licq::TPluginId id, Licq::ILog* log) 
     58Licq::IPlugin* 
     59TPluginFactory::createPlugin(unsigned int index, 
     60                             Licq::TPluginId id, 
     61                             Licq::ILog* log) 
    5762{ 
    58   TRACE; 
     63  TRACE << "index " << index << "\n"; 
     64 
    5965  assert(index == 0); 
    6066  // TODO Create new plugin 
     
    6672Licq::IPluginFactory* licqCreatePluginFactory() 
    6773{ 
    68   TRACE; 
     74  TRACE << "\n"; 
    6975  return &PluginFactory; 
    7076} 
     
    7278void licqDestroyPluginFactory(Licq::IPluginFactory*) 
    7379{ 
    74   TRACE; 
     80  TRACE << "\n"; 
    7581} 
    7682 
    7783unsigned int licqGetPluginApiVersion() 
    7884{ 
    79   TRACE; 
     85  TRACE << "\n"; 
    8086  return LICQ_VERSION_PLUGIN_API; 
    8187}