Diffstat (limited to 'noncore/applets/pcmcia/configdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/pcmcia/configdialog.cpp | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/noncore/applets/pcmcia/configdialog.cpp b/noncore/applets/pcmcia/configdialog.cpp index c08926e..e7c97c1 100644 --- a/noncore/applets/pcmcia/configdialog.cpp +++ b/noncore/applets/pcmcia/configdialog.cpp @@ -38,2 +38,4 @@ using namespace Opie::Core; #include <qcombobox.h> +#include <qdir.h> +#include <qlabel.h> @@ -42,4 +44,5 @@ ConfigDialog::ConfigDialog( const QString& cardname, QWidget* parent ) { - setCaption( tr( "Configure %1" ).arg( cardname ) ); - + //setCaption( tr( "Configure %1" ).arg( cardname ) ); + textCardName->setText( cardname ); + OConfig cfg( "PCMCIA" ); @@ -48,3 +51,3 @@ ConfigDialog::ConfigDialog( const QString& cardname, QWidget* parent ) QString insert; - + for ( int i = 0; i < nCards; ++i ) @@ -62,3 +65,3 @@ ConfigDialog::ConfigDialog( const QString& cardname, QWidget* parent ) odebug << "preferred action for card '" << cardname << "' seems to be '" << insert << "'" << oendl; - + if ( !insert.isEmpty() ) @@ -68,2 +71,12 @@ ConfigDialog::ConfigDialog( const QString& cardname, QWidget* parent ) } + + // parse possible device and class names out of /etc/pcmcia/*.conf + QStringList deviceNames; + QStringList classNames; + + QDir pcmciaconfdir( "/etc/pcmcia", "*.conf" ); + + for ( int i = 0; i < pcmciaconfdir.count(); ++i ) + odebug << "found conf file '" << pcmciaconfdir[i] << "'" << oendl; + } |