Re: user_interaction, user_interaction_callback
Denis Corbin <[email protected]> Mon, 30 Jan 2006 22:37:09 +0100
| Newsgroups | gmane.comp.sysutils.backup.dar.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wesley Leggette wrote: | On Sun, 2006-01-29 at 06:04 -0600, Wesley Leggette wrote: | |>Denis, |> |>I want to write a function for user_interaction.cpp that 'tests' a user |>implemented user_interaction class. I have some questions on how to go |>about this: |> |>First, it seems there are more methods in user_interaction than |>user_interaction_callback now. Things like pause() and pause2() are |>confusing (I guess they match up with answer_callback? You have to implemente one or the other in your inherited class, you must not implement both. The one which is implemented will be used by libdar to ask your class to ask a boolean question to the user. |> |>Also, I'm confused as to how warning_with_more should be implemented |>now. |> libdar may call warning_with_more to ask your user_interaction class to pause() each 'n' line of output. Note that the warning_with_more feature is implemented in the user_interaction::warning() method, thus you must not overwite this warning() method but the protected method inherited_warning(). |>Basically, could you show how the callbacks in user_interaction_callback |>match up with the user_interaction methods? | | | Figured it out on my own. Sorry. OK, no problem. | | Wesley | | | Regards, Denis. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFD3ocEpC5CI8gYGlIRAqojAJ9kasWE8SeCz3QRjEmvtKeK/EUcMwCeIfui 94r+PaSKBtehAKxXrAWiSfs= =kU0I -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642