nyx-cmd-modules/keys/nyx_cmd_keys.cpp
NyxCmdCommand *NyxCmdKeys::getCommand(string commandName)
{
	if (commandName == "subscribe_key_event")
	{
		return new NyxCmdKeysEvents(NYX_DEVICE_KEYS);
	}

	if (commandName == "subscribe_power_key_event")
	{
		return new NyxCmdKeysEvents(NYX_DEVICE_POWERKEY);
	}

	return NULL;
}
// Returns the command object instance for defined name.
// Implemented command names and their class initiations are added here.
Returns the command object instance for defined name.
Implemented command names and their class initiations are added here.
Returns the command object instance for defined name . Implemented command names and their class initiations are added here .
NyxCmdCommand *NyxCmdKeys::getCommand(string commandName)
{
	if (commandName == "subscribe_key_event")
	{
		return new NyxCmdKeysEvents(NYX_DEVICE_KEYS);
	}
	if (commandName == "subscribe_power_key_event")
	{
		return new NyxCmdKeysEvents(NYX_DEVICE_POWERKEY);
	}
	return NULL;
}
NyxCmdCommand * NyxCmdKeys :: getCommand ( string commandName ) { if ( commandName == " " ) { return new NyxCmdKeysEvents ( NYX_DEVICE_KEYS ) ; } if ( commandName == " " ) { return new NyxCmdKeysEvents ( NYX_DEVICE_POWERKEY ) ; } return NULL ; }
Returns the command object instance for defined name.
Returns the command object instance for defined name .