Review Request: [RFC] Import VPN connection

Lamarque Vieira Souza lamarque at gmail.com
Tue May 24 01:28:33 CEST 2011


Em Monday 23 May 2011, Kevin Kofler escreveu:
> > On May 23, 2011, 8:01 p.m., Lamarque Vieira Souza wrote:
> > > vpnplugins/vpnc/vpnc.cpp, line 117
> > > <http://git.reviewboard.kde.org/r/101419/diff/2/?file=17809#file17809li
> > > ne117>
> > > 
> > >     You should not proceed if the executable has not been found or
> > >     there was any error running the process.
> > >     
> > >     You can look at
> > >     git://anongit.kde.org/kde-workspace/solid/wicd/wirednetworkinterfa
> > >     ce.cpp, WicdWiredNetworkInterface::hardwareAddress to see how I
> > >     implemented the "ifconfig" call. The important parts are the line
> > >     
> > >     qputenv("PATH", QString("/bin:/usr/bin:/sbin:/usr/sbin:" +
> > >     env.value("PATH")).toAscii());
> > >     
> > >     This way you can easily add new paths to find.
> > >     
> > >     Use QProcess::waitForStarted() to check if the process was actually
> > >     executed. If the executable was not found or the user does not has
> > >     permission to run it waitForStarted will return error.
> 
> Why not use KStandardDirs::findExe?

	If it works like ' kde4-config --path exe --locate <file>' then it does 
not search in /sbin and /usr/sbin.

> - Kevin
> 
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101419/#review3471
> -----------------------------------------------------------
> 
> On May 23, 2011, 7:27 p.m., Rajeesh K Nambiar wrote:
> > -----------------------------------------------------------
> > This is an automatically generated e-mail. To reply, visit:
> > http://git.reviewboard.kde.org/r/101419/
> > -----------------------------------------------------------
> > 
> > (Updated May 23, 2011, 7:27 p.m.)
> > 
> > 
> > Review request for Network Management.
> > 
> > 
> > Summary
> > -------
> > 
> > First stab at VPN connection import/export functionality. Currently
> > implemented just VPNC Import support. Please review, especially the
> > VpncUiPluginPrivate part which tries to abstract away cisco password
> > decrypt function. If the general approach looks good, I'll proceed with
> > this and try to extend for other VPN methods, as well as export
> > function.
> > 
> > 
> > This addresses bug 146159.
> > 
> >     http://bugs.kde.org/show_bug.cgi?id=146159
> > 
> > Diffs
> > -----
> > 
> >   libs/ui/vpnpreferences.cpp 843636c
> >   libs/ui/vpnuiplugin.h 7a13027
> >   settings/config/CMakeLists.txt 268c23b
> >   settings/config/addeditdeletebuttonset.h f7abef7
> >   settings/config/addeditdeletebuttonset.cpp 4f3f97a
> >   settings/config/manageconnectionwidget.h 51f60a0
> >   settings/config/manageconnectionwidget.cpp 46910db
> >   vpnplugins/novellvpn/novellvpn.h 9e026e2
> >   vpnplugins/novellvpn/novellvpn.cpp 848b527
> >   vpnplugins/openvpn/openvpn.h a06b88e
> >   vpnplugins/openvpn/openvpn.cpp 60376ed
> >   vpnplugins/pptp/pptp.h 66ea79a
> >   vpnplugins/pptp/pptp.cpp c311f9f
> >   vpnplugins/strongswan/strongswan.h fcd5bde
> >   vpnplugins/strongswan/strongswan.cpp 5bffc2b
> >   vpnplugins/vpnc/vpnc.h aec2136
> >   vpnplugins/vpnc/vpnc.cpp deb9108
> > 
> > Diff: http://git.reviewboard.kde.org/r/101419/diff
> > 
> > 
> > Testing
> > -------
> > 
> > Tested against latest git snapshot, with KDE SC 4.6.3
> > 
> > 
> > Thanks,
> > 
> > Rajeesh


-- 
Lamarque V. Souza
http://www.geographicguide.com/brazil.htm
Linux User #57137 - http://counter.li.org/
http://planetkde.org/pt-br
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-networkmanager/attachments/20110523/1c332035/attachment.html 


More information about the kde-networkmanager mailing list