~dobey/keeper/cleanup

« back to all changes in this revision

Viewing changes to src/cli/command-line-client-view.h

  • Committer: Bileto Bot
  • Author(s): Charles Kerr, Xavi Garcia Mena, Xavi Garcia
  • Date: 2017-02-13 08:57:25 UTC
  • mfrom: (126.1.21 keeper-tests-charles)
  • Revision ID: ci-train-bot@canonical.com-20170213085725-rpsp9eg86dk2zlvi
Adds integration tests for restore and restore cancellation.

Approved by: Charles Kerr, unity-api-1-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    void clear_all();
43
43
    void print_sections(QStringList const & sections);
44
44
    void print_error_message(QString const & error_message);
 
45
    QString get_error_string(keeper::Error error);
45
46
 
46
47
public Q_SLOTS:
47
48
    void show_info();
48
 
    void on_task_state_changed(QString const & displayName, QString const & status, double percentage, keeper::KeeperError error);
 
49
    void on_task_state_changed(QString const & displayName, QString const & status, double percentage, keeper::Error error);
49
50
 
50
51
private:
51
52
    char get_next_spin_char();
52
 
    QString get_task_string(QString const & displayName, QString const & status, double percentage, keeper::KeeperError error);
53
 
    QString get_error_string(keeper::KeeperError error);
 
53
    QString get_task_string(QString const & displayName, QString const & status, double percentage, keeper::Error error);
54
54
 
55
55
    QString status_;
56
56
    QTimer timer_status_;