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

« back to all changes in this revision

Viewing changes to src/IndicatorObjectFactoryRemote.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_FACTORY_REMOTE_H
 
20
#define INDICATOR_OBJECT_FACTORY_REMOTE_H
 
21
 
 
22
#include <string>
 
23
#include <gio/gio.h>
 
24
#include <dee.h>
 
25
 
 
26
#include "IndicatorObjectFactory.h"
 
27
 
 
28
// Connects to the remote panel service (unity-panel-service) and translates
 
29
// that into something that the panel can show
 
30
class IndicatorObjectFactoryRemote : public IndicatorObjectFactory
 
31
{
 
32
public:
 
33
 
 
34
  IndicatorObjectFactoryRemote  ();
 
35
  ~IndicatorObjectFactoryRemote ();
 
36
  
 
37
  virtual std::vector<IndicatorObjectProxy *> &GetIndicatorObjects ();
 
38
  virtual void ForceRefresh ();
 
39
 
 
40
  void OnRemoteProxyReady (GDBusProxy *proxy);
 
41
  void OnRowAdded         (DeeModelIter   *iter);
 
42
  void OnRowChanged       (DeeModelIter *iter);
 
43
  void OnRowRemoved       (DeeModelIter *iter);
 
44
  void OnEntryActivated   (const char *entry_id);
 
45
  void OnShowMenuRequestReceived (const char *id, int x, int y, guint timestamp);
 
46
 
 
47
private:
 
48
  GDBusProxy *_proxy;
 
49
  DeeModel   *_model;
 
50
};
 
51
 
 
52
#endif // INDICATOR_OBJECT_FACTORY_REMOTE_H