[Pkg-privacy-commits] [libgsecuredelete] 16/168: Made all abtract and virtual methods protected instead of private.
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 20:06:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository libgsecuredelete.
commit 27bc708fd1441948ce26304feadcc17da613c742
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Wed Sep 30 17:08:10 2009 +0200
Made all abtract and virtual methods protected instead of private.
This allows a subclass to implement them and let its subclasses call it,
even if the actual virtual methods are not meant to be called by any subclass.
---
gsecuredelete/async-operation.vala | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/gsecuredelete/async-operation.vala b/gsecuredelete/async-operation.vala
index 7b4f19d..ec987f8 100644
--- a/gsecuredelete/async-operation.vala
+++ b/gsecuredelete/async-operation.vala
@@ -26,6 +26,10 @@ namespace SecureDelete
CHILD_FAILED
}
+ /*
+ * TODO:
+ * * Be able to launch the operation as root/another user.
+ */
/** AsyncOperation:
*
* An asynchronous process spawner, with support for progression and success
@@ -119,11 +123,11 @@ namespace SecureDelete
}
/* builds the command's arguments (argv) */
- private abstract string?[] build_args ()
+ protected abstract string?[] build_args ()
throws AsyncOperationError;
/* builds the command's environment */
- private virtual string?[]? build_environ ()
+ protected virtual string?[]? build_environ ()
{
return null;
}
@@ -131,7 +135,7 @@ namespace SecureDelete
/* called after subprocess termination to cleanup anything that may be
* cleaned up (I think about some list of files that was just treated or so)
*/
- private virtual void cleanup ()
+ protected virtual void cleanup ()
{
}
@@ -140,7 +144,7 @@ namespace SecureDelete
* this value, it will be considered to be at 100% (even if it has no impact
* other than reporting the current progress)
*/
- private virtual uint get_max_progress ()
+ protected virtual uint get_max_progress ()
{
return 0;
}
@@ -149,7 +153,7 @@ namespace SecureDelete
* This function gets called from time to time to get the new additional
* progress of the operation, since last call.
*/
- private virtual uint get_progress ()
+ protected virtual uint get_progress ()
{
return 0;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/libgsecuredelete.git
More information about the Pkg-privacy-commits
mailing list