~ken-vandine/unity/make-quicklists-work-again

« back to all changes in this revision

Viewing changes to src/IndicatorObjectEntryProxy.h

Import the work done so far with Compiz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010 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 version 3 as
 
6
 * published by the Free Software Foundation.
 
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 General Public License for more details.
 
12
 *
 
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/>.
 
15
 *
 
16
 * Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
 
17
 */
 
18
 
 
19
#ifndef INDICATOR_OBJECT_ENTRY_PROXY_H
 
20
#define INDICATOR_OBJECT_ENTRY_PROXY_H
 
21
 
 
22
#include <string>
 
23
#include <sigc++/signal.h>
 
24
 
 
25
#include <gdk/gdk.h>
 
26
 
 
27
class IndicatorObjectEntryProxy
 
28
{
 
29
public:
 
30
 
 
31
  virtual const char * GetLabel () = 0;
 
32
  virtual GdkPixbuf  * GetPixbuf () = 0;
 
33
  virtual void         SetActive (bool active) = 0;
 
34
  virtual bool         GetActive () = 0;
 
35
  virtual void         ShowMenu (int x, int y, guint32 timestamp) = 0;
 
36
 
 
37
  // Signals
 
38
  sigc::signal<void> Updated;
 
39
 
 
40
public:
 
41
  bool label_visible;
 
42
  bool label_sensitive;
 
43
  bool icon_visible;
 
44
  bool icon_sensitive;
 
45
};
 
46
 
 
47
#endif // INDICATOR_OBJECT_ENTRY_PROXY_H