~indicator-applet-developers/indicator-datetime/trunk.14.04

« back to all changes in this revision

Viewing changes to tests/actions-mock.h

Don't show the "Add Event..." button if the calendar app can't be found. Fixes: 1250632

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
    void open_phone_clock_app() { m_history.push_back(OpenPhoneClockApp); }
51
51
 
 
52
    bool can_open_planner() const { return m_can_open_planner; }
 
53
 
52
54
    void open_planner() { m_history.push_back(OpenPlanner); }
53
55
 
54
56
    void open_planner_at(const DateTime& date_time_) {
67
69
        m_url = url_;
68
70
    }
69
71
 
 
72
    void set_can_open_planner(bool b) { m_can_open_planner = b; }
 
73
 
70
74
private:
 
75
    bool m_can_open_planner = true;
71
76
    std::string m_url;
72
77
    std::string m_zone;
73
78
    std::string m_name;