Databaseconnectionclasses  0.5.3
hk_module.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file COPYING included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 #ifndef HK_MODULE
12 #define HK_MODULE
13 #include "hk_dbvisible.h"
14 using namespace std;
15 
25  class hk_moduleprivate;
26 
27 class hk_module: public hk_dbvisible
28 {
29  public:
30  hk_module(void);
31  ~hk_module();
32  void set_script(const hk_string& s,bool registerchange=true);
33  hk_string script();
34  void set_name(const hk_string&);
35  hk_string name(void);
36  bool load_module(const hk_string& n="");
37  bool save_module(const hk_string& n="",bool ask=true);
38  virtual void savedata(ostream& s );
39  virtual void loaddata(xmlNodePtr definition);
40  bool has_changed();
41  void set_block_has_changed(bool);
42  bool block_has_changed();
43  protected:
44  virtual void widget_specific_has_changed(){}
45  bool ask_name(void);
46  void reset_has_changed();
47  private:
48 hk_moduleprivate* p_private;
49 };
50 #endif //HK_MODULE
Definition: hk_module.cpp:15
Definition: hk_module.h:27
base class for database depending only widgets
Definition: hk_dbvisible.h:25