// -*- Mode: C++; indent-tabs-mode: nil; tab-width: 2 -*-
/*
* Copyright (C) 2010 Canonical Ltd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*
* Authored by: Neil Jagdish Patel
*/
#ifndef INDICATOR_OBJECT_PROXY_REMOTE_H
#define INDICATOR_OBJECT_PROXY_REMOTE_H
#include
#include
#include
#include "IndicatorObjectProxy.h"
// Represents an IndicatorObject over DBus through the panel service
class IndicatorObjectProxyRemote : public IndicatorObjectProxy
{
public:
IndicatorObjectProxyRemote (const char *name);
~IndicatorObjectProxyRemote ();
virtual std::string& GetName ();
virtual std::vector& GetEntries ();
void BeginSync ();
void AddEntry (const gchar *entry_id,
const gchar *label,
bool label_sensitive,
bool label_visible,
guint32 image_type,
const gchar *image_data,
bool image_sensitive,
bool image_visible);
void EndSync ();
void OnShowMenuRequestReceived (const char *id, int x, int y, guint timestamp, guint32 button);
void OnScrollReceived (const char *id, int delta);
// Signals
sigc::signal OnShowMenuRequest;
sigc::signal OnScroll;
private:
std::string _name;
};
#endif // INDICATOR_OBJECT_PROXY_REMOTE_H