// -*- 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_ENTRY_PROXY_REMOTE_H
#define INDICATOR_OBJECT_ENTRY_PROXY_REMOTE_H
#include
#include
#include "IndicatorObjectEntryProxy.h"
// Represents an IndicatorObjectEntry over DBus through the panel service
// Basically wraps the DeeModelIter, trying to keep as much info inside
// that as possible to avoid duplication
class IndicatorObjectEntryProxyRemote : public IndicatorObjectEntryProxy
{
public:
IndicatorObjectEntryProxyRemote ();
~IndicatorObjectEntryProxyRemote ();
virtual const char * GetId ();
virtual const char * GetLabel ();
// Call g_object_unref on the returned pixbuf
virtual GdkPixbuf * GetPixbuf ();
virtual void SetActive (bool active);
virtual bool GetActive ();
virtual void ShowMenu (int x, int y, guint32 timestamp, guint32 button);
virtual void Scroll (int delta);
void Refresh (const char *__id,
const char *__label,
bool __label_sensitive,
bool __label_visible,
guint32 __image_type,
const char *__image_data,
bool __image_sensitive,
bool __image_visible);
// Signals
sigc::signal OnShowMenuRequest;
sigc::signal OnScroll;
public:
bool _dirty;
bool _active;
char *_id;
char *_label;
guint32 _image_type;
char *_image_data;
};
#endif // INDICATOR_OBJECT_ENTRY_PROXY_REMOTE_H