~ci-train-bot/qtmir/qtmir-ubuntu-zesty-2055

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/application.cpp

  • Committer: Bileto Bot
  • Author(s): Daniel d'Andrada
  • Date: 2016-08-10 06:52:18 UTC
  • mfrom: (528.1.3 removeApplicationStage)
  • Revision ID: ci-train-bot@canonical.com-20160810065218-xyhr1zetn31bcu6p
Remove Application.stage and RoleStage from ApplicationManager

They're not used anymore

Approved by: Gerry Boland

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
    , m_sharedWakelock(sharedWakelock)
48
48
    , m_appInfo(appInfo)
49
49
    , m_pid(0)
50
 
    , m_stage(Application::MainStage)
51
50
    , m_supportedStages(Application::MainStage|Application::SideStage)
52
51
    , m_state(InternalState::Starting)
53
52
    , m_arguments(arguments)
232
231
    return colorFromString(colorStr, "splashColorFooter");
233
232
}
234
233
 
235
 
Application::Stage Application::stage() const
236
 
{
237
 
    return m_stage;
238
 
}
239
 
 
240
234
Application::Stages Application::supportedStages() const
241
235
{
242
236
    return m_supportedStages;
533
527
    Q_EMIT sessionChanged(m_session);
534
528
}
535
529
 
536
 
void Application::setStage(Application::Stage stage)
537
 
{
538
 
    if (m_stage != stage) {
539
 
        if ((stage | m_supportedStages) == 0) {
540
 
            return;
541
 
        }
542
 
        DEBUG_MSG << "(stage=" << stage << ")";
543
 
 
544
 
        m_stage = stage;
545
 
        Q_EMIT stageChanged(stage);
546
 
    }
547
 
}
548
 
 
549
530
void Application::setInternalState(Application::InternalState state)
550
531
{
551
532
    if (m_state == state) {