text: /**********************************************************************
   * LeechCraft - modular cross-platform feature rich internet client.
   * Copyright (C) 2006-2011  Georg Rudoy
   * Copyright (C) 2011-2012  Alexander Konovalov
   *
   * Distributed under the Boost Software License, Version 1.0.
   * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
   **********************************************************************/
  
  #include "xmlsettingsmanager.h"
  #include <QCoreApplication>
  
  namespace LC
  {
  namespace SecMan
  {
  namespace SecureStorage
  {
  	XmlSettingsManager::XmlSettingsManager ()
  	{
  		Util::BaseSettingsManager::Init ();
  	}
  
  	XmlSettingsManager* XmlSettingsManager::Instance ()
  	{
  		static XmlSettingsManager manager;
  		return &manager;
  	}
  
  	QSettings* XmlSettingsManager::BeginSettings () const
  	{
  		auto settings = new QSettings (QCoreApplication::organizationName (),
  					QCoreApplication::applicationName () + "_SecMan_SecureStorage");
  		return settings;
  	}
  
  	void XmlSettingsManager::EndSettings (QSettings*) const
  	{
  	}
  }
  }
  }
  