D6829: Add ability to use the new kauth helper in file ioslave

Chinmoy Ranjan Pradhan noreply at phabricator.kde.org
Sat Jul 22 11:34:28 UTC 2017


chinmoyr created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.

REVISION SUMMARY
  This patch adds a method `execWithElevatedPrivilege()` which can be used by other methods of `FileProtocol` class when there occurs an error due to insufficient privileges.
  
  It takes the following arguments,
  
  1. `int error` : to check if error == `EACCES`. otherwise don't continue.
  2. `ActionType` : the c-library function to execute
  3. three QVariants: the arguments to the function
  
  This method makes use of the signal `execPrivilegeData` to check if the job requires privileges to be elevated and to ask the job to show a warning/confirmation dialog.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D6829

AFFECTED FILES
  src/core/slavebase.cpp
  src/core/slavebase.h
  src/core/slaveinterface.cpp
  src/core/slaveinterface.h
  src/ioslaves/file/file.h
  src/ioslaves/file/file_unix.cpp
  src/ioslaves/file/file_win.cpp

To: chinmoyr
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170722/3e75e478/attachment.html>


More information about the Kde-frameworks-devel mailing list