Add copyright message according to Google style guidelines "legal/copyright"

This commit is contained in:
Micke Prag 2012-06-19 10:06:47 +02:00
parent 5b5be387cd
commit 8d0228ced2
87 changed files with 504 additions and 25 deletions

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "client/Client.h"
#include <list>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CLIENT_H
#define CLIENT_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
/**
* @defgroup core telldus-core
* Telldus Core is the base module used to interface a Telldus TellStick.

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef TELLDUSCORE_H
#define TELLDUSCORE_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "common/Event.h"
#include "common/EventHandler.h"
#include "common/Mutex.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef EVENT_H
#define EVENT_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef EVENTHANDLER_H
#define EVENTHANDLER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <pthread.h>
#include <stdio.h>
#include <list>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "common/Event.h"
#include "common/EventHandler.h"
#include "common/Thread.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <wctype.h>
#include <stdlib.h>
#include <sstream>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef MESSAGE_H
#define MESSAGE_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SOCKET_H
#define SOCKET_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include <stdio.h>
#include <unistd.h>

View file

@ -1,3 +1,10 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "common/Strings.h"
#include <algorithm>
#include <sstream>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef STRING_H
#define STRING_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "ClientCommunicationHandler.h"
#include "common/Message.h"
#include "common/Strings.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CLIENTCOMMUNICATIONHANDLER_H
#define CLIENTCOMMUNICATIONHANDLER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CONNECTIONLISTENER_H
#define CONNECTIONLISTENER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ConnectionListener.h"
#include "common/Socket.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Controller.h"
#include "service/Protocol.h"
#include "service/EventUpdateManager.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CONTROLLER_H
#define CONTROLLER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CONTROLLERLISTENER_H
#define CONTROLLERLISTENER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ControllerManager.h"
#include "service/Controller.h"
#include "common/Mutex.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CONTROLLERMANAGER_H
#define CONTROLLERMANAGER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ControllerMessage.h"
#include "service/Device.h"
#include "common/Strings.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef CONTROLLERMESSAGE_H
#define CONTROLLERMESSAGE_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Device.h"
#include "service/Settings.h"
#include "service/TellStick.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef DEVICE_H
#define DEVICE_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/DeviceManager.h"
#include "service/ControllerMessage.h"
#include "common/Mutex.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef DEVICEMANAGER_H
#define DEVICEMANAGER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/EventUpdateManager.h"
#include "service/ConnectionListener.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef EVENTUPDATEMANAGER_H
#define EVENTUPDATEMANAGER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Log.h"
#include <stdarg.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef LOG_H
#define LOG_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Protocol.h"
#include "client/telldus-core.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOL_H
#define PROTOCOL_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolBrateck.h"
int ProtocolBrateck::methods() const {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLBRATECK_H
#define PROTOCOLBRATECK_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolComen.h"
int ProtocolComen::methods() const {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLCOMEN_H
#define PROTOCOLCOMEN_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "ProtocolEverflourish.h"
#include <sstream>
#include <stdio.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLEVERFLOURISH_H
#define PROTOCOLEVERFLOURISH_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolFineoffset.h"
#include "common/Strings.h"
#include <stdlib.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLFINEOFFSET_H
#define PROTOCOLFINEOFFSET_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolFuhaote.h"
int ProtocolFuhaote::methods() const {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLFUHAOTE_H
#define PROTOCOLFUHAOTE_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolGroup.h"
int ProtocolGroup::methods() const {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLGROUP_H
#define PROTOCOLGROUP_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolHasta.h"
#include <sstream>
#include <stdio.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLHASTA_H
#define PROTOCOLHASTA_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolIkea.h"
#include "common/Strings.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLIKEA_H
#define PROTOCOLIKEA_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolMandolyn.h"
#include "common/Strings.h"
#include <stdlib.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLMANDOLYN_H
#define PROTOCOLMANDOLYN_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolNexa.h"
#include <stdio.h>
#include <sstream>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLNEXA_H
#define PROTOCOLNEXA_H
@ -18,7 +24,7 @@ protected:
virtual std::string getOffCode() const;
static std::string getCodeSwitchTuple(int code);
static std::string getStringSelflearningForCode(int house, int unit, int method, unsigned char data);
private:
static int lastArctecCodeSwitchWasTurnOff;
static std::string decodeDataCodeSwitch(long allData);

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolOregon.h"
#include "common/Strings.h"
#include <stdlib.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLOREGON_H
#define PROTOCOLOREGON_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolRisingSun.h"
#include "common/Strings.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLRISINGSUN_H
#define PROTOCOLRISINGSUN_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolSartano.h"
#include <sstream>
#include <stdio.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLSARTANO_H
#define PROTOCOLSARTANO_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolScene.h"
int ProtocolScene::methods() const {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLSCENE_H
#define PROTOCOLSCENE_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolSilvanChip.h"
#include "common/Strings.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLSILVANCHIP_H
#define PROTOCOLSILVANCHIP_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolUpm.h"
int ProtocolUpm::methods() const {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLUPM_H
#define PROTOCOLUPM_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolWaveman.h"
#include <sstream>
#include <stdio.h>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLWAVEMAN_H
#define PROTOCOLWAVEMAN_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolX10.h"
#include <stdio.h>
#include <sstream>

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLX10_H
#define PROTOCOLX10_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/ProtocolYidong.h"
std::string ProtocolYidong::getStringForMethod(int method, unsigned char, Controller *) {

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef PROTOCOLYIDONG_H
#define PROTOCOLYIDONG_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Sensor.h"
#include "common/common.h"
#include "client/telldus-core.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SENSOR_H
#define SENSOR_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Settings.h"
TelldusCore::Mutex Settings::mutex;

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SETTINGS_H
#define SETTINGS_H

View file

@ -1,10 +1,5 @@
//
// C++ Implementation: telldussettingsconfuse
//
// Description:
//
//
// Author: Micke Prag <micke.prag@telldus.se>, (C) 2008
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//

View file

@ -1,10 +1,5 @@
//
// C++ Implementation: TellStick
//
// Description:
//
//
// Author: Micke Prag <micke.prag@telldus.se>, (C) 2009
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//

View file

@ -1,10 +1,5 @@
//
// C++ Interface: TellStick
//
// Description:
//
//
// Author: Micke Prag <micke.prag@telldus.se>, (C) 2010
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//

View file

@ -1,10 +1,5 @@
//
// C++ Implementation: TellStick
//
// Description:
//
//
// Author: Micke Prag <micke.prag@telldus.se>, (C) 2009
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/TelldusMain.h"
#include "service/ConnectionListener.h"
#include "common/EventHandler.h"

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef TELLDUSMAIN_H
#define TELLDUSMAIN_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/Timer.h"
#include "common/Mutex.h"
#ifdef _WINDOWS

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef TIMER_H
#define TIMER_H

View file

@ -1,3 +1,9 @@
//
// Copyright (C) 2012 Telldus Technologies AB. All rights reserved.
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "service/TelldusMain.h"
#include <signal.h>
#include <string.h>