~ubuntu-branches/ubuntu/vivid/aptitude/vivid

« back to all changes in this revision

Viewing changes to src/cmdline/cmdline_progress.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2011-06-22 12:32:56 UTC
  • mfrom: (1.8.6 sid)
  • Revision ID: james.westby@ubuntu.com-20110622123256-8aox9w9ch3x72dci
Tags: 0.6.4-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - debian/05aptitude: never autoremove kernels
  - drop aptitude-doc to Suggests
  - 03_branding.dpatch: ubuntu branding
  - 04_changelog.dpatch: take changelogs from changelogs.ubuntu.com
  - 09_ubuntu_fortify_source.dpatch: Suppress a number of warnings (turned
    into errors by -Werror) triggered by Ubuntu's default of
    -D_FORTIFY_SOURCE=2.
  - 11_ubuntu_uses_sudo.dpatch: fix status line of 'Become root' menu entry
    to not refer to su.
  - 12_point_manpage_to_doc_package.dpatch: point Finnish manpage to the
    correct place for further info
  - 14_html2text_preferred.dpatch: switch back to html2text in favor of
    elinks, since html2text is in main and elinks isn't.
* dropped 01_intltool_update.dpatch
* updated 15_ftbfs_new_apt

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 
32
32
namespace aptitude
33
33
{
 
34
  namespace controllers
 
35
  {
 
36
    class acquire_download_progress;
 
37
  }
 
38
 
34
39
  namespace cmdline
35
40
  {
36
 
    class terminal;
 
41
    class terminal_input;
 
42
    class terminal_locale;
 
43
    class terminal_metrics;
 
44
    class terminal_output;
 
45
 
 
46
    /** \brief Create the objects required to display the progress of a
 
47
     *  download on the given terminal.
 
48
     *
 
49
     *  \note this is just a convenience routine that ties together
 
50
     *  some other modules of code.
 
51
     *
 
52
     *  \return a pair containing the download signal log to use and a
 
53
     *  strong reference to the download progress complex of objects.
 
54
     */
 
55
    std::pair<download_signal_log *, boost::shared_ptr<controllers::acquire_download_progress> >
 
56
    create_cmdline_download_progress(const boost::shared_ptr<terminal_input> &term_input,
 
57
                                     const boost::shared_ptr<terminal_locale> &term_locale,
 
58
                                     const boost::shared_ptr<terminal_metrics> &term_metrics,
 
59
                                     const boost::shared_ptr<terminal_output> &term_output);
37
60
  }
38
61
}
39
62
 
40
 
download_signal_log *
41
 
gen_cmdline_download_progress(const boost::shared_ptr<aptitude::cmdline::terminal> &term);
42
 
 
43
63
#endif // CMDLINE_PROGRESS_H