~ci-train-bot/indicator-location/indicator-location-ubuntu-zesty-2138

« back to all changes in this revision

Viewing changes to src/license-controller.cc

  • Committer: CI Train Bot
  • Author(s): Charles Kerr
  • Date: 2016-02-18 17:04:52 UTC
  • mfrom: (150.1.1 lp-1535353-remove-here-tos)
  • Revision ID: ci-train-bot@canonical.com-20160218170452-9mcp2fwfsh3orz68
Remove the "View HERE terms and conditions" menuitem Fixes: #1507793, #1535353
Approved by: PS Jenkins bot, Xavi Garcia, Matthew Paul Thomas

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2014 Canonical Ltd.
3
 
 *
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.
7
 
 *
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 Lesser General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU Lesser General Public License
14
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Authors:
17
 
 *   Pete Woods <pete.woods@canonical.com>
18
 
 */
19
 
 
20
 
#include "license-controller.h"
21
 
 
22
 
void
23
 
LicenseController::add_listener(LicenseControllerListener * const l)
24
 
{
25
 
  listeners.insert(l);
26
 
}
27
 
 
28
 
void
29
 
LicenseController::remove_listener(LicenseControllerListener * const l)
30
 
{
31
 
  listeners.erase(l);
32
 
}
33
 
 
34
 
void
35
 
LicenseController::notify_license_accepted(bool license_accepted)
36
 
{
37
 
  for (auto it : listeners)
38
 
  {
39
 
    it->on_license_accepted_changed(license_accepted);
40
 
  }
41
 
}
42
 
 
43
 
void
44
 
LicenseController::notify_license_path(const std::string & license_path)
45
 
{
46
 
  for (auto it : listeners)
47
 
  {
48
 
    it->on_license_path_changed(license_path);
49
 
  }
50
 
}