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,
- int error : to check if error == EACCES. otherwise don't continue.
- ActionType : the c-library function to execute
- 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.
Depends on D6197