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 FAVORITE_STORE_GSETTINGS_H
20
#define FAVORITE_STORE_GSETTINGS_H
24
#include "FavoriteStore.h"
26
// An abstract object that facilitates getting and modifying the list of favorites
27
// Use GetDefault () to get the correct store for the session
29
class FavoriteStoreGSettings : public FavoriteStore
33
FavoriteStoreGSettings ();
34
~FavoriteStoreGSettings ();
37
virtual GSList * GetFavorites ();
38
virtual void AddFavorite (const char *desktop_path, guint32 position);
39
virtual void RemoveFavorite (const char *desktop_path);
40
virtual void MoveFavorite (const char *desktop_path, guint32 position);
46
GSettings *m_settings;
49
#endif // FAVORITE_STORE_GSETTINGS_H