1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
/*!
* \file
*
* \author Peter Harvey <pharvey@peterharvey.org>
* \author \sa AUTHORS file
* \version 2
* \date 2007
* \license Copyright unixODBC Project 2007-2008, LGPL
*/
#ifndef CODBCCONFIG_H
#define CODBCCONFIG_H
#include "CODBCInst.h"
#include <QAssistantClient>
#include <QDialog>
class QListWidget;
class QListWidgetItem;
class QStackedWidget;
class CManageDataSourceNames;
class CMonitor;
class CAdvanced;
class CAbout;
/*!
* \class CODBCConfig
*
* \brief ODBC Administrator dialog.
*
* This dialog allows the User to manage;
*
* \li User Data Source Names
* \li System Data Source Names
* \li File Data Source Names
* \li Drivers
* \li Tracing
* \li Connection Pooling
*
* The User may also view;
*
* \li Usage statistics
* \li Version information and other 'About' information
*
* This is the main dialog/window for the ODBCConfig application and is also used
* to support a call to SQLManageDataSources.
*
* \sa ODBCManageDataSources
* ODBCCreateDataSource
*/
class CODBCConfig : public QDialog
{
Q_OBJECT
public:
CODBCConfig( QWidget *pwidgetParent = 0, Qt::WindowFlags nFlags = 0 );
virtual ~CODBCConfig();
bool saveData();
protected slots:
void slotChangePage( QListWidgetItem *plistwidgetitemCurrent, QListWidgetItem *plistwidgetitemPrevious );
void slotHelp();
void slotHelpError( const QString &stringMessage );
void slotAccept();
protected:
void createIconMenu();
void createConfigWidgets();
void loadState();
void saveState();
QListWidget * plistwidgetIcons;
QStackedWidget * pstackedwidgetConfigWidgets;
CManageDataSourceNames * pManageDataSourceNames;
CMonitor * pMonitor;
CAdvanced * pAdvanced;
CAbout * pAbout;
QAssistantClient * pAssistantClient;
};
#endif
|