Source: /app/hbasic/hbasic/gui_db_access/db_query_result.h
|
|
|
|
/* **************************************************************************
File: dlg_query_result.h
Desc: Display result of database query in dialog.
----------------------------------------------------------------------------
copyright : (C) 2001 HBasic project (Marcus Engels)
***************************************************************************/
/* **************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* ----------------------------------------------------------------------- */
/* Classlist: List of classes that will be defined in this source file. */
/* ----------------------------------------------------------------------- */
/*
Class viewQueryData : This class displays the output of a SQL query
in a window.
*/
/* ----------------------------------------------------------------------- */
/* Changelog: Description of important changes within this file. */
/* Please report with date, maintainer and change description. */
/* ----------------------------------------------------------------------- */
#ifndef QUERY_RESULT_H
#define QUERY_RESULT_H
#include
#include
#include
#include
#include
#include
#include
#include
class QLabel;
class QSqlRecord;
class QSqlQuery;
class HBQueryDesc;
#include "../src/structs.h"
/* Methods defined global */
extern "C"
{
QString *createQueryString( HBQueryDesc *query_desc );
};
/**
Class viewQueryData : This class displays the output of a SQL query
in a window.
*/
class viewQueryData : public QTable
{
Q_OBJECT
public:
viewQueryData( QWidget* parent, QString *new_query_data );
int getColumnCount( void );
private:
int column_count;
int rows_on_screen;
QSqlQuery *query_desc_ptr;
QSqlRecord *record_desc;
QString *query_string;
void rebuildContents( void );
};
/* ###################################################################### */
/**
* Main widget to display the result of a database query.
*/
class dlgQueryResult : public QDialog
{
Q_OBJECT
public:
dlgQueryResult( void );
int setQueryStrDesc( QString *query_text );
void setQueryDesc( HBQueryDesc *new_query_desc );
QLabel *lab_header;
QPushButton *btn_quit;
viewQueryData *lv_query_result;
private:
QString query_string;
void resizeEvent( QResizeEvent *evt );
};
#endif
Generated by: root on linux on Sun Jul 13 18:06:35 2003, using kdoc 2.0a54. |