/[octopus]/octopus/interfaces/Plugin.h
ViewVC logotype

Diff of /octopus/interfaces/Plugin.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by azuriel, Sun Jan 26 22:43:17 2003 UTC revision 1.4 by Sigma, Sat Feb 1 10:12:23 2003 UTC
# Line 32  extern "C" void destroy(Plugin* p) {\ Line 32  extern "C" void destroy(Plugin* p) {\
32      delete p;\      delete p;\
33  }  }
34    
35    #include <string>
36    
37    class PluginManagerInterface;
38    
39    using std::string;
40    
41  class Plugin {  class Plugin {
42    
43  public:  public:
44    Plugin();  
45    virtual ~Plugin();      Plugin();
46        virtual ~Plugin();
47        void setPluginManager(PluginManagerInterface* manager);
48        virtual void callCommand(int id, string& msg) = 0;
49        
50    protected:
51        void registerCommand(const char* prefix, int id);
52        virtual void exportCommands() = 0;
53            
54  private:  private:
55        PluginManagerInterface *mng;
56  };  };
57    
58  typedef Plugin* create_t();  typedef Plugin* create_t();
# Line 46  typedef void destroy_t(Plugin*); Line 60  typedef void destroy_t(Plugin*);
60    
61    
62  #endif // PLUGIN_H  #endif // PLUGIN_H
63    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26