view gui/src/ResourceManager.h @ 13537:a43ecce77eec

Introduced a central ResourceManager class.
author Jacob Dawid <jacob.dawid@googlemail.com>
date Tue, 26 Jul 2011 19:04:07 +0200
parents
children a4b5cad8f7c6
line wrap: on
line source

#ifndef RESOURCEMANAGER_H
#define RESOURCEMANAGER_H

#include <QSettings>
#include <QDesktopServices>

class ResourceManager
{
public:
  ~ResourceManager ();

  static ResourceManager *
  instance ()
  {
    return &m_singleton;
  }

  QSettings *settings ();
  QString homePath ();
private:
  ResourceManager ();

  QSettings *m_settings;
  QString m_homePath;
  static ResourceManager m_singleton;
};

#endif // RESOURCEMANAGER_H