hk_dsquery.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>  
00003 // This file is part of the hk_classes library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file COPYING included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 #ifndef HK_QUERY
00012 #define HK_QUERY
00013 #include "hk_dsmodevisible.h"
00014 class hk_qbe;
00015 class hk_dsqueryprivate;
00016 
00017 class hk_dsquery:public hk_dsmodevisible
00018 {
00019 public:
00020 hk_dsquery(hk_presentation* presentation=NULL);
00021 virtual ~hk_dsquery(void);
00022 virtual hk_dsgrid *grid(void){return NULL;}
00023 virtual hk_qbe*  qbe(void) {return NULL;}
00024 bool use_qbe(void) const;
00025 virtual void set_use_qbe(bool use, bool registerchange=true );
00026 
00027 
00028 bool save_query(const hk_string& s="",bool ask=true);
00029 bool load_query(void);
00030    virtual void savedata(ostream& s);
00031    virtual void loaddata(xmlNodePtr definition);
00032 
00033 protected:
00034    virtual void widget_specific_before_load_query(void);
00035    virtual void widget_specific_after_load_query(void);
00036    virtual void widget_specific_before_save_query(void);
00037    virtual void widget_specific_after_save_query(void);
00038 private:
00039   hk_dsqueryprivate* p_private;
00040 };
00041 #endif //HK_QUERY

Generated on Tue Nov 28 02:48:08 2006 for Databaseconnectionclasses by  doxygen 1.5.0