/*!
 * Devices.h
 *
 * Copyright (c) 2015-2018, NADAL Jean-Baptiste. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301 USA
 * 
 * @Author:  NADAL Jean-Baptiste
 * @Date: 27/03/2015
 *
 */

#error deprecated

#ifndef _MODELS_DEVICES_H
#define _MODELS_DEVICES_H

/*------------------------------- INCLUDES ----------------------------------*/

#include <jsoncpp/json.h>
#include <string>

class Devices {
public:
	Devices (std::string aPath);
	~Devices (void);
	
	int Load (void);

	std::string get (const std::string &aCapability);
	Json::Value get (const std::string &aCapability, int anId);

	int set (const std::string &aCapability, int anId, const Json::Value &anElement);
	bool setDevice (const std::string &aCapability,
					 const std::string &aDeviceName, bool aState);

	bool isCapability (const std::string &aCapability);
	
private:
	std::string mDevicesPath;
	Json::Value mRoot;
};

#endif  /* _MODELS_DEVICES_H */
