/*
* 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 PLACE_H
#define PLACE_H
#include
#include
#include
#include
#include "PlaceEntry.h"
class Place : public sigc::trackable
{
public:
// This could be empty, if the loading of entries is async, so you
// should be listening to the signals too
virtual std::vector& GetEntries () = 0;
virtual guint32 GetNEntries () = 0;
// Signals
sigc::signal entry_added;
sigc::signal entry_removed;
protected:
std::vector _entries;
};
#endif // PLACE_H