Add licence notices and remove needless comments 16/169416/2
authorLukasz Wlazly <l.wlazly@partner.samsung.com>
Tue, 6 Feb 2018 10:44:23 +0000 (11:44 +0100)
committerLukasz Wlazly <l.wlazly@partner.samsung.com>
Tue, 6 Feb 2018 12:47:08 +0000 (13:47 +0100)
Change-Id: I19854ab57d780b73ccac347e2ba59a3848f05cf9

26 files changed:
src/Configuration.hpp
src/DBus.cpp
src/DoneCallback.cpp
src/DoneCallback.hpp
src/NavigationInterface.cpp
src/RotateActivity.cpp
src/ScreenScannerManager.cpp
src/ScreenSwitchProvider.cpp
src/ScreenshotActivity.cpp
src/SwitchManager.cpp
src/batch/Dlog.cpp
src/batch/Dlog.hpp
src/batch/EvaluationValueBase.cpp
src/batch/EvaluationValueBoolean.cpp
src/batch/EvaluationValueDict.cpp
src/batch/EvaluationValueDouble.cpp
src/batch/EvaluationValueFunction.cpp
src/batch/EvaluationValueInteger.cpp
src/batch/EvaluationValuePoint.cpp
src/batch/EvaluationValueSet.cpp
src/batch/EvaluationValueString.cpp
src/batch/EvaluationValueUIElement.cpp
src/batch/EvaluationValueVector.cpp
src/batch/EvaluationValueWait.cpp
src/batch/Evaluator.cpp
src/batch/Monitor.hpp

index e307c2e..17f6d54 100644 (file)
@@ -33,7 +33,6 @@ public:
        virtual void update(const std::shared_ptr<SwitchConfigurationItem> &item) = 0;
        virtual void remove(const std::string &switchId) = 0;
        virtual std::shared_ptr<SwitchConfigurationItem> findBySwitchId(const std::string &switchId) const = 0;
-       // virtual std::vector<std::shared_ptr<SwitchConfigurationItem>> findByProviderId(const std::string &providerId) const = 0;
        virtual std::vector<std::shared_ptr<SwitchConfigurationItem>> findAll() const = 0;
 };
 
index e0a73f1..0f261be 100644 (file)
@@ -41,7 +41,6 @@ void DBus::detail::emitNotification(const char *bus, const char *path, const cha
        }
 }
 
-
 void DBus::setDebugPrinter(std::function<void(const char *, size_t)> printer)
 {
        std::lock_guard<std::mutex> lock(debugLock);
index 6b70d56..ffbc6bb 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "DoneCallback.hpp"
 #include "ecore.hpp"
 #include "UniversalSwitch.hpp"
index 0f05440..2c8665d 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #ifndef DONE_CALLBACK_HPP
 #define DONE_CALLBACK_HPP
 
index 44aa6b2..34381c8 100644 (file)
@@ -95,11 +95,6 @@ class NavigationImpl : public NavigationInterface
 public:
        NavigationImpl()
        {
-#ifdef DEBUG_DEBUGS_WANTED
-               // DBus::setDebugPrinter([](auto str, auto strLen) {
-               //      DEBUG("%s", std::string(str, strLen).c_str());
-               // });
-#endif
                watchHandle = Singleton<UniversalSwitch>::instance().getAtspi()->registerWatcherForAllObjects(
                [this](const auto & src, auto eventType) {
                        this->onAtspiEvent(src, eventType);
index c44e4e7..227e164 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "Activity.hpp"
 #include "ActivityFactory.hpp"
 #include "UniversalSwitchLog.hpp"
index 9f02cd3..7a300e7 100644 (file)
@@ -181,7 +181,6 @@ void ScreenScannerManager::prev()
        screenScanner->prev();
 }
 
-
 void ScreenScannerManager::acceptAutoscanning()
 {
        Optional<std::shared_ptr<UIElement>> element;
index d3224a7..2b735bc 100644 (file)
@@ -51,7 +51,7 @@ void ScreenSwitchProvider::disable()
 
 void ScreenSwitchProvider::onTouch(int pointerIndex)
 {
-       if (!isSingleTouch(pointerIndex)) // ignoring events from pointers with index higher than 0
+       if (!isSingleTouch(pointerIndex))
                return;
 
        auto sw = switches[0];
@@ -64,7 +64,7 @@ void ScreenSwitchProvider::onTouch(int pointerIndex)
 
 void ScreenSwitchProvider::onRelease(int pointerIndex)
 {
-       if (!isSingleTouch(pointerIndex)) // ignoring events from pointers with index higher than 0
+       if (!isSingleTouch(pointerIndex))
                return;
 
        interactionManager.stopInteraction(switches[0]);
index e570f3a..9868b0a 100644 (file)
@@ -33,7 +33,7 @@
 #include <iomanip>
 #include <sstream>
 
-/* TODO This class should be refactored, and should use some external functionality through, dbus or Application Control , when such funcionality will be avalible */
+/* TODO This class should be refactored, and should use some external functionality through, dbus or Application Control, when such funcionality will be avalible */
 
 class ScreenshotActivity : public UIActivity, private RegisterActivity<ScreenshotActivity>
 {
index cb1bfa9..a79fa0e 100644 (file)
@@ -67,7 +67,6 @@ void SwitchManager::terminate()
        }
 }
 
-
 void SwitchManager::update(const std::shared_ptr<SwitchConfigurationItem> &item)
 {
        DEBUG("notified with item: %s", item->getSwitchId().c_str());
index 80bb4d8..f188843 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "Dlog.hpp"
 #include "../UniversalSwitchLog.hpp"
 #include <sys/types.h>
@@ -117,4 +133,4 @@ bool Dlog::start()
                        close(dlogFile);
                } };
        return true;
-}
\ No newline at end of file
+}
index e0d4e1d..0764e09 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #ifndef DLOG_HPP
 #define DLOG_HPP
 
index 1b6c37c..e238715 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 #include "EvaluationValue.hpp"
 #include "../UniversalSwitchLog.hpp"
index 6191647..61d7305 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueBooleanImpl : public EvaluationValueBase
index 6f86763..db0f083 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueDictImpl : public EvaluationValueBase
index 78c1db0..d1f868e 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueDoubleImpl : public EvaluationValueBase
index 452b999..12f4f02 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 #include "EvaluationContext.hpp"
 
index 21afd78..9ed8581 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueIntegerImpl : public EvaluationValueBase
index ccdd026..5856f2f 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 #include "EvaluationContext.hpp"
 #include "../Geometry.hpp"
index f65a434..ece6358 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueSetImpl : public EvaluationValueBase
index 53a8b1f..a40a34e 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 #include "EvaluationContext.hpp"
 #include "../Geometry.hpp"
index 94e750b..9507a3d 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 #include "EvaluationContext.hpp"
 #include "../UIElement.hpp"
index bc07a4c..d6ccce8 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueVectorImpl : public EvaluationValueBase
index 27af861..c450db1 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #include "EvaluationValueBase.hpp"
 
 class EvaluationValueWaitImpl : public EvaluationValueBase
index 49bd4a0..ffad3d0 100644 (file)
@@ -147,7 +147,6 @@ void AttributeEvaluator::printSelfInfo(std::ostringstream &os, unsigned int dept
        self->printSelfInfo(os, depth + 1);
 }
 
-
 AttributeSetterEvaluator::AttributeSetterEvaluator(TokenLocation tokenLocation, ExprPtr self, std::string identifier, ExprPtr value) :
        ExpressionEvaluator(std::move(tokenLocation)), self(std::move(self)), value(std::move(value)), identifier(std::move(identifier)) { }
 
@@ -167,6 +166,7 @@ void AttributeSetterEvaluator::printSelfInfo(std::ostringstream &os, unsigned in
 }
 
 
+
 SetterEvaluator::SetterEvaluator(TokenLocation tokenLocation, std::string identifier, ExprPtr value) :
        ExpressionEvaluator(std::move(tokenLocation)), value(std::move(value)), identifier(std::move(identifier)) { }
 
@@ -185,6 +185,7 @@ void SetterEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth)
 }
 
 
