[PC-BSD Commits] r2080 - pcbsd/trunk/wificonfig

svn at pcbsd.org svn at pcbsd.org
Tue Jun 10 07:45:57 PDT 2008


Author: tim
Date: 2008-06-10 07:45:57 -0700 (Tue, 10 Jun 2008)
New Revision: 2080

Modified:
   pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui
   pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui.h
Log:
Refactored for libpcbsd

Modified: pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui
===================================================================
--- pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui	2008-06-10 14:42:59 UTC (rev 2079)
+++ pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui	2008-06-10 14:45:57 UTC (rev 2080)
@@ -1009,7 +1009,6 @@
     <include location="local" impldecl="in declaration">qdesktopwidget.h</include>
     <include location="local" impldecl="in declaration">qapplication.h</include>
     <include location="local" impldecl="in declaration">qprocess.h</include>
-    <include location="global" impldecl="in declaration">qregexp.h</include>
     <include location="global" impldecl="in declaration">netif.h</include>
     <include location="global" impldecl="in declaration">utils.h</include>
     <include location="local" impldecl="in implementation">wificonfigwidgetbase.ui.h</include>

Modified: pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui.h
===================================================================
--- pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui.h	2008-06-10 14:42:59 UTC (rev 2079)
+++ pcbsd/trunk/wificonfig/wificonfigwidgetbase.ui.h	2008-06-10 14:45:57 UTC (rev 2080)
@@ -728,10 +728,8 @@
 
 QString wificonfigWidgetBase::getNameForIdent( QString ident )
 {
-   uint pos = ident.find(QRegExp("[0-9]+$"));
-   QString devNum = ident.mid(pos);
-   ident.truncate(pos);
-   return Utils::sysctl("dev." + ident + "." + devNum + ".%desc");
+   NetworkInterface ifr(ident);
+   return ifr.desc();
 }
 
 



More information about the Commits mailing list