~macslow/unity/backported-remote-add-to-5.0

1276.1.1 by Neil Jagdish Patel
Start moving in beginnings of the new dash infrastructure
1
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
2
/*
3
 * Copyright (C) 2011 Canonical Ltd
4
 *
5
 * This program is free software: you can redistribute it and/or modify
6
 * it under the terms of the GNU General Public License version 3 as
7
 * published by the Free Software Foundation.
8
 *
9
 * This program is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU General Public License
15
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 *
17
 * Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
18
 */
19
20
#ifndef UNITY_LENSES_H
21
#define UNITY_LENSES_H
22
23
#include <sigc++/trackable.h>
24
#include <sigc++/signal.h>
25
26
#include "Lens.h"
27
1276.2.19 by Neil Jagdish Patel
update to coding style
28
namespace unity
29
{
30
namespace dash
31
{
1276.1.1 by Neil Jagdish Patel
Start moving in beginnings of the new dash infrastructure
32
33
class Lenses : public sigc::trackable, boost::noncopyable
34
{
35
public:
1276.1.19 by Neil Jagdish Patel
some fixes mentioned in merge request
36
  typedef std::vector<Lens::Ptr> LensList;
1276.1.1 by Neil Jagdish Patel
Start moving in beginnings of the new dash infrastructure
37
38
  /**
39
   * Get the currently loaded Lenses. This is necessary as some of the consumers
40
   * of this object employ a lazy-loading technique to reduce the overhead of
41
   * starting Unity. Therefore, the Lenses may already have been loaded by the time
42
   * the objects have been initiated (and so just connecting to the signals is not
43
   * enough)
44
   */
1276.1.19 by Neil Jagdish Patel
some fixes mentioned in merge request
45
  virtual LensList GetLenses() const = 0;
1276.1.1 by Neil Jagdish Patel
Start moving in beginnings of the new dash infrastructure
46
  virtual Lens::Ptr GetLens(std::string const& lens_id) const = 0;
1276.1.20 by Neil Jagdish Patel
some more fixes
47
  virtual Lens::Ptr GetLensAtIndex(std::size_t index) const = 0;
1276.1.9 by Neil Jagdish Patel
Some more movement on the Tests
48
1276.1.20 by Neil Jagdish Patel
some more fixes
49
  nux::ROProperty<std::size_t> count;
1276.1.1 by Neil Jagdish Patel
Start moving in beginnings of the new dash infrastructure
50
51
  sigc::signal<void, Lens::Ptr&> lens_added;
52
};
53
54
}
55
}
56
57
#endif