Back to index

unity  6.0.0
Public Member Functions | Static Public Member Functions | Public Attributes
unity::FavoriteStore Class Reference

#include <FavoriteStore.h>

Inheritance diagram for unity::FavoriteStore:
Inheritance graph
[legend]
Collaboration diagram for unity::FavoriteStore:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FavoriteStore ()
virtual ~FavoriteStore ()
virtual FavoriteList const & GetFavorites ()=0
virtual void AddFavorite (std::string const &desktop_path, int position)=0
virtual void RemoveFavorite (std::string const &desktop_path)=0
virtual void MoveFavorite (std::string const &desktop_path, int position)=0
virtual void SetFavorites (FavoriteList const &desktop_paths)=0

Static Public Member Functions

static FavoriteStoreInstance ()

Public Attributes

sigc::signal< void,
std::string const
&, std::string const &, bool > 
favorite_added
sigc::signal< void,
std::string const & > 
favorite_removed
sigc::signal< void > reordered

Detailed Description

Definition at line 37 of file FavoriteStore.h.


Constructor & Destructor Documentation

Definition at line 31 of file FavoriteStore.cpp.

{
  if (favoritestore_instance)
  {
    LOG_ERROR(logger) << "More than one FavoriteStore created!";
  }
  else
  {
    favoritestore_instance = this;
  }
}

Definition at line 43 of file FavoriteStore.cpp.

{
  if (favoritestore_instance == this)
    favoritestore_instance = nullptr;
}

Member Function Documentation

virtual void unity::FavoriteStore::AddFavorite ( std::string const &  desktop_path,
int  position 
) [pure virtual]

Implemented in unity::internal::FavoriteStoreGSettings.

Here is the caller graph for this function:

virtual FavoriteList const& unity::FavoriteStore::GetFavorites ( ) [pure virtual]

Implemented in unity::internal::FavoriteStoreGSettings.

Here is the caller graph for this function:

Definition at line 50 of file FavoriteStore.cpp.

{
  if (! favoritestore_instance)
  {
    LOG_ERROR(logger) << "No FavoriteStore instance created yet!";
  }
  return *favoritestore_instance;
}

Here is the caller graph for this function:

virtual void unity::FavoriteStore::MoveFavorite ( std::string const &  desktop_path,
int  position 
) [pure virtual]
virtual void unity::FavoriteStore::RemoveFavorite ( std::string const &  desktop_path) [pure virtual]

Implemented in unity::internal::FavoriteStoreGSettings.

Here is the caller graph for this function:

virtual void unity::FavoriteStore::SetFavorites ( FavoriteList const &  desktop_paths) [pure virtual]

Implemented in unity::internal::FavoriteStoreGSettings.

Here is the caller graph for this function:


Member Data Documentation

sigc::signal<void, std::string const&, std::string const&, bool> unity::FavoriteStore::favorite_added

Definition at line 61 of file FavoriteStore.h.

sigc::signal<void, std::string const&> unity::FavoriteStore::favorite_removed

Definition at line 63 of file FavoriteStore.h.

sigc::signal<void> unity::FavoriteStore::reordered

Definition at line 64 of file FavoriteStore.h.


The documentation for this class was generated from the following files: