~dobey/unity-api/add-simple-logger

« back to all changes in this revision

Viewing changes to test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp

  • Committer: Bileto Bot
  • Date: 2016-08-10 08:19:47 UTC
  • mfrom: (240.3.2 removeApplicationStage)
  • Revision ID: ci-train-bot@canonical.com-20160810081947-ht4mcrsy2qjb1tph
* ApplicationInfoInterface: remove "stage" property
* ApplicationManagerInterface: remove "stage" role

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright 2013 Canonical Ltd.
 
2
 * Copyright 2013,2016 Canonical Ltd.
3
3
 *
4
4
 * This program is free software; you can redistribute it and/or modify
5
5
 * it under the terms of the GNU Lesser General Public License as published by
27
27
    m_name(name),
28
28
    m_comment(comment),
29
29
    m_icon(icon),
30
 
    m_stage(MainStage),
31
30
    m_state(Running),
32
31
    m_focused(false),
33
32
    m_exemptFromLifecycle(false)
55
54
    return m_icon;
56
55
}
57
56
 
58
 
ApplicationInfoInterface::Stage MockApplicationInfo::stage() const
59
 
{
60
 
    return m_stage;
61
 
}
62
 
 
63
 
void MockApplicationInfo::setStage(ApplicationInfoInterface::Stage stage)
64
 
{
65
 
    if (m_stage != stage)
66
 
    {
67
 
        m_stage = stage;
68
 
        Q_EMIT stageChanged(m_stage);
69
 
    }
70
 
}
71
 
 
72
57
ApplicationInfoInterface::State MockApplicationInfo::state() const
73
58
{
74
59
    return m_state;