Databaseconnectionclasses  0.5.3
hk_dbvisible.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_DBVISIBLE
12 #define HK_DBVISIBLE
13 #include "hk_visible.h"
14 using namespace std;
15 
16 class hk_database;
25 class hk_dbvisible :public hk_visible
26 {
27  friend class hk_database;
28  public:
30  virtual ~hk_dbvisible(void);
34  void set_database(hk_database* db);
35  hk_database* database(void) const;
36  protected:
37  virtual void database_delete(void);
44  virtual void before_source_vanishes(void);
45  virtual void list_changes(listtype type);
46 
47  hk_database* p_database;
48 
49  private:
50 //p_already_handled is used from hk_database in bulk operations to find out if this object has been already handled.
51  bool p_already_handled;
52 
53 };
54 #endif
represents a particular database on the SQL Server
Definition: hk_database.h:48
base class for database depending only widgets
Definition: hk_dbvisible.h:25
base class for visible widgets
Definition: hk_visible.h:35
base class for multidatasource based classes like forms and reports
Definition: hk_presentation.h:40