2
* Copyright (C) 2010 Canonical Ltd
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.
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.
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/>.
16
* Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
19
#ifndef INDICATOR_OBJECT_FACTORY_REMOTE_H
20
#define INDICATOR_OBJECT_FACTORY_REMOTE_H
26
#include "IndicatorObjectFactory.h"
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
34
IndicatorObjectFactoryRemote ();
35
~IndicatorObjectFactoryRemote ();
37
virtual std::vector<IndicatorObjectProxy *> &GetIndicatorObjects ();
38
virtual void ForceRefresh ();
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);
52
#endif // INDICATOR_OBJECT_FACTORY_REMOTE_H