Databaseconnectionclasses  0.5.3
Public Member Functions | Protected Member Functions | Friends | List of all members
hk_mysqldatabase Class Reference
Inheritance diagram for hk_mysqldatabase:
Inheritance graph
[legend]
Collaboration diagram for hk_mysqldatabase:
Collaboration graph
[legend]

Public Member Functions

hk_mysqlconnectionconnection (void)
 
- Public Member Functions inherited from hk_database
virtual bool set_name (const hk_string &n)
 
hk_string name (void)
 
vector< hk_string > * tablelist (bool with_systemtable=false)
 
vector< hk_string > * viewlist ()
 
vector< hk_string > * tableviewlist (bool with_systemtable=false)
 
vector< hk_string > * querylist (void)
 
vector< hk_string > * formlist (void)
 
vector< hk_string > * reportlist (void)
 
vector< hk_string > * modulelist (void)
 
hk_datasourcenew_table (const hk_string &name="", hk_presentation *p=NULL)
 
hk_datasourcenew_resultquery (hk_presentation *p=NULL)
 
hk_actionquerynew_actionquery (void)
 
hk_datasourcenew_view (const hk_string &name="", hk_presentation *p=NULL)
 
hk_datasourceload_datasource (const hk_string &name, datasourcetype dt=dt_table, hk_presentation *p=NULL)
 
virtual bool delete_table (const hk_string &table, enum_interaction x=interactive)
 
virtual bool delete_view (const hk_string &view, enum_interaction x=interactive)
 
bool table_exists (const hk_string &tablename)
 
bool view_exists (const hk_string &viewname)
 
bool query_exists (const hk_string &queryname)
 
bool form_exists (const hk_string &formname)
 
bool report_exists (const hk_string &reportname)
 
hk_connectionconnection (void) const
 
ofstream * savestream (const hk_string &name, filetype type, bool ask_before_overwrite=true)
 
ofstream * savestream (const hk_string &name, filetype type, bool ask_before_overwrite, bool with_header, bool ask_for_new_name=false)
 
ofstream * savestream (enum_storage storage, const hk_string &name, filetype type, bool ask_before_overwrite, bool with_header, bool ask_for_new_name)
 
STRINGSTREAM * savestringstream (filetype type)
 
STRINGSTREAM * savestringstream (filetype type, bool with_header)
 
bool delete_file (const hk_string &name, filetype type, enum_interaction x=interactive)
 
hk_presentationexisting_presentation (const hk_string &name, hk_presentation::enum_presentationtype t)
 
hk_formexisting_form (const hk_string name)
 
hk_reportexisting_report (const hk_string name)
 
void save (const hk_string &statement, const hk_string &name, filetype type, bool ask_before_overwrite=true, bool ask_for_new_name=false)
 
void save (enum_storage storage, const hk_string &statement, const hk_string &name, filetype type, bool ask_before_overwrite=true, bool ask_for_new_name=false)
 
hk_string load (const hk_string &name, filetype type)
 
xmlNodePtr xmlload (const hk_string &name, filetype type)
 
hk_string database_path (void)
 
hk_string fileendings (filetype e)
 
hk_string fileendings (objecttype e)
 
bool copy_table (hk_datasource *fromdatasource, bool schema_and_data, bool replacetable, bool ask, progress_dialogtype *progressdialog=NULL)
 
bool copy_view (hk_datasource *fromdatasource, progress_dialogtype *progressdialog=NULL, const hk_string &newname="")
 
hk_formnew_formvisible (void)
 
hk_formnew_dialogformvisible (void)
 
hk_reportnew_reportvisible (void)
 
hk_dstablenew_tablevisible (void)
 
hk_dsquerynew_queryvisible (void)
 
void set_usewidgetparent (hk_class *)
 
bool rename_table (const hk_string &originalname, const hk_string &newname, enum_interaction x=interactive)
 
bool rename_file (const hk_string &originalname, const hk_string &newname, filetype type, enum_interaction x=interactive)
 
void disable (void)
 
bool store_connectionfile (const hk_url &url, bool store_password=false)
 
void set_storagemode (filetype, enum_storagemode load, enum_storagemode store)
 
enum_storagemode storagemode (filetype)
 
