D.S

dev.mysql.com

MySQL: client/base/i_option_changed_listener.h Source File

MySQL: client/base/i_option_changed_listener.h Source File MySQL  8.0.0 Source Code Documentation Main Page Related Pages Modules Namespaces Classes Files File List File Members i_option_changed_listener.h Go to the documentation of this file. 1 /* 2  Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. 3  4  This program is free software; you can redistribute it and/or modify 5  it under the terms of the GNU General Public License as published by 6  the Free Software Foundation; version 2 of the License. 7  8  This program is distributed in the hope that it will be useful, 9  but WITHOUT ANY WARRANTY; without even the implied warranty of 10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11  GNU General Public License for more details. 12  13  You should have received a copy of the GNU General Public License 14  along with this program; if not, write to the Free Software 15  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 16 */ 17  18 #ifndef I_OPTION_CHANGED_LISTENER_INCLUDED 19 #define I_OPTION_CHANGED_LISTENER_INCLUDED 20  21 #include " i_option.h " 22 #include <string> 23  24 namespace Mysql { 25 namespace Tools{ 26 namespace Base{ 27 namespace Options{ 28  29 /** 30  Interface for listeners on some of option changes. 31  */ 32  class I_option_changed_listener 33 { 34 public: 35   virtual ~I_option_changed_listener () {} 36  37  /** 38  Called after specified option has name changed. 39  It is also called when new option is added, old_name is empty string in 40  that case. 41  */ 42  virtual void notify_option_name_changed ( 43  I_option * source, std::string old_name)= 0; 44  /** 45  Called after specified option has option ID changed. 46  It is also called when new option is added, old_optid is 0 in that case. 47  */ 48  virtual void notify_option_optid_changed ( 49  I_option * source, uint32 old_optid)= 0; 50 }; 51  52 } 53 } 54 } 55 } 56  57 #endif Mysql::Tools::Base::Options::I_option_changed_listener Interface for listeners on some of option changes. Definition: i_option_changed_listener.h:32 Mysql::Tools::Base::Options::I_option_changed_listener::~I_option_changed_listener virtual ~I_option_changed_listener() Definition: i_option_changed_listener.h:35 Mysql Definition: abstract_connection_program.h:30 Mysql::Tools::Base::Options::I_option_changed_listener::notify_option_name_changed virtual void notify_option_name_changed(I_option *source, std::string old_name)=0 Called after specified option has name changed. i_option.h Mysql::Tools::Base::Options::I_option_changed_listener::notify_option_optid_changed virtual void notify_option_optid_changed(I_option *source, uint32 old_optid)=0 Called after specified option has option ID changed. Mysql::Tools::Base::Options::I_option Common interface for all program option objects. Definition: i_option.h:36 client base i_option_changed_listener.h Generated by 1.8.11