~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/command_replicator.h

  • Committer: Monty Taylor
  • Date: 2009-10-27 17:36:23 UTC
  • mto: This revision was merged to the branch mainline in revision 1201.
  • Revision ID: mordred@inaugust.com-20091027173623-4af3fusj3cu5lktt
Replaced overridable virtual methods with passing name to constructor. Now individual plugins will not be allowed to set their own plugin type name. :)

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
public:
59
59
  explicit CommandReplicator(std::string name_arg)
60
 
    : Plugin(name_arg)
 
60
    : Plugin(name_arg, "CommandReplicator")
61
61
  {
62
62
    is_enabled= true;
63
63
  }
97
97
    is_enabled= false;
98
98
  }
99
99
 
100
 
  virtual const std::string getTypeName() const
101
 
  {
102
 
    return "CommandReplicator";
103
 
  }
104
 
 
105
100
  static bool addPlugin(CommandReplicator *replicator);
106
101
  static void removePlugin(CommandReplicator *replicator);
107
102
};