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
|
/*!
* \file
*
* \author Peter Harvey <pharvey@peterharvey.org>
* \author \sa AUTHORS file
* \version 2
* \date 2007
* \license Copyright unixODBC Project 2007-2008, LGPL
*/
#ifndef CDRIVERLIST_H
#define CDRIVERLIST_H
#include "CODBCInst.h"
#include <QTableWidget>
/*!
* \brief A simple table widget listing the installed drivers.
*
* You can use this widget to present a list of installed drivers to the User
* so that one can simply be selected. Simply instantiating the widget is
* enough to display the installed drivers. Then one can get the selected
* driver by calling the getter functions;
*
* \li getFriendlyName
* \li getDriver
* \li getSetup
* \li getDescription
*
* This widget can also be used as the core widget for managing drivers by
* connecting to the following slots;
*
* \li slotAdd
* \li slotEdit
* \li slotDelete
*
* \note Typically; anyone can view installed drivers but managing drivers will require
* elevated system privileges such as 'root' access.
*
* \sa CDataSourceNameList
*/
class CDriverList : public QTableWidget
{
Q_OBJECT
public:
CDriverList( QWidget* pwidgetParent = NULL );
virtual ~CDriverList();
QString getFriendlyName();
QString getDescription();
QString getDriver();
QString getSetup();
signals:
void signalChanged();
public slots:
void slotAdd();
void slotEdit();
void slotDelete();
void slotLoad();
void slotDoubleClick( QTableWidgetItem *pItem );
};
#endif
|