Fix include header order according to Google style guidelines "build/include_order"
This commit is contained in:
parent
75f21588e5
commit
3a0cee353a
37 changed files with 97 additions and 85 deletions
|
@ -5,10 +5,10 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "common/Event.h"
|
#include "common/Event.h"
|
||||||
|
#include <list>
|
||||||
#include "common/EventHandler.h"
|
#include "common/EventHandler.h"
|
||||||
#include "common/Mutex.h"
|
#include "common/Mutex.h"
|
||||||
|
|
||||||
#include <list>
|
|
||||||
|
|
||||||
using namespace TelldusCore;
|
using namespace TelldusCore;
|
||||||
|
|
||||||
|
|
|
@ -7,15 +7,14 @@
|
||||||
#ifndef TELLDUS_CORE_COMMON_EVENT_H_
|
#ifndef TELLDUS_CORE_COMMON_EVENT_H_
|
||||||
#define TELLDUS_CORE_COMMON_EVENT_H_
|
#define TELLDUS_CORE_COMMON_EVENT_H_
|
||||||
|
|
||||||
#include "Thread.h"
|
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifndef _WINDOWS
|
||||||
#include <windows.h>
|
#include <tr1/memory>
|
||||||
#include <memory>
|
|
||||||
typedef HANDLE EVENT_T;
|
|
||||||
#else
|
|
||||||
#include <tr1/memory>
|
|
||||||
typedef void* EVENT_T;
|
typedef void* EVENT_T;
|
||||||
|
#else
|
||||||
|
#include <windows.h>
|
||||||
|
#include <memory>
|
||||||
|
typedef HANDLE EVENT_T;
|
||||||
#endif
|
#endif
|
||||||
#include "common/Thread.h"
|
#include "common/Thread.h"
|
||||||
|
|
||||||
|
|
|
@ -4,16 +4,15 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
#include "common/Message.h"
|
||||||
#include <wctype.h>
|
#include <wctype.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include "common/Message.h"
|
|
||||||
#include "common/Socket.h"
|
#include "common/Socket.h"
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
|
|
||||||
using namespace TelldusCore;
|
using namespace TelldusCore;
|
||||||
|
|
||||||
|
|
||||||
Message::Message()
|
Message::Message()
|
||||||
: std::wstring() {
|
: std::wstring() {
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,6 @@
|
||||||
#ifndef TELLDUS_CORE_COMMON_SOCKET_H_
|
#ifndef TELLDUS_CORE_COMMON_SOCKET_H_
|
||||||
#define TELLDUS_CORE_COMMON_SOCKET_H_
|
#define TELLDUS_CORE_COMMON_SOCKET_H_
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
typedef HANDLE SOCKET_T;
|
typedef HANDLE SOCKET_T;
|
||||||
|
@ -16,6 +14,8 @@
|
||||||
typedef int SOCKET_T;
|
typedef int SOCKET_T;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace TelldusCore {
|
namespace TelldusCore {
|
||||||
class Socket {
|
class Socket {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
//
|
//
|
||||||
|
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
#include <algorithm>
|
|
||||||
#include <sstream>
|
|
||||||
#include <string>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
@ -17,6 +14,10 @@
|
||||||
#else
|
#else
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <algorithm>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
|
||||||
#ifdef _MACOSX
|
#ifdef _MACOSX
|
||||||
#define WCHAR_T_ENCODING "UCS-4-INTERNAL"
|
#define WCHAR_T_ENCODING "UCS-4-INTERNAL"
|
||||||
|
|
|
@ -7,7 +7,6 @@
|
||||||
#ifndef TELLDUS_CORE_COMMON_STRINGS_H_
|
#ifndef TELLDUS_CORE_COMMON_STRINGS_H_
|
||||||
#define TELLDUS_CORE_COMMON_STRINGS_H_
|
#define TELLDUS_CORE_COMMON_STRINGS_H_
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
typedef unsigned __int8 uint8_t;
|
typedef unsigned __int8 uint8_t;
|
||||||
|
@ -17,6 +16,7 @@ typedef unsigned __int64 uint64_t;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <string>
|
||||||
|
|
||||||
namespace TelldusCore {
|
namespace TelldusCore {
|
||||||
std::wstring charToWstring(const char *value);
|
std::wstring charToWstring(const char *value);
|
||||||
|
|
|
@ -16,12 +16,11 @@
|
||||||
#else
|
#else
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
#include "Strings.h"
|
#include <stdarg.h>
|
||||||
#include <fstream>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <fstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <stdarg.h>
|
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
|
|
||||||
inline void msleep( const int msec) {
|
inline void msleep( const int msec) {
|
||||||
|
|
|
@ -4,13 +4,14 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "ClientCommunicationHandler.h"
|
#include "service/ClientCommunicationHandler.h"
|
||||||
#include "common/Message.h"
|
|
||||||
#include "common/Strings.h"
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "common/Message.h"
|
||||||
|
#include "common/Strings.h"
|
||||||
|
|
||||||
class ClientCommunicationHandler::PrivateData {
|
class ClientCommunicationHandler::PrivateData {
|
||||||
public:
|
public:
|
||||||
TelldusCore::Socket *clientSocket;
|
TelldusCore::Socket *clientSocket;
|
||||||
|
|
|
@ -4,19 +4,17 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ConnectionListener.h"
|
|
||||||
#include "common/Socket.h"
|
|
||||||
|
|
||||||
#include <string>
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
#include <sys/un.h>
|
#include <sys/un.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "service/ConnectionListener.h"
|
||||||
|
#include "common/Socket.h"
|
||||||
|
|
||||||
class ConnectionListener::PrivateData {
|
class ConnectionListener::PrivateData {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_CONTROLLER_H_
|
#ifndef TELLDUS_CORE_SERVICE_CONTROLLER_H_
|
||||||
#define TELLDUS_CORE_SERVICE_CONTROLLER_H_
|
#define TELLDUS_CORE_SERVICE_CONTROLLER_H_
|
||||||
|
|
||||||
#include "common/Event.h"
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "common/Event.h"
|
||||||
|
|
||||||
class ControllerEventData : public TelldusCore::EventDataBase {
|
class ControllerEventData : public TelldusCore::EventDataBase {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ControllerManager.h"
|
#include "service/ControllerManager.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include "service/Controller.h"
|
#include "service/Controller.h"
|
||||||
#include "common/Mutex.h"
|
#include "common/Mutex.h"
|
||||||
#include "service/TellStick.h"
|
#include "service/TellStick.h"
|
||||||
|
@ -15,9 +21,6 @@
|
||||||
#include "service/EventUpdateManager.h"
|
#include "service/EventUpdateManager.h"
|
||||||
#include "client/telldus-core.h"
|
#include "client/telldus-core.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
class ControllerDescriptor {
|
class ControllerDescriptor {
|
||||||
public:
|
public:
|
||||||
std::wstring name, serial;
|
std::wstring name, serial;
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_CONTROLLERMANAGER_H_
|
#ifndef TELLDUS_CORE_SERVICE_CONTROLLERMANAGER_H_
|
||||||
#define TELLDUS_CORE_SERVICE_CONTROLLERMANAGER_H_
|
#define TELLDUS_CORE_SERVICE_CONTROLLERMANAGER_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include "common/Event.h"
|
#include "common/Event.h"
|
||||||
class Controller;
|
class Controller;
|
||||||
|
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class ControllerManager {
|
class ControllerManager {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -5,13 +5,12 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ControllerMessage.h"
|
#include "service/ControllerMessage.h"
|
||||||
|
#include <map>
|
||||||
|
#include <string>
|
||||||
#include "service/Device.h"
|
#include "service/Device.h"
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
|
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
|
|
||||||
class ControllerMessage::PrivateData {
|
class ControllerMessage::PrivateData {
|
||||||
public:
|
public:
|
||||||
std::map<std::string, std::string> parameters;
|
std::map<std::string, std::string> parameters;
|
||||||
|
|
|
@ -7,11 +7,11 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_DEVICE_H_
|
#ifndef TELLDUS_CORE_SERVICE_DEVICE_H_
|
||||||
#define TELLDUS_CORE_SERVICE_DEVICE_H_
|
#define TELLDUS_CORE_SERVICE_DEVICE_H_
|
||||||
|
|
||||||
|
#include <list>
|
||||||
|
#include <string>
|
||||||
#include "service/Controller.h"
|
#include "service/Controller.h"
|
||||||
#include "common/Mutex.h"
|
#include "common/Mutex.h"
|
||||||
#include "service/Protocol.h"
|
#include "service/Protocol.h"
|
||||||
#include <string>
|
|
||||||
#include <list>
|
|
||||||
|
|
||||||
class Device : public TelldusCore::Mutex {
|
class Device : public TelldusCore::Mutex {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -5,6 +5,14 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/DeviceManager.h"
|
#include "service/DeviceManager.h"
|
||||||
|
#include <time.h>
|
||||||
|
#include <list>
|
||||||
|
#include <map>
|
||||||
|
#include <memory>
|
||||||
|
#include <set>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include "service/ControllerMessage.h"
|
#include "service/ControllerMessage.h"
|
||||||
#include "common/Mutex.h"
|
#include "common/Mutex.h"
|
||||||
#include "service/Sensor.h"
|
#include "service/Sensor.h"
|
||||||
|
@ -13,11 +21,6 @@
|
||||||
#include "common/Message.h"
|
#include "common/Message.h"
|
||||||
#include "service/Log.h"
|
#include "service/Log.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <memory>
|
|
||||||
#include <sstream>
|
|
||||||
#include <time.h>
|
|
||||||
|
|
||||||
typedef std::map<int, Device *> DeviceMap;
|
typedef std::map<int, Device *> DeviceMap;
|
||||||
|
|
||||||
class DeviceManager::PrivateData {
|
class DeviceManager::PrivateData {
|
||||||
|
|
|
@ -7,12 +7,12 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_DEVICEMANAGER_H_
|
#ifndef TELLDUS_CORE_SERVICE_DEVICEMANAGER_H_
|
||||||
#define TELLDUS_CORE_SERVICE_DEVICEMANAGER_H_
|
#define TELLDUS_CORE_SERVICE_DEVICEMANAGER_H_
|
||||||
|
|
||||||
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "service/Device.h"
|
#include "service/Device.h"
|
||||||
#include "service/ControllerManager.h"
|
#include "service/ControllerManager.h"
|
||||||
#include "service/ControllerMessage.h"
|
#include "service/ControllerMessage.h"
|
||||||
#include "service/EventUpdateManager.h"
|
#include "service/EventUpdateManager.h"
|
||||||
#include <set>
|
|
||||||
|
|
||||||
class Sensor;
|
class Sensor;
|
||||||
|
|
||||||
|
|
|
@ -6,14 +6,14 @@
|
||||||
//
|
//
|
||||||
#include "service/EventUpdateManager.h"
|
#include "service/EventUpdateManager.h"
|
||||||
|
|
||||||
|
#include <list>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "service/ConnectionListener.h"
|
#include "service/ConnectionListener.h"
|
||||||
#include "common/EventHandler.h"
|
#include "common/EventHandler.h"
|
||||||
#include "common/Message.h"
|
#include "common/Message.h"
|
||||||
#include "common/Socket.h"
|
#include "common/Socket.h"
|
||||||
|
|
||||||
#include <list>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
typedef std::list<TelldusCore::Socket *> SocketList;
|
typedef std::list<TelldusCore::Socket *> SocketList;
|
||||||
|
|
||||||
class EventUpdateManager::PrivateData {
|
class EventUpdateManager::PrivateData {
|
||||||
|
|
|
@ -5,8 +5,11 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/Protocol.h"
|
#include "service/Protocol.h"
|
||||||
#include "client/telldus-core.h"
|
#include <list>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#include "client/telldus-core.h"
|
||||||
#include "service/ControllerMessage.h"
|
#include "service/ControllerMessage.h"
|
||||||
#include "service/ProtocolBrateck.h"
|
#include "service/ProtocolBrateck.h"
|
||||||
#include "service/ProtocolComen.h"
|
#include "service/ProtocolComen.h"
|
||||||
|
@ -27,9 +30,7 @@
|
||||||
#include "service/ProtocolWaveman.h"
|
#include "service/ProtocolWaveman.h"
|
||||||
#include "service/ProtocolX10.h"
|
#include "service/ProtocolX10.h"
|
||||||
#include "service/ProtocolYidong.h"
|
#include "service/ProtocolYidong.h"
|
||||||
|
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
class Protocol::PrivateData {
|
class Protocol::PrivateData {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_PROTOCOLCOMEN_H_
|
#ifndef TELLDUS_CORE_SERVICE_PROTOCOLCOMEN_H_
|
||||||
#define TELLDUS_CORE_SERVICE_PROTOCOLCOMEN_H_
|
#define TELLDUS_CORE_SERVICE_PROTOCOLCOMEN_H_
|
||||||
|
|
||||||
#include "service/ProtocolNexa.h"
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "service/ProtocolNexa.h"
|
||||||
|
|
||||||
class ProtocolComen : public ProtocolNexa {
|
class ProtocolComen : public ProtocolNexa {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -4,11 +4,11 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "ProtocolEverflourish.h"
|
#include "service/ProtocolEverflourish.h"
|
||||||
#include <sstream>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "service/ControllerMessage.h"
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "service/ControllerMessage.h"
|
||||||
|
|
||||||
int ProtocolEverflourish::methods() const {
|
int ProtocolEverflourish::methods() const {
|
||||||
return TELLSTICK_TURNON | TELLSTICK_TURNOFF | TELLSTICK_LEARN;
|
return TELLSTICK_TURNON | TELLSTICK_TURNOFF | TELLSTICK_LEARN;
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolFineoffset.h"
|
#include "service/ProtocolFineoffset.h"
|
||||||
#include "common/Strings.h"
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sstream>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
#include "common/Strings.h"
|
||||||
|
|
||||||
std::string ProtocolFineoffset::decodeData(ControllerMessage &dataMsg) {
|
std::string ProtocolFineoffset::decodeData(ControllerMessage &dataMsg) {
|
||||||
std::string data = dataMsg.getParameter("data");
|
std::string data = dataMsg.getParameter("data");
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolHasta.h"
|
#include "service/ProtocolHasta.h"
|
||||||
#include <sstream>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
int ProtocolHasta::methods() const {
|
int ProtocolHasta::methods() const {
|
||||||
return TELLSTICK_UP | TELLSTICK_DOWN | TELLSTICK_STOP | TELLSTICK_LEARN;
|
return TELLSTICK_UP | TELLSTICK_DOWN | TELLSTICK_STOP | TELLSTICK_LEARN;
|
||||||
|
|
|
@ -5,10 +5,10 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolIkea.h"
|
#include "service/ProtocolIkea.h"
|
||||||
#include "common/Strings.h"
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <string>
|
||||||
|
#include "common/Strings.h"
|
||||||
|
|
||||||
int ProtocolIkea::methods() const {
|
int ProtocolIkea::methods() const {
|
||||||
return TELLSTICK_TURNON | TELLSTICK_TURNOFF | TELLSTICK_DIM;
|
return TELLSTICK_TURNON | TELLSTICK_TURNOFF | TELLSTICK_DIM;
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolMandolyn.h"
|
#include "service/ProtocolMandolyn.h"
|
||||||
#include "common/Strings.h"
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sstream>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
#include "common/Strings.h"
|
||||||
|
|
||||||
std::string ProtocolMandolyn::decodeData(ControllerMessage &dataMsg) {
|
std::string ProtocolMandolyn::decodeData(ControllerMessage &dataMsg) {
|
||||||
std::string data = dataMsg.getParameter("data");
|
std::string data = dataMsg.getParameter("data");
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include "service/ProtocolNexa.h"
|
#include "service/ProtocolNexa.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
#include "service/TellStick.h"
|
#include "service/TellStick.h"
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,9 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_PROTOCOLNEXA_H_
|
#ifndef TELLDUS_CORE_SERVICE_PROTOCOLNEXA_H_
|
||||||
#define TELLDUS_CORE_SERVICE_PROTOCOLNEXA_H_
|
#define TELLDUS_CORE_SERVICE_PROTOCOLNEXA_H_
|
||||||
|
|
||||||
|
#include <string>
|
||||||
#include "service/ControllerMessage.h"
|
#include "service/ControllerMessage.h"
|
||||||
#include "service/Device.h"
|
#include "service/Device.h"
|
||||||
#include <string>
|
|
||||||
|
|
||||||
class ProtocolNexa : public Protocol {
|
class ProtocolNexa : public Protocol {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -5,10 +5,11 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolOregon.h"
|
#include "service/ProtocolOregon.h"
|
||||||
#include "common/Strings.h"
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <sstream>
|
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
#include "common/Strings.h"
|
||||||
|
|
||||||
std::string ProtocolOregon::decodeData(ControllerMessage &dataMsg) {
|
std::string ProtocolOregon::decodeData(ControllerMessage &dataMsg) {
|
||||||
std::string data = dataMsg.getParameter("data");
|
std::string data = dataMsg.getParameter("data");
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolSartano.h"
|
#include "service/ProtocolSartano.h"
|
||||||
#include <sstream>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
int ProtocolSartano::methods() const {
|
int ProtocolSartano::methods() const {
|
||||||
return TELLSTICK_TURNON | TELLSTICK_TURNOFF;
|
return TELLSTICK_TURNON | TELLSTICK_TURNOFF;
|
||||||
|
|
|
@ -5,8 +5,9 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/ProtocolWaveman.h"
|
#include "service/ProtocolWaveman.h"
|
||||||
#include <sstream>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <sstream>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
int ProtocolWaveman::lastArctecCodeSwitchWasTurnOff=0;
|
int ProtocolWaveman::lastArctecCodeSwitchWasTurnOff=0;
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,10 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/Sensor.h"
|
#include "service/Sensor.h"
|
||||||
|
#include <map>
|
||||||
|
#include <string>
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
#include "client/telldus-core.h"
|
#include "client/telldus-core.h"
|
||||||
#include <map>
|
|
||||||
|
|
||||||
class Sensor::PrivateData {
|
class Sensor::PrivateData {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
#ifndef TELLDUS_CORE_SERVICE_SENSOR_H_
|
#ifndef TELLDUS_CORE_SERVICE_SENSOR_H_
|
||||||
#define TELLDUS_CORE_SERVICE_SENSOR_H_
|
#define TELLDUS_CORE_SERVICE_SENSOR_H_
|
||||||
|
|
||||||
#include "common/Mutex.h"
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include "common/Mutex.h"
|
||||||
|
|
||||||
class Sensor : public TelldusCore::Mutex {
|
class Sensor : public TelldusCore::Mutex {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -4,16 +4,15 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "Settings.h"
|
|
||||||
#include "client/telldus-core.h"
|
|
||||||
#include "service/Settings.h"
|
|
||||||
#include "service/SettingsConfusePaths.h"
|
|
||||||
#include "client/telldus-core.h"
|
|
||||||
#include "common/Strings.h"
|
|
||||||
#include <confuse.h>
|
#include <confuse.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
#include <string>
|
||||||
|
#include "service/Settings.h"
|
||||||
|
#include "service/SettingsConfusePaths.h"
|
||||||
|
#include "client/telldus-core.h"
|
||||||
|
#include "common/Strings.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,9 @@
|
||||||
//
|
//
|
||||||
#include "service/TellStick.h"
|
#include "service/TellStick.h"
|
||||||
|
|
||||||
#include <map>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <map>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
std::string TellStick::createTPacket( const std::string &msg ) {
|
std::string TellStick::createTPacket( const std::string &msg ) {
|
||||||
std::map<unsigned char, char> times;
|
std::map<unsigned char, char> times;
|
||||||
|
|
|
@ -4,24 +4,23 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/TellStick.h"
|
#include <ftdi.h>
|
||||||
#include "client/telldus-core.h"
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <ftdi.h>
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "service/TellStick.h"
|
||||||
#include "service/Log.h"
|
#include "service/Log.h"
|
||||||
#include "service/Settings.h"
|
#include "service/Settings.h"
|
||||||
|
#include "client/telldus-core.h"
|
||||||
#include "common/Thread.h"
|
#include "common/Thread.h"
|
||||||
#include "common/Mutex.h"
|
#include "common/Mutex.h"
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
#include "common/common.h"
|
#include "common/common.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
typedef struct _EVENT_HANDLE {
|
typedef struct _EVENT_HANDLE {
|
||||||
pthread_cond_t eCondVar;
|
pthread_cond_t eCondVar;
|
||||||
pthread_mutex_t eMutex;
|
pthread_mutex_t eMutex;
|
||||||
|
|
|
@ -5,6 +5,11 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/TelldusMain.h"
|
#include "service/TelldusMain.h"
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <list>
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
#include "service/ConnectionListener.h"
|
#include "service/ConnectionListener.h"
|
||||||
#include "common/EventHandler.h"
|
#include "common/EventHandler.h"
|
||||||
#include "service/ClientCommunicationHandler.h"
|
#include "service/ClientCommunicationHandler.h"
|
||||||
|
@ -15,9 +20,6 @@
|
||||||
#include "service/Timer.h"
|
#include "service/Timer.h"
|
||||||
#include "service/Log.h"
|
#include "service/Log.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <list>
|
|
||||||
#include <memory>
|
|
||||||
|
|
||||||
class TelldusMain::PrivateData {
|
class TelldusMain::PrivateData {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/Timer.h"
|
#include "service/Timer.h"
|
||||||
#include "common/Mutex.h"
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include "common/Mutex.h"
|
||||||
|
|
||||||
class Timer::PrivateData {
|
class Timer::PrivateData {
|
||||||
public:
|
public:
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
// Copyright: See COPYING file that comes with this distribution
|
// Copyright: See COPYING file that comes with this distribution
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
#include "service/TelldusMain.h"
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -16,6 +15,7 @@
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#include "service/TelldusMain.h"
|
||||||
#include "service/Settings.h"
|
#include "service/Settings.h"
|
||||||
#include "common/Strings.h"
|
#include "common/Strings.h"
|
||||||
#include "service/Log.h"
|
#include "service/Log.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue