~mzanetti/unity8/fix-left-edge-on-spread

« back to all changes in this revision

Viewing changes to tests/mocks/Wizard/MockSystem.cpp

  • Committer: Michael Zanetti
  • Date: 2015-01-12 11:21:17 UTC
  • mfrom: (1459.1.85 unity8)
  • Revision ID: michael.zanetti@canonical.com-20150112112117-0x9srs9dx0ndp60g
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Canonical Ltd.
 
3
 *
 
4
 * This program is free software: you can redistribute it and/or modify it
 
5
 * under the terms of the GNU General Public License version 3, as published
 
6
 * by the Free Software Foundation.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful, but
 
9
 * WITHOUT ANY WARRANTY; without even the implied warranties of
 
10
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
 
11
 * PURPOSE.  See the GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License along
 
14
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#include "MockSystem.h"
 
18
 
 
19
MockSystem::MockSystem()
 
20
    : QObject(),
 
21
      m_wizardEnabled(false)
 
22
{
 
23
}
 
24
 
 
25
bool MockSystem::wizardEnabled() const
 
26
{
 
27
    return m_wizardEnabled;
 
28
}
 
29
 
 
30
void MockSystem::setWizardEnabled(bool enabled)
 
31
{
 
32
    m_wizardEnabled = enabled;
 
33
    Q_EMIT wizardEnabledChanged();
 
34
}
 
35
 
 
36
void MockSystem::updateSessionLanguage(const QString &locale)
 
37
{
 
38
    Q_EMIT updateSessionLanguageCalled(locale);
 
39
}