~didrocks/unity/launcher-bug-fix-fest

« back to all changes in this revision

Viewing changes to src/IndicatorObjectProxyRemote.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_PROXY_REMOTE_H
 
20
#define INDICATOR_OBJECT_PROXY_REMOTE_H
 
21
 
 
22
#include <string>
 
23
#include <gio/gio.h>
 
24
#include <dee.h>
 
25
 
 
26
#include "IndicatorObjectProxy.h"
 
27
 
 
28
// Represents an IndicatorObject over DBus through the panel service
 
29
 
 
30
class IndicatorObjectProxyRemote : public IndicatorObjectProxy
 
31
{
 
32
public:
 
33
 
 
34
  IndicatorObjectProxyRemote  (const char *name, const char *model_name);
 
35
  ~IndicatorObjectProxyRemote ();
 
36
  
 
37
  virtual std::string& GetName ();
 
38
  virtual std::vector<IndicatorObjectEntryProxy *>& GetEntries ();
 
39
 
 
40
  void OnRowAdded   (DeeModelIter *iter);
 
41
  void OnRowChanged (DeeModelIter *iter);
 
42
  void OnRowRemoved (DeeModelIter *iter);
 
43
  void OnShowMenuRequestReceived (const char *id, int x, int y, guint timestamp);
 
44
 
 
45
  // Signals
 
46
  sigc::signal<void, const char *, int, int, guint32> OnShowMenuRequest;
 
47
 
 
48
private:
 
49
  std::string _name;
 
50
  std::string _model_name;
 
51
  DeeModel    *_model;
 
52
};
 
53
 
 
54
#endif // INDICATOR_OBJECT_PROXY_REMOTE_H