+
 PointEvaluator::PointEvaluator(TokenLocation tokenLocation, ExprPtr x, ExprPtr y) :
        ExpressionEvaluator(std::move(tokenLocation)), x(std::move(x)), y(std::move(y)) { }
 
@@ -205,6 +206,7 @@ void PointEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth) c
 }
 
 
+
 IntegerEvaluator::IntegerEvaluator(TokenLocation tokenLocation, int64_t value) :
        ExpressionEvaluator(std::move(tokenLocation)), value(value) { }
 
@@ -219,6 +221,7 @@ void IntegerEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth)
 }
 
 
+
 DoubleEvaluator::DoubleEvaluator(TokenLocation tokenLocation, double value) :
        ExpressionEvaluator(std::move(tokenLocation)), value(value) { }
 
@@ -233,6 +236,7 @@ void DoubleEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth)
 }
 
 
+
 StringEvaluator::StringEvaluator(TokenLocation tokenLocation, std::string value) :
        ExpressionEvaluator(std::move(tokenLocation)), value(std::move(value)) { }
 
@@ -305,6 +309,7 @@ void ArraySetDictEvaluator::printSelfInfo(std::ostringstream &os, unsigned int d
 }
 
 
+
 OperatorEvaluator::OperatorEvaluator(TokenLocation tokenLocation, ExprPtrs args, Kind kind) :
        ExpressionEvaluator(std::move(tokenLocation)), args(std::move(args)), kind(kind) { }
 
@@ -434,10 +439,6 @@ void CompOperatorEvaluator::printSelfInfo(std::ostringstream &os, unsigned int d
 
 
 
-
-
-
-
 BooleanEvaluator::BooleanEvaluator(TokenLocation tokenLocation, bool value) :
        ExpressionEvaluator(std::move(tokenLocation)), value(std::move(value)) { }
 
@@ -452,6 +453,7 @@ void BooleanEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth)
 }
 
 
+
 CallEvaluator::CallEvaluator(TokenLocation tokenLocation, ExprPtr function, ExprPtrs args, ExprMapPtrs keywordArgs) :
        ExpressionEvaluator(tokenLocation), function(std::move(function)), args(std::move(args)), keywordArgs(std::move(keywordArgs)) { }
 
@@ -480,6 +482,7 @@ void CallEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth) co
 }
 
 
+
 ExpressionAsStatementEvaluator::ExpressionAsStatementEvaluator(TokenLocation tokenLocation, ExprPtr expr) :
        StatementEvaluator(tokenLocation), expr(std::move(expr)) { }
 
@@ -543,5 +546,3 @@ void WaitEvaluator::printSelfInfo(std::ostringstream &os, unsigned int depth) co
                w->printSelfInfo(os, depth + 1);
        }
 }
-
-
index 7f10651..23700a0 100644 (file)
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2018  Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 #ifndef MONITOR_HPP
 #define MONITOR_HPP
 
@@ -204,4 +220,4 @@ public:
        }
 };
 
-#endif
\ No newline at end of file
+#endif