~3v1n0/unity/callgrind-improvements

« back to all changes in this revision

Viewing changes to src/IndicatorObjectEntryProxyRemote.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_REMOTE_H
 
20
#define INDICATOR_OBJECT_ENTRY_PROXY_REMOTE_H
 
21
 
 
22
#include <string>
 
23
#include <gio/gio.h>
 
24
#include <dee.h>
 
25
 
 
26
#include "IndicatorObjectEntryProxy.h"
 
27
 
 
28
// Represents an IndicatorObjectEntry over DBus through the panel service
 
29
// Basically wraps the DeeModelIter, trying to keep as much info inside 
 
30
// that as possible to avoid duplication
 
31
 
 
32
class IndicatorObjectEntryProxyRemote : public IndicatorObjectEntryProxy
 
33
{
 
34
public:
 
35
 
 
36
  IndicatorObjectEntryProxyRemote  (DeeModel *model, DeeModelIter *iter);
 
37
  ~IndicatorObjectEntryProxyRemote ();
 
38
 
 
39
  const char * GetId ();
 
40
 
 
41
  virtual const char * GetLabel ();
 
42
 
 
43
  // Call g_object_unref on the returned pixbuf
 
44
  virtual GdkPixbuf  * GetPixbuf ();
 
45
 
 
46
  virtual void         SetActive (bool active);
 
47
  virtual bool         GetActive ();
 
48
 
 
49
  virtual void         ShowMenu (int x, int y, guint32 timestamp);
 
50
 
 
51
  void Refresh ();
 
52
 
 
53
  // Signals
 
54
  sigc::signal<void, const char *, int, int, guint32> OnShowMenuRequest;
 
55
 
 
56
public:
 
57
  DeeModel     *_model;
 
58
  DeeModelIter *_iter;
 
59
  bool          _active;
 
60
};
 
61
 
 
62
#endif // INDICATOR_OBJECT_ENTRY_PROXY_REMOTE_H