utils: rename log.h => Log.h, remove redundant file 78/90378/2
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Thu, 29 Sep 2016 14:37:03 +0000 (16:37 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Wed, 5 Oct 2016 13:45:41 +0000 (15:45 +0200)
Change-Id: I0c0e5461b1ad6d2a28831fc748f5eb71ce2bfa7d

32 files changed:
clock/inc/Model/Alarm.h
clock/inc/Model/Counter.h
clock/inc/Utils/Log.h
clock/inc/log.h [deleted file]
clock/src/Clock.cpp
clock/src/Common/CounterAnimator.cpp
clock/src/Controller/MainController.cpp
clock/src/Model/Alarm.cpp
clock/src/Model/AlarmProviderFile.cpp
clock/src/Model/StopWatch.cpp
clock/src/Model/Timer.cpp
clock/src/Model/WorldClock.cpp
clock/src/Presenter/AlarmPresenter.cpp
clock/src/Presenter/EditAlarmPresenter.cpp
clock/src/Presenter/StopWatchPresenter.cpp
clock/src/Presenter/TimerPresenter.cpp
clock/src/Presenter/WorldClockPresenter.cpp
clock/src/Utils/BinaryFileWriter.cpp
clock/src/Utils/EventBus.cpp
clock/src/Utils/PopupManager.cpp
clock/src/Utils/Time.cpp
clock/src/View/AlarmView.cpp
clock/src/View/CounterView.cpp
clock/src/View/DeleteAlarmView.cpp
clock/src/View/EditAlarmView.cpp
clock/src/View/MainView.cpp
clock/src/View/PageView.cpp
clock/src/View/RingView.cpp
clock/src/View/StopWatchView.cpp
clock/src/View/TimerView.cpp
clock/src/View/WeekFlagsView.cpp
clock/src/View/WorldClockView.cpp

index e3cdcaa..b51d5c1 100644 (file)
@@ -8,8 +8,7 @@
 #include "Model/WeekFlags.h"
 #include "Utils/Serialization.h"
 #include "Utils/Time.h"
-
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace model {
        typedef int AlarmId;
index b120e43..abbfa3f 100644 (file)
@@ -21,7 +21,7 @@
 #include <string>
 #include <vector>
 #include <Ecore.h>
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace model {
 
index 30bc0d7..06ed9a7 100644 (file)
@@ -1,9 +1,63 @@
-#ifndef _CLOCK_LOC
-#define _CLOCK_LOC
+/*
+ * Copyright (c) 2009-2014 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * 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.
+ */
 
-namespace utils {
-       class Log {
-       };
-} /* utils */
+#ifndef __LOG_H__
+#define __LOG_H__
+
+#include <dlog.h>
+#include <app_i18n.h>
+
+/**
+ * @addtogroup Utils
+ * @{
+ */
+
+#ifdef LOG_TAG
+       #undef LOG_TAG
+#endif
+
+#define LOG_TAG "CLOCK"
+
+#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
+
+#if !defined(DBG)
+#define DBG(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
+#endif
+
+#if !defined(WRN)
+#define WRN(fmt, arg...) dlog_print(DLOG_WARN, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
+#endif
+
+#if !defined(ERR)
+#define ERR(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
+#endif
+
+#if !defined(INF)
+#define INF(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
+#endif
+
+#if !defined(FATAL)
+#define FAT(fmt, arg...) dlog_print(DLOG_FATAL, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg);
+#endif
+
+#undef _
+#define _(str) i18n_get_text(str)
+
+/**
+ * @}
+ */
 
 #endif
diff --git a/clock/inc/log.h b/clock/inc/log.h
deleted file mode 100644 (file)
index 06ed9a7..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Copyright (c) 2009-2014 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * 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 __LOG_H__
-#define __LOG_H__
-
-#include <dlog.h>
-#include <app_i18n.h>
-
-/**
- * @addtogroup Utils
- * @{
- */
-
-#ifdef LOG_TAG
-       #undef LOG_TAG
-#endif
-
-#define LOG_TAG "CLOCK"
-
-#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
-
-#if !defined(DBG)
-#define DBG(fmt, arg...) dlog_print(DLOG_DEBUG, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
-#endif
-
-#if !defined(WRN)
-#define WRN(fmt, arg...) dlog_print(DLOG_WARN, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
-#endif
-
-#if !defined(ERR)
-#define ERR(fmt, arg...) dlog_print(DLOG_ERROR, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
-#endif
-
-#if !defined(INF)
-#define INF(fmt, arg...) dlog_print(DLOG_INFO, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg)
-#endif
-
-#if !defined(FATAL)
-#define FAT(fmt, arg...) dlog_print(DLOG_FATAL, LOG_TAG, "%s: %s[%d]\t " #fmt "\n", __FILENAME__, __func__, __LINE__, ##arg);
-#endif
-
-#undef _
-#define _(str) i18n_get_text(str)
-
-/**
- * @}
- */
-
-#endif
index 99dc11f..6299fc9 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <dlog.h>
 
-#include "log.h"
+#include "Utils/Log.h"
 #include "app.h"
 #include "Clock.h"
 #include "Controller/MainController.h"
index 2411ea4..b029a29 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include "Common/CounterAnimator.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace common {
 
index 9f0c03f..8f284ac 100644 (file)
@@ -14,7 +14,7 @@
  * limitations under the License.
  */
 
-#include "log.h"
+#include "Utils/Log.h"
 #include "View/MainView.h"
 #include "Controller/MainController.h"
 #include "Utils/EventBus.h"
index e9eef2c..6582e2f 100644 (file)
@@ -1,7 +1,7 @@
 #include <app_alarm.h>
 #include "Model/Alarm.h"
 #include "Common/Defines.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace model;
 using namespace utils;
index 038696d..d7fdb46 100644 (file)
@@ -5,7 +5,7 @@
 #include <cstdlib>
 #include <algorithm>
 
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace internal;
 using namespace model;
index 280769f..0f0c7fc 100644 (file)
@@ -15,7 +15,6 @@
  */
 
 #include "Model/StopWatch.h"
-#include "log.h"
 
 namespace model {
 
index 25ce9a6..05b845a 100644 (file)
@@ -18,7 +18,7 @@
 
 #include "Model/Timer.h"
 #include "Common/Defines.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace model {
 
index bf34870..5fcec2a 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "Model/WorldClock.h"
 #include "Model/Location.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace model;
 
index 47a6fe7..f7631d1 100644 (file)
@@ -2,7 +2,7 @@
 #include "Model/AlarmProviderEvent.h"
 #include "Model/AlarmEvent.h"
 #include "Utils/EventBus.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace presenter;
 using namespace view;
index 4abf2a6..2133c68 100644 (file)
@@ -1,5 +1,5 @@
 #include "Presenter/EditAlarmPresenter.h"
-#include "log.h"
+#include "Utils/Log.h"
 #include "Model/AlarmProvider.h"
 #include "Utils/EventBus.h"
 #include "Model/AlarmEvent.h"
index b97ace6..8c2d944 100644 (file)
@@ -18,7 +18,7 @@
 #include <sstream>
 #include <cmath>
 #include "Presenter/StopWatchPresenter.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace presenter {
 
index 285884b..89bd5ae 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include "Presenter/TimerPresenter.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace presenter {
 
index d6c40cb..e5fd81f 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include "Presenter/WorldClockPresenter.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace presenter {
 
index 3f66ac7..0759b52 100644 (file)
@@ -1,6 +1,7 @@
 #include "Utils/BinaryFileWriter.h"
 
 #include <fstream>
+#include "Utils/Log.h"
 
 using namespace utils;
 using namespace std;
index 44cb84e..34c3a86 100644 (file)
@@ -1,7 +1,7 @@
 #include "Utils/EventBus.h"
 #include <algorithm>
 
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace utils;
 
index da6b015..b56b43d 100644 (file)
@@ -15,7 +15,7 @@
  */
 
 #include "Utils/PopupManager.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace utils {
 
index 4c66053..1583779 100644 (file)
@@ -1,5 +1,5 @@
 #include "Utils/Time.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 #include <utils_i18n.h>
 #include <cstring>
index 45f11dc..c0f0cb0 100644 (file)
@@ -22,7 +22,7 @@
 #include <sstream>
 #include <efl_extension.h>
 
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace view;
 using namespace model;
index bdab06b..7617752 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "View/CounterView.h"
 #include "Utils/Utils.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 #define SIGNAL_SET_COUNTER_SIMPLE "digits,set,simple"
 #define SIGNAL_SET_COUNTER_TIMER "digits,set,timer"
index 964db0c..6039c5c 100644 (file)
@@ -1,5 +1,5 @@
 #include "View/DeleteAlarmView.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 #include <sstream>
 
index 7fe6392..ee6fe7c 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <Elementary.h>
 
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace view;
 using namespace utils;
index fb4d36c..64e848a 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "Clock.h"
 #include "Utils/Utils.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 #include "Presenter/AlarmPresenter.h"
 #include "Presenter/EditAlarmPresenter.h"
index 778aaed..e5bbe59 100644 (file)
  * limitations under the License.
  */
 
-
-
 #include "Elementary.h"
 #include "View/MainView.h"
 #include "View/PageView.h"
 #include "Utils/Utils.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 #include <stdlib.h>
 
index d5752d8..c894bc0 100644 (file)
@@ -19,8 +19,7 @@
 #include "View/RingView.h"
 #include "View/MainView.h"
 #include "Utils/Utils.h"
-
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace view {
 
index 9f06b62..311c08a 100644 (file)
@@ -19,8 +19,7 @@
 #include "Presenter/StopWatchPresenter.h"
 #include "Utils/Utils.h"
 #include "Utils/PopupManager.h"
-
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace view {
 
index 11039b6..08d7dbd 100644 (file)
@@ -20,7 +20,7 @@
 #include "View/TimerView.h"
 #include "View/MainView.h"
 #include "Utils/Utils.h"
-#include "log.h"
+#include "Utils/Log.h"
 
 namespace view {
 
index 3485188..4bb8522 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <Elementary.h>
 
-#include "log.h"
+#include "Utils/Log.h"
 
 using namespace view;
 using namespace utils;
index 4705df8..567090d 100644 (file)
@@ -26,7 +26,7 @@
 #include "Model/WorldClock.h"
 #include "Utils/Utils.h"
 #include "Internal/WorldClockDefs.h"
-#include "log.h"
+#include "Utils/Log.h"
 #include "Utils/Time.h"
 
 using namespace view;