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
|
/*!
* \file
*
* \author Peter Harvey <pharvey@peterharvey.org>
* \author \sa AUTHORS file
* \version 2
* \date 2007
* \license Copyright unixODBC Project 2007-2008, LGPL
*/
#ifndef CMANAGEDATASOURCENAMES_H
#define CMANAGEDATASOURCENAMES_H
#include "CODBCInst.h"
#include <QTabWidget>
#define ODBC_HELP_DATASOURCES "The most common way to connect to a Data Source is via a Data Source Name (DSN). A DSN is a saved set of connection options - a very convenient way to repeatedly connect to a Data Source."
class CDataSourceNames;
class CDataSourceNamesFile;
/*!
* \class CManageDataSourceNames
*
* \brief Widget to allow the Data Source Name's (DSN's) to be managed.
*
* This widget presents a set of 3 tabs where DSN's can be managed;
*
* \li User DSN's
* \li System DSN's
* \li File DSN's
*
* \note System DSN's and often File DSN's - can only be managed when elevated privileges
* such as 'root' is in effect.
*
* \sa CManageDrivers
*/
class CManageDataSourceNames : public QTabWidget
{
Q_OBJECT
public:
CManageDataSourceNames( QWidget *pwidgetParent = 0 );
virtual ~CManageDataSourceNames();
QString windowHelp() { return QString( tr( ODBC_HELP_DATASOURCES ) ); }
bool saveData() { return true; }
public slots:
void slotLoad();
protected:
CDataSourceNames * pDataSourceNamesUser;
CDataSourceNames * pDataSourceNamesSystem;
CDataSourceNamesFile * pDataSourceNamesFile;
};
#endif
|