~ken-vandine/unity/make-quicklists-work-again

« back to all changes in this revision

Viewing changes to src/FavoriteStore.cpp

Import the work done so far with Compiz

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
* Copyright (C) 2010 Canonical Ltd
 
3
*
 
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.
 
7
*
 
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.
 
12
*
 
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/>.
 
15
*
 
16
* Authored by: Neil Jagdish Patel <neil.patel@canonical.com>
 
17
*/
 
18
 
 
19
#include "FavoriteStoreGSettings.h"
 
20
 
 
21
static FavoriteStore *m_store = NULL;
 
22
 
 
23
FavoriteStore::FavoriteStore ()
 
24
{
 
25
 
 
26
}
 
27
 
 
28
FavoriteStore::~FavoriteStore ()
 
29
{
 
30
 
 
31
}
 
32
 
 
33
FavoriteStore *
 
34
FavoriteStore::GetDefault ()
 
35
{
 
36
  if (m_store)
 
37
    m_store->Reference ();
 
38
  else
 
39
    m_store = new FavoriteStoreGSettings ();
 
40
 
 
41
  return m_store;
 
42
}
 
43