enum_storagemode loadmode (filetype)
 
bool create_centralstoragetable (void)
 
bool has_centralstoragetable (void)
 
hk_string load_local (const hk_string &name, filetype type)
 
hk_string load_central (const hk_string &name, filetype type)
 
xmlNodePtr xmlload_local (const hk_string &name, filetype type)
 
xmlNodePtr xmlload_central (const hk_string &name, filetype type)
 
void save_local (enum_storage storage, const hk_string &statement, const hk_string &name, filetype type, bool ask_before_overwrite, bool ask_for_new_name)
 
void save_local (const hk_string &statement, const hk_string &name, filetype type, bool ask_before_overwrite, bool ask_for_new_name)
 
void save_central (const hk_string &statement, const hk_string &name, filetype type, bool ask_before_overwrite, bool ask_for_new_name)
 
void save_central (enum_storage storage, const hk_string &statement, const hk_string &name, filetype type, bool ask_before_overwrite, bool ask_for_new_name)
 
bool delete_localfile (const hk_string &name, filetype type, enum_interaction x=interactive)
 
bool delete_centralfile (const hk_string &name, filetype type, enum_interaction x=interactive)
 
vector< hk_string > * filelist (filetype type)
 
vector< hk_string > * local_filelist (filetype type)
 
vector< hk_string > * central_filelist (filetype type)
 
void save_configuration (void)
 
list< hk_presentation * > * presentationlist () const
 
void set_databasecharset (const hk_string &charset)
 
hk_string databasecharset (void) const
 
void set_automatic_data_update (bool u)
 
bool is_automatic_data_update (void)
 
- Public Member Functions inherited from hk_class
void hkclassname (const hk_string &n)
 
hk_string hkclassname (void) const
 
void hkdebug (const hk_string &d) const
 
void hkdebug (const hk_string &d, const hk_string &e) const
 
void hkdebug (const hk_string &d, int i) const
 
void hkdebug (const hk_string &d, double i) const
 
void wanna_debug (bool d)
 
bool wanna_debug (void) const
 
bool generaldebug (void)
 

Protected Member Functions

 hk_mysqldatabase (hk_mysqlconnection *c)
 
void driver_specific_tablelist (void)
 
hk_datasourcedriver_specific_new_table (hk_presentation *p)
 
hk_datasourcedriver_specific_new_resultquery (hk_presentation *p)
 
hk_actionquerydriver_specific_new_actionquery (void)
 
virtual bool driver_specific_rename_table (const hk_string &oldname, const hk_string &newname)
 
bool driver_specific_select_db (void)
 
void driver_specific_viewlist (void)
 
virtual hk_datasourcedriver_specific_new_view (hk_presentation *p)
 
- Protected Member Functions inherited from hk_database
 hk_database (hk_connection *c)
 
bool select_db (const hk_string &newname)
 
void inform_datasources_before_closing (void)
 
virtual void driver_specific_set_name (void)
 
void ds_remove (hk_data *ds)
 
virtual void connection_connected (void)
 
virtual void connection_disconnected (void)
 
void dbvisible_add (hk_dbvisible *v)
 
void dbvisible_remove (hk_dbvisible *v)
 
void clear_visiblelist (void)
 
virtual void before_source_vanishes (void)
 
void presentation_add (hk_presentation *p)
 
void presentation_remove (hk_presentation *p)
 
void load_configuration (void)
 
virtual void savedata (ostream &s)
 
virtual void loaddata (xmlNodePtr definition)
 
void inform_datasources_filelist_changes (listtype type)
 
- Protected Member Functions inherited from hk_class
hk_interpreternew_interpreter (const hk_string &interpreter, hk_presentation *)
 

Friends

class hk_mysqlconnection
 

Additional Inherited Members

- Public Types inherited from hk_database
enum  enum_storage { st_overwrite, st_storechanges }
 
enum  enum_storagemode { central, local }
 
- Public Types inherited from hk_class
enum  enum_interaction { noninteractive, interactive }
 
enum  enum_measuresystem { cm, inch }
 
enum  enum_tagtype { normaltag, mastertag }
 
- Static Public Member Functions inherited from hk_database
static void set_new_formvisiblefunction (newform_type *)
 
