summaryrefslogtreecommitdiff
path: root/noncore/applets/pcmcia/configdialog.cpp
Side-by-side diff
Diffstat (limited to 'noncore/applets/pcmcia/configdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/pcmcia/configdialog.cpp15
1 files changed, 14 insertions, 1 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
@@ -33,17 +33,20 @@
#include <opie2/oconfig.h>
#include <opie2/odebug.h>
using namespace Opie::Core;
/* QT */
#include <qcombobox.h>
+#include <qdir.h>
+#include <qlabel.h>
ConfigDialog::ConfigDialog( const QString& cardname, QWidget* parent )
:ConfigDialogBase( parent, "pcmcia config dialog", true )
{
- setCaption( tr( "Configure %1" ).arg( cardname ) );
+ //setCaption( tr( "Configure %1" ).arg( cardname ) );
+ textCardName->setText( cardname );
OConfig cfg( "PCMCIA" );
cfg.setGroup( "Global" );
int nCards = cfg.readNumEntry( "nCards", 0 );
QString insert;
@@ -63,11 +66,21 @@ ConfigDialog::ConfigDialog( const QString& cardname, QWidget* parent )
if ( !insert.isEmpty() )
{
for ( int i; i < cbAction->count(); ++i )
if ( cbAction->text( i ) == insert ) cbAction->setCurrentItem( i );
}
+
+ // 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;
+
}
ConfigDialog::~ConfigDialog()
{
}