702.3.1
by Michael Terry
add modelines and fix up some inconsistent tabbings |
1 |
// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
|
572.1.11
by Neil Jagdish Patel
Import the work done so far with Compiz |
2 |
/*
|
3 |
* Copyright (C) 2010 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 INDICATOR_OBJECT_PROXY_H
|
|
21 |
#define INDICATOR_OBJECT_PROXY_H
|
|
22 |
||
23 |
#include <string> |
|
24 |
#include <vector> |
|
25 |
#include <sigc++/signal.h> |
|
572.7.22
by Neil Jagdish Patel
make things show |
26 |
#include <sigc++/sigc++.h> |
572.1.11
by Neil Jagdish Patel
Import the work done so far with Compiz |
27 |
|
28 |
#include "IndicatorObjectEntryProxy.h" |
|
29 |
||
572.7.22
by Neil Jagdish Patel
make things show |
30 |
class IndicatorObjectProxy : public sigc::trackable |
572.1.11
by Neil Jagdish Patel
Import the work done so far with Compiz |
31 |
{
|
32 |
public: |
|
33 |
||
34 |
// The name of the indicator that this proxy represents
|
|
35 |
virtual std::string& GetName () = 0; |
|
36 |
||
37 |
// The current list of IndicatorObjectEntryProxys
|
|
38 |
virtual std::vector<IndicatorObjectEntryProxy *>& GetEntries () = 0; |
|
39 |
||
40 |
// Signals
|
|
41 |
sigc::signal<void, IndicatorObjectEntryProxy *> OnEntryAdded; |
|
42 |
sigc::signal<void, IndicatorObjectEntryProxy *> OnEntryRemoved; |
|
43 |
sigc::signal<void, IndicatorObjectEntryProxy *> OnEntryMoved; |
|
44 |
||
45 |
protected: |
|
46 |
std::vector<IndicatorObjectEntryProxy *> _entries; |
|
47 |
};
|
|
48 |
||
49 |
#endif // INDICATOR_OBJECT_PROXY_H |