static void set_new_dialogformvisiblefunction (newform_type *)
 
static void set_new_reportvisiblefunction (newreport_type *)
 
static void set_new_tablevisiblefunction (newtable_type *)
 
static void set_new_queryvisiblefunction (newquery_type *)
 
- Static Public Member Functions inherited from hk_class
static void set_generaldebug (bool d)
 
static hk_string hk_translate (const hk_string &t)
 
static void show_warningmessage (const hk_string &m)
 
static void set_warningmessage (messagewindowtype *m)
 
static bool show_yesnodialog (const hk_string &m, bool default_value)
 
static void set_yesnodialog (yesno_dialogtype *d)
 
static hk_string show_stringvaluedialog (const hk_string &t)
 
static void set_stringvaluedialog (stringvalue_dialogtype *t)
 
static void set_translatefunction (translatefunctiontype *t)
 
static void set_filedialog (file_dialogtype *f)
 
static hk_string show_filedialog (const hk_string &f="", enum_operationmode m=file_open)
 
static void set_directorydialog (stringvalue_dialogtype *f)
 
static hk_string show_directorydialog (const hk_string &f="")
 
static void set_showpedantic (bool s)
 
static bool showpedantic (void)
 
static void set_measuresystem (enum_measuresystem)
 
static enum_measuresystem measuresystem (void)
 
static xmlNodePtr get_tagvalue (xmlNodePtr where, const hk_string &tag, hk_string &value, int position=1, enum_tagtype tagtype=normaltag)
 
static xmlNodePtr get_tagvalue (xmlNodePtr where, const hk_string &tag, unsigned long &value, int position=1)
 
static xmlNodePtr get_tagvalue (xmlNodePtr where, const hk_string &tag, unsigned int &value, int position=1)
 
static xmlNodePtr get_tagvalue (xmlNodePtr where, const hk_string &tag, long &value, int position=1)
 
static xmlNodePtr get_tagvalue (xmlNodePtr where, const hk_string &tag, int &value, int position=1)
 
static xmlNodePtr get_tagvalue (xmlNodePtr where, const hk_string &tag, bool &value, int position=1)
 
static xmlNodePtr get_tagvalue (xmlNodePtr &where, const hk_string &tag)
 
static void set_tagvalue (ostream &stream, const hk_string &tag, const hk_string &value)
 
static void set_tagvalue (ostream &stream, const hk_string &tag, unsigned long value)
 
static void set_tagvalue (ostream &stream, const hk_string &tag, unsigned int value)
 
static void set_tagvalue (ostream &stream, const hk_string &tag, long value)
 
static void set_tagvalue (ostream &stream, const hk_string &tag, int value)
 
static void set_tagvalue (ostream &stream, const hk_string &tag, bool value)
 
static void start_mastertag (ostream &stream, const hk_string &tag)
 
static void end_mastertag (ostream &stream, const hk_string &tag)
 
static void set_defaultdatetimeformat (const hk_string &timeformat, const hk_string &dateformat, const hk_string &datetimeformat)
 
static hk_string defaultdateformat (void)
 
static hk_string defaulttimeformat (void)
 
static hk_string defaultdatetimeformat (void)
 
static void save_preferences (void)
 
static bool runtime_only (void)
 
static void set_locale (const hk_string &locale)
 
static hk_string locale (void)
 
static void set_defaultdriver (const hk_string &d)
 
static hk_string defaultdriver (void)
 
static void set_default_automatic_data_update (bool)
 
static bool default_automatic_data_update (void)
 
- Protected Attributes inherited from hk_database
hk_connectionp_connection
 
vector< hk_string > p_tablelist
 
vector< hk_string > p_viewlist
 
vector< hk_string > p_tableviewlist
 
hk_url p_url
 
- Static Protected Attributes inherited from hk_class
static hk_string p_defaulttimeformat ="h:m:s"
 
static hk_string p_defaultdateformat ="D.M.Y"
 
static hk_string p_defaultdatetimeformat ="D.M.Y h:m:s"
 
static bool p_runtime_only =false
 

Member Function Documentation

void hk_mysqldatabase::driver_specific_tablelist ( void  )
protectedvirtual

The documentation for this class was generated from the following files: