2
* Copyright (C) 2014 Canonical, Ltd.
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; version 3.
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
#include "MockDepartment.h"
20
MockDepartment::MockDepartment(QObject* parent)
21
: unity::shell::scopes::DepartmentInterface(parent)
25
QString MockDepartment::departmentId() const
30
QString MockDepartment::label() const
32
return "All Departments";
35
QString MockDepartment::allLabel() const
37
return "All Departments";
40
QString MockDepartment::parentDepartmentId() const
45
QString MockDepartment::parentLabel() const
50
bool MockDepartment::loaded() const
55
bool MockDepartment::isRoot() const
60
int MockDepartment::count() const
65
int MockDepartment::rowCount(const QModelIndex&) const
70
QVariant MockDepartment::data(const QModelIndex& /*index*/, int role) const
73
case RoleDepartmentId:
76
return "Child Clothes";