added google mail notification plugin
changed licence formating
This commit is contained in:
parent
807f9ccd5c
commit
2a372dd240
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class DeviceManager
|
\class DeviceManager
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEMANAGER_H
|
#ifndef DEVICEMANAGER_H
|
||||||
#define DEVICEMANAGER_H
|
#define DEVICEMANAGER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Gpio
|
\class Gpio
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef GPIO_H
|
#ifndef GPIO_H
|
||||||
#define GPIO_H
|
#define GPIO_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Radio433
|
\class Radio433
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef RADIO433_H
|
#ifndef RADIO433_H
|
||||||
#define RADIO433_h
|
#define RADIO433_h
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Device
|
\class Device
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICE_H
|
#ifndef DEVICE_H
|
||||||
#define DEVICE_H
|
#define DEVICE_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class DeviceClass
|
\class DeviceClass
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICECLASS_H
|
#ifndef DEVICECLASS_H
|
||||||
#define DEVICECLASS_H
|
#define DEVICECLASS_H
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "devicedescriptor.h"
|
#include "devicedescriptor.h"
|
||||||
|
|
||||||
DeviceDescriptor::DeviceDescriptor():
|
DeviceDescriptor::DeviceDescriptor():
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEDESCRIPTION_H
|
#ifndef DEVICEDESCRIPTION_H
|
||||||
#define DEVICEDESCRIPTION_H
|
#define DEVICEDESCRIPTION_H
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class DevicePlugin
|
\class DevicePlugin
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGIN_H
|
#ifndef DEVICEPLUGIN_H
|
||||||
#define DEVICEPLUGIN_H
|
#define DEVICEPLUGIN_H
|
||||||
@ -85,6 +85,6 @@ private:
|
|||||||
|
|
||||||
friend class DeviceManager;
|
friend class DeviceManager;
|
||||||
};
|
};
|
||||||
Q_DECLARE_INTERFACE(DevicePlugin, "org.guh.DevicePlugin")
|
Q_DECLARE_INTERFACE(DevicePlugin, "guru.guh.DevicePlugin")
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Action
|
\class Action
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef ACTION_H
|
#ifndef ACTION_H
|
||||||
#define ACTION_H
|
#define ACTION_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class ActionType
|
\class ActionType
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef ACTIONTYPE_H
|
#ifndef ACTIONTYPE_H
|
||||||
#define ACTIONTYPE_H
|
#define ACTIONTYPE_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Event
|
\class Event
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef EVENT_H
|
#ifndef EVENT_H
|
||||||
#define EVENT_H
|
#define EVENT_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class EventType
|
\class EventType
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef TRIGGERTYPE_H
|
#ifndef TRIGGERTYPE_H
|
||||||
#define TRIGGERTYPE_H
|
#define TRIGGERTYPE_H
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "param.h"
|
#include "param.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef PARAM_H
|
#ifndef PARAM_H
|
||||||
#define PARAM_H
|
#define PARAM_H
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "paramtype.h"
|
#include "paramtype.h"
|
||||||
|
|
||||||
ParamType::ParamType(const QString &name, const QVariant::Type type, const QVariant &defaultValue):
|
ParamType::ParamType(const QString &name, const QVariant::Type type, const QVariant &defaultValue):
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef PARAMTYPE_H
|
#ifndef PARAMTYPE_H
|
||||||
#define PARAMTYPE_H
|
#define PARAMTYPE_H
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class State
|
\class State
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef STATE_H
|
#ifndef STATE_H
|
||||||
#define STATE_H
|
#define STATE_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class StateType
|
\class StateType
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef STATETYPE_H
|
#ifndef STATETYPE_H
|
||||||
#define STATETYPE_H
|
#define STATETYPE_H
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "vendor.h"
|
#include "vendor.h"
|
||||||
|
|
||||||
Vendor::Vendor(const VendorId &id, const QString &name):
|
Vendor::Vendor(const VendorId &id, const QString &name):
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef VENDOR_H
|
#ifndef VENDOR_H
|
||||||
#define VENDOR_H
|
#define VENDOR_H
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "bobclient.h"
|
#include "bobclient.h"
|
||||||
|
|
||||||
#include "libboblight/boblight.h"
|
#include "libboblight/boblight.h"
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef BOBCLIENT_H
|
#ifndef BOBCLIENT_H
|
||||||
#define BOBCLIENT_H
|
#define BOBCLIENT_H
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "devicepluginboblight.h"
|
#include "devicepluginboblight.h"
|
||||||
|
|
||||||
#include "plugin/device.h"
|
#include "plugin/device.h"
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGINBOBLIGHT_H
|
#ifndef DEVICEPLUGINBOBLIGHT_H
|
||||||
#define DEVICEPLUGINBOBLIGHT_H
|
#define DEVICEPLUGINBOBLIGHT_H
|
||||||
|
|
||||||
@ -11,7 +29,7 @@ class DevicePluginBoblight : public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.hiveyourhome.DevicePlugin" FILE "devicepluginboblight.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginboblight.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -8,6 +8,7 @@ SUBDIRS += elro \
|
|||||||
# weatherground \
|
# weatherground \
|
||||||
openweathermap \
|
openweathermap \
|
||||||
lircd \
|
lircd \
|
||||||
|
googlemail \
|
||||||
|
|
||||||
boblight {
|
boblight {
|
||||||
SUBDIRS += boblight
|
SUBDIRS += boblight
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\page elro.html
|
\page elro.html
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGINELRO_H
|
#ifndef DEVICEPLUGINELRO_H
|
||||||
#define DEVICEPLUGINELRO_H
|
#define DEVICEPLUGINELRO_H
|
||||||
@ -25,7 +25,7 @@ class DevicePluginElro : public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.guh.DevicePlugin" FILE "devicepluginelro.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginelro.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
135
plugins/deviceplugins/googlemail/deviceplugingooglemail.cpp
Normal file
135
plugins/deviceplugins/googlemail/deviceplugingooglemail.cpp
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
#include "deviceplugingooglemail.h"
|
||||||
|
|
||||||
|
#include "plugin/device.h"
|
||||||
|
#include "devicemanager.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QJsonDocument>
|
||||||
|
#include <QVariantMap>
|
||||||
|
#include <QDateTime>
|
||||||
|
|
||||||
|
extern VendorId guhVendorId;
|
||||||
|
DeviceClassId mailDeviceClassId = DeviceClassId("38ed6ffc-f43b-48f8-aea2-8d63cdcad87e");
|
||||||
|
ActionTypeId sendMailActionTypeId = ActionTypeId("fa54f834-34d0-4aaf-b0ab-a165191d39d3");
|
||||||
|
|
||||||
|
DevicePluginGoogleMail::DevicePluginGoogleMail()
|
||||||
|
{
|
||||||
|
m_smtpClient = new SmtpClient();
|
||||||
|
}
|
||||||
|
|
||||||
|
DevicePluginGoogleMail::~DevicePluginGoogleMail()
|
||||||
|
{
|
||||||
|
m_smtpClient->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
|
QList<Vendor> DevicePluginGoogleMail::supportedVendors() const
|
||||||
|
{
|
||||||
|
QList<Vendor> ret;
|
||||||
|
Vendor mail(guhVendorId, "guh");
|
||||||
|
ret.append(mail);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
QList<DeviceClass> DevicePluginGoogleMail::supportedDevices() const
|
||||||
|
{
|
||||||
|
QList<DeviceClass> ret;
|
||||||
|
|
||||||
|
DeviceClass deviceClassGoogleMail(pluginId(), guhVendorId, mailDeviceClassId);
|
||||||
|
deviceClassGoogleMail.setName("Google Mail Notification");
|
||||||
|
deviceClassGoogleMail.setCreateMethod(DeviceClass::CreateMethodUser);
|
||||||
|
|
||||||
|
// Params
|
||||||
|
QList<ParamType> params;
|
||||||
|
|
||||||
|
ParamType userParam("user", QVariant::String);
|
||||||
|
params.append(userParam);
|
||||||
|
|
||||||
|
ParamType passwordParam("password", QVariant::String);
|
||||||
|
params.append(passwordParam);
|
||||||
|
|
||||||
|
ParamType sendToParam("sendTo", QVariant::String);
|
||||||
|
params.append(sendToParam);
|
||||||
|
|
||||||
|
// Actions
|
||||||
|
QList<ActionType> googleMailActions;
|
||||||
|
|
||||||
|
QVariantList actionParamsMail;
|
||||||
|
QVariantMap actionParamSubject;
|
||||||
|
actionParamSubject.insert("name", "subject");
|
||||||
|
actionParamSubject.insert("type", "string");
|
||||||
|
actionParamsMail.append(actionParamSubject);
|
||||||
|
|
||||||
|
QVariantMap actionParamBody;
|
||||||
|
actionParamBody.insert("name", "body");
|
||||||
|
actionParamBody.insert("type", "string");
|
||||||
|
actionParamsMail.append(actionParamBody);
|
||||||
|
|
||||||
|
ActionType sendMailAction(sendMailActionTypeId);
|
||||||
|
sendMailAction.setName("send mail");
|
||||||
|
sendMailAction.setParameters(actionParamsMail);
|
||||||
|
googleMailActions.append(sendMailAction);
|
||||||
|
|
||||||
|
deviceClassGoogleMail.setActions(googleMailActions);
|
||||||
|
deviceClassGoogleMail.setParams(params);
|
||||||
|
|
||||||
|
ret.append(deviceClassGoogleMail);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DevicePluginGoogleMail::deviceCreated(Device *device)
|
||||||
|
{
|
||||||
|
if(!m_smtpClient->login(device->paramValue("user").toString(), device->paramValue("password").toString(), SmtpClient::AuthLogin)){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
m_smtpClient->logout();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeviceManager::HardwareResources DevicePluginGoogleMail::requiredHardware() const
|
||||||
|
{
|
||||||
|
return DeviceManager::HardwareResourceNone;
|
||||||
|
}
|
||||||
|
|
||||||
|
DeviceManager::DeviceError DevicePluginGoogleMail::executeAction(Device *device, const Action &action)
|
||||||
|
{
|
||||||
|
qDebug() << "execute action " << sendMailActionTypeId.toString();
|
||||||
|
if(action.actionTypeId() == sendMailActionTypeId){
|
||||||
|
if(!m_smtpClient->login(device->paramValue("user").toString(), device->paramValue("password").toString())){
|
||||||
|
return DeviceManager::DeviceErrorDeviceParameterError;
|
||||||
|
}
|
||||||
|
|
||||||
|
m_smtpClient->sendMail(device->paramValue("user").toString(), device->paramValue("sendTo").toString(), action.param("subject").value().toString(), action.param("body").value().toString());
|
||||||
|
m_smtpClient->logout();
|
||||||
|
}
|
||||||
|
|
||||||
|
return DeviceManager::DeviceErrorNoError;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString DevicePluginGoogleMail::pluginName() const
|
||||||
|
{
|
||||||
|
return "Google Mail";
|
||||||
|
}
|
||||||
|
|
||||||
|
PluginId DevicePluginGoogleMail::pluginId() const
|
||||||
|
{
|
||||||
|
return PluginId("edfbbf03-e243-4b33-bc46-b31e973febdd");
|
||||||
|
}
|
||||||
|
|
||||||
56
plugins/deviceplugins/googlemail/deviceplugingooglemail.h
Normal file
56
plugins/deviceplugins/googlemail/deviceplugingooglemail.h
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
#ifndef DEVICEPLUGINGOOGLEMAIL_H
|
||||||
|
#define DEVICEPLUGINGOOGLEMAIL_H
|
||||||
|
|
||||||
|
#include "plugin/deviceplugin.h"
|
||||||
|
#include "smtpclient.h"
|
||||||
|
|
||||||
|
class DevicePluginGoogleMail : public DevicePlugin
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "deviceplugingooglemail.json")
|
||||||
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit DevicePluginGoogleMail();
|
||||||
|
~DevicePluginGoogleMail();
|
||||||
|
|
||||||
|
QList<Vendor> supportedVendors() const override;
|
||||||
|
QList<DeviceClass> supportedDevices() const override;
|
||||||
|
|
||||||
|
bool deviceCreated(Device *device) override;
|
||||||
|
DeviceManager::HardwareResources requiredHardware() const override;
|
||||||
|
DeviceManager::DeviceError executeAction(Device *device, const Action &action) override;
|
||||||
|
|
||||||
|
QString pluginName() const override;
|
||||||
|
PluginId pluginId() const override;
|
||||||
|
|
||||||
|
private:
|
||||||
|
SmtpClient *m_smtpClient;
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // DEVICEPLUGINMAIL_H
|
||||||
@ -0,0 +1 @@
|
|||||||
|
{}
|
||||||
15
plugins/deviceplugins/googlemail/googlemail.pro
Normal file
15
plugins/deviceplugins/googlemail/googlemail.pro
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
include(../../plugins.pri)
|
||||||
|
|
||||||
|
TARGET = $$qtLibraryTarget(guh_deviceplugingooglemail)
|
||||||
|
|
||||||
|
QT+= network
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
deviceplugingooglemail.cpp \
|
||||||
|
smtpclient.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
deviceplugingooglemail.h \
|
||||||
|
smtpclient.h
|
||||||
|
|
||||||
|
|
||||||
245
plugins/deviceplugins/googlemail/smtpclient.cpp
Normal file
245
plugins/deviceplugins/googlemail/smtpclient.cpp
Normal file
@ -0,0 +1,245 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
#include "smtpclient.h"
|
||||||
|
|
||||||
|
SmtpClient::SmtpClient(const QString &host, int port, SmtpClient::ConnectionType connectionType):
|
||||||
|
m_host(host), m_port(port), m_connectionType(connectionType)
|
||||||
|
{
|
||||||
|
m_socket = new QSslSocket(this);
|
||||||
|
|
||||||
|
m_authMethod = AuthLogin;
|
||||||
|
m_connectionTimeout = 30000;
|
||||||
|
m_responseTimeout = 30000;
|
||||||
|
m_sendMessageTimeout = 60000;
|
||||||
|
|
||||||
|
connect(m_socket,SIGNAL(error(QAbstractSocket::SocketError)),this,SLOT(socketError(QAbstractSocket::SocketError)));
|
||||||
|
connect(m_socket,SIGNAL(readyRead()),this,SLOT(readyRead()));
|
||||||
|
connect(m_socket,SIGNAL(connected()),this,SLOT(connected()));
|
||||||
|
connect(m_socket,SIGNAL(disconnected()),this,SLOT(disconnected()));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SmtpClient::connectToHost()
|
||||||
|
{
|
||||||
|
switch (m_connectionType) {
|
||||||
|
case TlsConnection:
|
||||||
|
m_socket->connectToHostEncrypted(m_host, m_port);
|
||||||
|
break;
|
||||||
|
case TcpConnection:
|
||||||
|
m_socket->connectToHost(m_host,m_port);
|
||||||
|
break;
|
||||||
|
case SslConnection:
|
||||||
|
m_socket->connectToHostEncrypted(m_host, m_port);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!m_socket->waitForConnected(m_connectionTimeout)){
|
||||||
|
qWarning() << "Mail TCP connection timeout (5s).";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(waitForResponse() != 220){
|
||||||
|
qWarning() << "ERROR: could not connect.";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
send("EHLO localhost");
|
||||||
|
|
||||||
|
if(waitForResponse() != 250){
|
||||||
|
qWarning() << "ERROR: could not connect.";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(m_connectionType == TlsConnection){
|
||||||
|
//qDebug() << "start client ecryption";
|
||||||
|
m_socket->startClientEncryption();
|
||||||
|
|
||||||
|
if(!m_socket->waitForEncrypted(m_connectionTimeout)){
|
||||||
|
qDebug() << "encryption falied...";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
send("EHLO localhost");
|
||||||
|
if(waitForResponse() != 250){
|
||||||
|
qWarning() << "ERROR: could not connect.";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmtpClient::connected()
|
||||||
|
{
|
||||||
|
qDebug() << "connected to" << m_host;
|
||||||
|
qDebug() << "-----------------------";
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmtpClient::disconnected()
|
||||||
|
{
|
||||||
|
qDebug() << "disconnected from" << m_host;
|
||||||
|
qDebug() << "-----------------------";
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SmtpClient::login(const QString &user, const QString &password, SmtpClient::AuthMethod method)
|
||||||
|
{
|
||||||
|
|
||||||
|
if(!connectToHost()){
|
||||||
|
m_socket->disconnect();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
qDebug() << "Try to login with: " << user << password;
|
||||||
|
|
||||||
|
if(method == AuthPlain){
|
||||||
|
send("AUTH PLAIN " + QByteArray().append((char) 0).append(user).append((char) 0).append(password).toBase64());
|
||||||
|
if(waitForResponse() != 235){
|
||||||
|
qWarning() << "ERROR: could not login AUTH PLAIN";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}else if(method == AuthLogin){
|
||||||
|
send("AUTH LOGIN");
|
||||||
|
if(waitForResponse() != 334){
|
||||||
|
qWarning() << "ERROR: could not login AUTH LOGIN";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
send(QByteArray().append(user).toBase64());
|
||||||
|
if(waitForResponse() != 334){
|
||||||
|
qWarning() << "ERROR: could not login AUTH LOGIN...wrong username or password";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
send(QByteArray().append(password).toBase64());
|
||||||
|
if(waitForResponse() != 235){
|
||||||
|
qWarning() << "ERROR: could not login AUTH LOGIN...wrong username or password";
|
||||||
|
m_socket->close();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
qDebug() << "login....OK";
|
||||||
|
qDebug() << "-----------------------";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SmtpClient::logout()
|
||||||
|
{
|
||||||
|
send("QUIT");
|
||||||
|
if(waitForResponse() != 221){
|
||||||
|
qWarning() << "ERROR: could not QUIT connection.";
|
||||||
|
}
|
||||||
|
|
||||||
|
m_socket->close();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
int SmtpClient::waitForResponse()
|
||||||
|
{
|
||||||
|
while(true){
|
||||||
|
if(!m_socket->waitForReadyRead(m_responseTimeout)){
|
||||||
|
qWarning() << "ERROR: mail TCP response timeout.";
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
qDebug() << "-----------------------";
|
||||||
|
QString responseText;
|
||||||
|
QString responseLine;
|
||||||
|
while (m_socket->canReadLine() && responseLine[3] != ' ') {
|
||||||
|
// Save the server's response
|
||||||
|
responseLine = m_socket->readLine();
|
||||||
|
responseText.append(responseLine);
|
||||||
|
}
|
||||||
|
int responseCode = responseText.left(3).toInt();
|
||||||
|
qDebug() << responseText;
|
||||||
|
qDebug() << "-----------------------";
|
||||||
|
return responseCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bool SmtpClient::sendMail(const QString &from, const QString &to, const QString &subject, const QString &body)
|
||||||
|
{
|
||||||
|
|
||||||
|
send("MAIL FROM:<" + from + ">");
|
||||||
|
if(waitForResponse() != 250){
|
||||||
|
qWarning() << "ERROR: could not send mail.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
send("RCPT TO:<" + to + ">");
|
||||||
|
if(waitForResponse() != 250){
|
||||||
|
qWarning() << "ERROR: could not send mail.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
send("DATA");
|
||||||
|
if(waitForResponse() != 354){
|
||||||
|
qWarning() << "ERROR: could not send mail.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// mail
|
||||||
|
QString message;
|
||||||
|
message = "To: " + to + "\n";
|
||||||
|
message.append("From: " + from + "\n");
|
||||||
|
message.append("Subject: " + subject + "\n");
|
||||||
|
message.append(body);
|
||||||
|
message.replace( QString::fromLatin1( "\n" ), QString::fromLatin1( "\r\n" ) );
|
||||||
|
message.replace( QString::fromLatin1( "\r\n.\r\n" ),
|
||||||
|
QString::fromLatin1( "\r\n..\r\n" ) );
|
||||||
|
|
||||||
|
qDebug() << "sending...\n";
|
||||||
|
qDebug() << "--------------------------------------------";
|
||||||
|
send(message + "\r\n.");
|
||||||
|
if(waitForResponse() != 250){
|
||||||
|
qWarning() << "ERROR: could not send mail.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
logout();
|
||||||
|
|
||||||
|
qDebug() << "--------------------------------------------";
|
||||||
|
qDebug() << " MAIL SENT!!!!";
|
||||||
|
qDebug() << "--------------------------------------------";
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmtpClient::socketError(QAbstractSocket::SocketError error)
|
||||||
|
{
|
||||||
|
qWarning() << "mail socket:" << error << m_socket->errorString();
|
||||||
|
}
|
||||||
|
|
||||||
|
void SmtpClient::send(const QString &data)
|
||||||
|
{
|
||||||
|
qDebug() << "send:" << data;
|
||||||
|
m_socket->write(data.toUtf8() + "\r\n");
|
||||||
|
m_socket->flush();
|
||||||
|
if (m_socket->waitForBytesWritten(m_sendMessageTimeout)){
|
||||||
|
qWarning() << "mail TCP send timeout (60s)";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
77
plugins/deviceplugins/googlemail/smtpclient.h
Normal file
77
plugins/deviceplugins/googlemail/smtpclient.h
Normal file
@ -0,0 +1,77 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
#ifndef SMTPCLIENT_H
|
||||||
|
#define SMTPCLIENT_H
|
||||||
|
|
||||||
|
#include <QObject>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QTcpSocket>
|
||||||
|
#include <QSslSocket>
|
||||||
|
|
||||||
|
class SmtpClient : public QObject
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
|
||||||
|
enum AuthMethod{
|
||||||
|
AuthPlain,
|
||||||
|
AuthLogin
|
||||||
|
};
|
||||||
|
|
||||||
|
enum ConnectionType{
|
||||||
|
TcpConnection, // no encryption
|
||||||
|
SslConnection, // SSL
|
||||||
|
TlsConnection // STARTTLS
|
||||||
|
};
|
||||||
|
|
||||||
|
explicit SmtpClient(const QString &host = "smtp.gmail.com", int port = 465, ConnectionType connectionType = SslConnection);
|
||||||
|
bool connectToHost();
|
||||||
|
bool login(const QString &user, const QString &password, AuthMethod method = AuthLogin);
|
||||||
|
bool logout();
|
||||||
|
bool sendMail(const QString &from, const QString &to, const QString &subject, const QString &body);
|
||||||
|
|
||||||
|
private:
|
||||||
|
QSslSocket *m_socket;
|
||||||
|
QString m_host;
|
||||||
|
int m_port;
|
||||||
|
|
||||||
|
ConnectionType m_connectionType;
|
||||||
|
AuthMethod m_authMethod;
|
||||||
|
|
||||||
|
int m_responseCode;
|
||||||
|
int m_connectionTimeout;
|
||||||
|
int m_responseTimeout;
|
||||||
|
int m_sendMessageTimeout;
|
||||||
|
int waitForResponse();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void socketError(QAbstractSocket::SocketError error);
|
||||||
|
void connected();
|
||||||
|
void disconnected();
|
||||||
|
void send(const QString &data);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // SMTPCLIENT_H
|
||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\page intertechno.html
|
\page intertechno.html
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGININTERTECHNO_H
|
#ifndef DEVICEPLUGININTERTECHNO_H
|
||||||
#define DEVICEPLUGININTERTECHNO_H
|
#define DEVICEPLUGININTERTECHNO_H
|
||||||
@ -25,7 +25,7 @@ class DevicePluginIntertechno : public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.guh.DevicePlugin" FILE "devicepluginintertechno.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginintertechno.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "devicepluginlircd.h"
|
#include "devicepluginlircd.h"
|
||||||
|
|
||||||
#include "plugin/device.h"
|
#include "plugin/device.h"
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGINLIRCD_H
|
#ifndef DEVICEPLUGINLIRCD_H
|
||||||
#define DEVICEPLUGINLIRCD_H
|
#define DEVICEPLUGINLIRCD_H
|
||||||
|
|
||||||
@ -11,7 +29,7 @@ class DevicePluginLircd: public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.hiveyourhome.DevicePlugin" FILE "devicepluginlircd.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginlircd.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "lircdclient.h"
|
#include "lircdclient.h"
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef LIRCCLIENT_H
|
#ifndef LIRCCLIENT_H
|
||||||
#define LIRCCLIENT_H
|
#define LIRCCLIENT_H
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "devicepluginmock.h"
|
#include "devicepluginmock.h"
|
||||||
#include "httpdaemon.h"
|
#include "httpdaemon.h"
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGINMOCK_H
|
#ifndef DEVICEPLUGINMOCK_H
|
||||||
#define DEVICEPLUGINMOCK_H
|
#define DEVICEPLUGINMOCK_H
|
||||||
@ -29,7 +29,7 @@ class DevicePluginMock : public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.guh.DevicePlugin" FILE "devicepluginmock.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginmock.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "httpdaemon.h"
|
#include "httpdaemon.h"
|
||||||
|
|
||||||
#include "plugin/device.h"
|
#include "plugin/device.h"
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef HTTPDAEMON_H
|
#ifndef HTTPDAEMON_H
|
||||||
#define HTTPDAEMON_H
|
#define HTTPDAEMON_H
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\page openweathermap.html
|
\page openweathermap.html
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGINOPENWEATHERMAP_H
|
#ifndef DEVICEPLUGINOPENWEATHERMAP_H
|
||||||
#define DEVICEPLUGINOPENWEATHERMAP_H
|
#define DEVICEPLUGINOPENWEATHERMAP_H
|
||||||
@ -27,7 +27,7 @@ class DevicePluginOpenweathermap : public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.guh.DevicePlugin" FILE "devicepluginopenweathermap.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginopenweathermap.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,21 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
|
|
||||||
#include "openweathermap.h"
|
#include "openweathermap.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef OPENWEATHERMAP_H
|
#ifndef OPENWEATHERMAP_H
|
||||||
#define OPENWEATHERMAP_H
|
#define OPENWEATHERMAP_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "devicepluginwifidetector.h"
|
#include "devicepluginwifidetector.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEPLUGINWIFIDETECTOR_H
|
#ifndef DEVICEPLUGINWIFIDETECTOR_H
|
||||||
#define DEVICEPLUGINWIFIDETECTOR_H
|
#define DEVICEPLUGINWIFIDETECTOR_H
|
||||||
@ -27,7 +27,7 @@ class DevicePluginWifiDetector : public DevicePlugin
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
Q_PLUGIN_METADATA(IID "org.guh.DevicePlugin" FILE "devicepluginwifidetector.json")
|
Q_PLUGIN_METADATA(IID "guru.guh.DevicePlugin" FILE "devicepluginwifidetector.json")
|
||||||
Q_INTERFACES(DevicePlugin)
|
Q_INTERFACES(DevicePlugin)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class GuhCore
|
\class GuhCore
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef GUHCORE_H
|
#ifndef GUHCORE_H
|
||||||
#define GUHCORE_H
|
#define GUHCORE_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "actionhandler.h"
|
#include "actionhandler.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef ACTIONHANDLER_H
|
#ifndef ACTIONHANDLER_H
|
||||||
#define ACTIONHANDLER_H
|
#define ACTIONHANDLER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "devicehandler.h"
|
#include "devicehandler.h"
|
||||||
#include "guhcore.h"
|
#include "guhcore.h"
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef DEVICEHANDLER_H
|
#ifndef DEVICEHANDLER_H
|
||||||
#define DEVICEHANDLER_H
|
#define DEVICEHANDLER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "jsonhandler.h"
|
#include "jsonhandler.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef JSONHANDLER_H
|
#ifndef JSONHANDLER_H
|
||||||
#define JSONHANDLER_H
|
#define JSONHANDLER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "jsonrpcserver.h"
|
#include "jsonrpcserver.h"
|
||||||
#include "jsontypes.h"
|
#include "jsontypes.h"
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef JSONRPCSERVER_H
|
#ifndef JSONRPCSERVER_H
|
||||||
#define JSONRPCSERVER_H
|
#define JSONRPCSERVER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "jsontypes.h"
|
#include "jsontypes.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef JSONTYPES_H
|
#ifndef JSONTYPES_H
|
||||||
#define JSONTYPES_H
|
#define JSONTYPES_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "ruleshandler.h"
|
#include "ruleshandler.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef RULESHANDLER_H
|
#ifndef RULESHANDLER_H
|
||||||
#define RULESHANDLER_H
|
#define RULESHANDLER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <guhcore.h>
|
#include <guhcore.h>
|
||||||
@ -30,6 +30,7 @@ Q_IMPORT_PLUGIN(DevicePluginMock)
|
|||||||
//Q_IMPORT_PLUGIN(DevicePluginWeatherground)
|
//Q_IMPORT_PLUGIN(DevicePluginWeatherground)
|
||||||
Q_IMPORT_PLUGIN(DevicePluginOpenweathermap)
|
Q_IMPORT_PLUGIN(DevicePluginOpenweathermap)
|
||||||
Q_IMPORT_PLUGIN(DevicePluginLircd)
|
Q_IMPORT_PLUGIN(DevicePluginLircd)
|
||||||
|
Q_IMPORT_PLUGIN(DevicePluginGoogleMail)
|
||||||
|
|
||||||
#if USE_BOBLIGHT
|
#if USE_BOBLIGHT
|
||||||
Q_IMPORT_PLUGIN(DevicePluginBoblight)
|
Q_IMPORT_PLUGIN(DevicePluginBoblight)
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class Rule
|
\class Rule
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef RULE_H
|
#ifndef RULE_H
|
||||||
#define RULE_H
|
#define RULE_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\class RuleEngine
|
\class RuleEngine
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef RULEENGINE_H
|
#ifndef RULEENGINE_H
|
||||||
#define RULEENGINE_H
|
#define RULEENGINE_H
|
||||||
|
|||||||
@ -24,6 +24,7 @@ LIBS += -L../plugins/deviceplugins/mock -lguh_devicepluginmock
|
|||||||
#LIBS += -L../plugins/deviceplugins/weatherground -lguh_devicepluginweatherground
|
#LIBS += -L../plugins/deviceplugins/weatherground -lguh_devicepluginweatherground
|
||||||
LIBS += -L../plugins/deviceplugins/openweathermap -lguh_devicepluginopenweathermap
|
LIBS += -L../plugins/deviceplugins/openweathermap -lguh_devicepluginopenweathermap
|
||||||
LIBS += -L../plugins/deviceplugins/lircd -lguh_devicepluginlircd
|
LIBS += -L../plugins/deviceplugins/lircd -lguh_devicepluginlircd
|
||||||
|
LIBS += -L../plugins/deviceplugins/googlemail -lguh_deviceplugingooglemail
|
||||||
|
|
||||||
boblight {
|
boblight {
|
||||||
xcompile {
|
xcompile {
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "stateevaluator.h"
|
#include "stateevaluator.h"
|
||||||
|
|
||||||
StateEvaluator::StateEvaluator()
|
StateEvaluator::StateEvaluator()
|
||||||
|
|||||||
@ -1,3 +1,21 @@
|
|||||||
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
|
* *
|
||||||
|
* This file is part of guh. *
|
||||||
|
* *
|
||||||
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
|
* it under the terms of the GNU General Public License as published by *
|
||||||
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
|
* *
|
||||||
|
* Guh 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 General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
|
* *
|
||||||
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef STATEEVALUATOR_H
|
#ifndef STATEEVALUATOR_H
|
||||||
#define STATEEVALUATOR_H
|
#define STATEEVALUATOR_H
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "tcpserver.h"
|
#include "tcpserver.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef TCPSERVER_H
|
#ifndef TCPSERVER_H
|
||||||
#define TCPSERVER_H
|
#define TCPSERVER_H
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#include "mocktcpserver.h"
|
#include "mocktcpserver.h"
|
||||||
|
|
||||||
|
|||||||
@ -1,20 +1,20 @@
|
|||||||
/****************************************************************************
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
* *
|
* *
|
||||||
* This file is part of guh. *
|
* This file is part of guh. *
|
||||||
* *
|
* *
|
||||||
* Guh is free software: you can redistribute it and/or modify *
|
* Guh is free software: you can redistribute it and/or modify *
|
||||||
* it under the terms of the GNU General Public License as published by *
|
* it under the terms of the GNU General Public License as published by *
|
||||||
* the Free Software Foundation, version 2 of the License. *
|
* the Free Software Foundation, version 2 of the License. *
|
||||||
* *
|
* *
|
||||||
* Guh is distributed in the hope that it will be useful, *
|
* Guh is distributed in the hope that it will be useful, *
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
* GNU General Public License for more details. *
|
* GNU General Public License for more details. *
|
||||||
* *
|
* *
|
||||||
* You should have received a copy of the GNU General Public License *
|
* You should have received a copy of the GNU General Public License *
|
||||||
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
* along with guh. If not, see <http://www.gnu.org/licenses/>. *
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
#ifndef MOCKTCPSERVER_H
|
#ifndef MOCKTCPSERVER_H
|
||||||
#define MOCKTCPSERVER_H
|
#define MOCKTCPSERVER_H
|
||||||
|
|||||||
@ -29,12 +29,9 @@ else
|
|||||||
elif [ $2 == "mock2" ]; then
|
elif [ $2 == "mock2" ]; then
|
||||||
# Adds a Mock device
|
# Adds a Mock device
|
||||||
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{753f0d32-0468-4d08-82ed-1964aab03298}","deviceParams":{"httpport":"8082"}}}'; sleep 1) | nc $1 1234
|
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{753f0d32-0468-4d08-82ed-1964aab03298}","deviceParams":{"httpport":"8082"}}}'; sleep 1) | nc $1 1234
|
||||||
# elif [ $2 == "weatherground" ]; then
|
|
||||||
# # Adds a weatherground device
|
|
||||||
# (echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{af2e15f0-650e-4452-b379-fa76a2dc46c6}","deviceParams":{"autodetect":"true"}}}'; sleep 1) | nc $1 1234
|
|
||||||
elif [ $2 == "openweathermap" ]; then
|
elif [ $2 == "openweathermap" ]; then
|
||||||
# Adds a openweathermap device
|
# Adds a openweathermap device
|
||||||
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{985195aa-17ad-4530-88a4-cdd753d747d7}","deviceParams":{"location":""}}}'; sleep 1) | nc $1 1234
|
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{985195aa-17ad-4530-88a4-cdd753d747d7}","deviceDescriptorId":"'$4'"}}'; sleep 1) | nc $1 1234
|
||||||
elif [ $2 == "lirc" ]; then
|
elif [ $2 == "lirc" ]; then
|
||||||
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{5c2bc4cd-ba6c-4052-b6cd-1db83323ea22}","deviceParams":{"remoteName":"'$3'"}}}'; sleep 1) | nc $1 1234
|
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{5c2bc4cd-ba6c-4052-b6cd-1db83323ea22}","deviceParams":{"remoteName":"'$3'"}}}'; sleep 1) | nc $1 1234
|
||||||
elif [ $2 == "discovered" ]; then
|
elif [ $2 == "discovered" ]; then
|
||||||
|
|||||||
7
tests/scripts/addgooglemail.sh
Executable file
7
tests/scripts/addgooglemail.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
echo "usage: $0 host user password sendTo"
|
||||||
|
else
|
||||||
|
(echo '{"id":1, "method":"Devices.AddConfiguredDevice", "params":{"deviceClassId": "{38ed6ffc-f43b-48f8-aea2-8d63cdcad87e}","deviceParams":{"user":"'$2'", "password":"'$3'", "sendTo":"'$4'"}}}'; sleep 1) | nc $1 1234
|
||||||
|
fi
|
||||||
7
tests/scripts/sendmail.sh
Executable file
7
tests/scripts/sendmail.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z $1 ]; then
|
||||||
|
echo "usage: $0 host deviceId subject body"
|
||||||
|
else
|
||||||
|
(echo '{"id":1, "method":"Actions.ExecuteAction","params":{"actionTypeId": "{fa54f834-34d0-4aaf-b0ab-a165191d39d3}", "deviceId":"{'$2'}","params":{"subject":"'$3'", "body":"'$4'"}}}'; sleep 1) | nc $1 1234
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user