KDevelop API Documentation

sqloutputwidget.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2003 by Harald Fernengel                                *
00003  *   harry@kdevelop.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  ***************************************************************************/
00011 
00012 #ifndef _SQLOUTPUTWIDGET_H_
00013 #define _SQLOUTPUTWIDGET_H_
00014 
00015 #include <qwidget.h>
00016 
00017 class QWidgetStack;
00018 class QDataTable;
00019 class QTextEdit;
00020 class QSqlError;
00021 
00022 class SqlOutputWidget : public QWidget
00023 {
00024     Q_OBJECT
00025 
00026 public:
00027     SqlOutputWidget( QWidget* parent = 0, const char* name = 0 );
00028     virtual ~SqlOutputWidget();
00029 
00030 public:
00031     void showQuery( const QString& connectionName, const QString& query );
00032     void showError( const QSqlError& error );
00033 
00034 private:
00035     void showError( const QString& msg );
00036     void showSuccess( int rowsAffected );
00037 
00038     QWidgetStack* m_stack;
00039     QDataTable* m_table;
00040     QTextEdit* m_textEdit;
00041 };
00042 
00043 #endif
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003