Rename files 86/139286/2
authorZofia Abramowska <z.abramowska@samsung.com>
Wed, 12 Jul 2017 16:22:26 +0000 (18:22 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Tue, 18 Jul 2017 10:06:06 +0000 (12:06 +0200)
* remove redundant ask-user- prefix
* remove askuser-notification directory
* rename ipc-lib to ipc

Change-Id: Iccfb2c4664b0aa8e05b12220b78db73fb82c8ead

32 files changed:
CMakeLists.txt
src/capi/CMakeLists.txt
src/capi/test/privacy_privilege_manager_test.cpp
src/client/CMakeLists.txt
src/client/impl/ApiInterfaceImpl.cpp
src/client/impl/ApiInterfaceImpl.h
src/client/impl/ClientCallbacks.h
src/client/impl/TryCatch.h
src/ipc/CMakeLists.txt [moved from src/ipc-lib/CMakeLists.txt with 85% similarity]
src/ipc/channel.cpp [moved from src/ipc-lib/ask-user-channel.cpp with 97% similarity]
src/ipc/channel.h [moved from src/ipc-lib/askuser-notification/ask-user-channel.h with 95% similarity]
src/ipc/client-channel.cpp [moved from src/ipc-lib/ask-user-client-channel.cpp with 95% similarity]
src/ipc/client-channel.h [moved from src/ipc-lib/askuser-notification/ask-user-client-channel.h with 96% similarity]
src/ipc/common-types.h [moved from src/ipc-lib/askuser-notification/ask-user-types.h with 100% similarity]
src/ipc/config.cpp [moved from src/ipc-lib/ask-user-config.cpp with 97% similarity]
src/ipc/config.h [moved from src/ipc-lib/ask-user-config.h with 100% similarity]
src/ipc/connection-exception.h [moved from src/ipc-lib/askuser-notification/connection-exception.h with 100% similarity]
src/ipc/credentials-exception.h [moved from src/ipc-lib/askuser-notification/credentials-exception.h with 100% similarity]
src/ipc/credentials.cpp [moved from src/ipc-lib/credentials.cpp with 94% similarity]
src/ipc/credentials.h [moved from src/ipc-lib/askuser-notification/credentials.h with 100% similarity]
src/ipc/message-utils.cpp [moved from src/ipc-lib/message-utils.cpp with 100% similarity]
src/ipc/message-utils.h [moved from src/ipc-lib/message-utils.h with 98% similarity]
src/ipc/raw-buffer.h [moved from src/ipc-lib/askuser-notification/raw-buffer.h with 100% similarity]
src/ipc/server-channel.cpp [moved from src/ipc-lib/ask-user-server-channel.cpp with 95% similarity]
src/ipc/server-channel.h [moved from src/ipc-lib/askuser-notification/ask-user-server-channel.h with 95% similarity]
src/ipc/sock-desc.h [moved from src/ipc-lib/askuser-notification/sock-desc.h with 93% similarity]
src/ipc/sock.cpp [moved from src/ipc-lib/sock.cpp with 98% similarity]
src/ipc/sock.h [moved from src/ipc-lib/askuser-notification/sock.h with 97% similarity]
src/ipc/test/main.cpp [moved from src/ipc-lib/test/main.cpp with 96% similarity]
src/notification-daemon/CMakeLists.txt
src/notification-daemon/Logic.h
src/notification-daemon/ServerCallbacks.h

index 1b81172..16aa8c0 100644 (file)
@@ -90,7 +90,7 @@ SET(TARGET_PRIVACY_PRIVILEGE_MANAGER_TEST "capi-privacy-privilege-manager-test")
 ADD_SUBDIRECTORY(src/plugin)
 ADD_SUBDIRECTORY(src/notification-daemon)
 ADD_SUBDIRECTORY(src/common)
-ADD_SUBDIRECTORY(src/ipc-lib)
+ADD_SUBDIRECTORY(src/ipc)
 ADD_SUBDIRECTORY(src/client)
 ADD_SUBDIRECTORY(src/capi)
 
index 70cf037..ea4c84f 100644 (file)
@@ -27,7 +27,7 @@ PKG_CHECK_MODULES(PRIVACY_PRIVILEGE_MANAGER_DEP
 INCLUDE_DIRECTORIES(SYSTEM ${PRIVACY_PRIVILEGE_MANAGER_DEP_INCLUDE_DIRS})
 INCLUDE_DIRECTORIES(
     ${ASKUSER_PATH}/common
-    ${ASKUSER_PATH}/ipc-lib
+    ${ASKUSER_PATH}/ipc
     ${PRIVACY_PRIVILEGE_MANAGER_PATH}/include
     ${ASKUSER_PATH}/client/include
   )
index f20629d..689b99b 100644 (file)
 #include <unistd.h>
 
 #include <attributes/attributes.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/ask-user-types.h>
-#include <askuser-notification/connection-exception.h>
+#include <client-channel.h>
+#include <server-channel.h>
+#include <common-types.h>
+#include <connection-exception.h>
 #include <privacy_privilege_manager.h>
 
 using namespace AskUser::Protocol;
index 271273c..917d363 100644 (file)
@@ -26,7 +26,7 @@ PKG_CHECK_MODULES(ASKUSER_NOTIFICATION_CLIENT_DEP
 INCLUDE_DIRECTORIES(SYSTEM ${ASKUSER_NOTIFICATION_CLIENT_DEP_INCLUDE_DIRS})
 INCLUDE_DIRECTORIES(
     ${ASKUSER_PATH}/common
-    ${ASKUSER_PATH}/ipc-lib
+    ${ASKUSER_PATH}/ipc
     ${ASKUSER_NOTIFICATION_CLIENT_PATH}/api
     ${ASKUSER_NOTIFICATION_CLIENT_PATH}/impl
     ${ASKUSER_NOTIFICATION_CLIENT_PATH}/include
index ec96944..c05cf36 100644 (file)
@@ -26,8 +26,8 @@
 
 #include <log/alog.h>
 #include <policy/Policy.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/ask-user-types.h>
+#include <client-channel.h>
+#include <common-types.h>
 
 #include "ClientCallbacks.h"
 #include "ApiInterfaceImpl.h"
index 2726a76..ab089e3 100644 (file)
@@ -29,7 +29,7 @@
 #include <PopupCallbackClosure.h>
 #include <StatusCallbackClosure.h>
 
-#include <askuser-notification/ask-user-client-channel.h>
+#include <client-channel.h>
 
 #include <askuser-notification-client.h>
 
index 440bde1..d7a79d2 100644 (file)
@@ -23,7 +23,7 @@
 
 #pragma once
 
-#include <askuser-notification/ask-user-client-channel.h>
+#include <client-channel.h>
 
 #include "ApiInterfaceImpl.h"
 
index 52d84cc..243b805 100644 (file)
@@ -27,7 +27,7 @@
 #include <functional>
 
 #include <log/alog.h>
-#include <askuser-notification/connection-exception.h>
+#include <connection-exception.h>
 
 #include <askuser-notification-client.h>
 
similarity index 85%
rename from src/ipc-lib/CMakeLists.txt
rename to src/ipc/CMakeLists.txt
index c7b4d57..8e1c2c4 100644 (file)
@@ -16,7 +16,7 @@
 # @author      Dariusz Michaluk <d.michaluk@samsung.com>
 #
 
-SET(ASKUSER_NOTIFICATION_LIB_PATH ${ASKUSER_PATH}/ipc-lib)
+SET(ASKUSER_NOTIFICATION_LIB_PATH ${ASKUSER_PATH}/ipc)
 
 PKG_CHECK_MODULES(ASKUSER_NOTIFICATION_LIB_DEP
     REQUIRED
@@ -32,13 +32,13 @@ INCLUDE_DIRECTORIES(
   )
 
 SET(ASKUSER_NOTIFICATION_LIB_SOURCES
-    ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-channel.cpp
-    ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-client-channel.cpp
-    ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-server-channel.cpp
+    ${ASKUSER_NOTIFICATION_LIB_PATH}/channel.cpp
+    ${ASKUSER_NOTIFICATION_LIB_PATH}/client-channel.cpp
+    ${ASKUSER_NOTIFICATION_LIB_PATH}/server-channel.cpp
     ${ASKUSER_NOTIFICATION_LIB_PATH}/credentials.cpp
     ${ASKUSER_NOTIFICATION_LIB_PATH}/message-utils.cpp
     ${ASKUSER_NOTIFICATION_LIB_PATH}/sock.cpp
-    ${ASKUSER_NOTIFICATION_LIB_PATH}/ask-user-config.cpp
+    ${ASKUSER_NOTIFICATION_LIB_PATH}/config.cpp
    )
 
 SET(ASKUSER_NOTIFICATION_LIB_TEST_SOURCES
@@ -70,7 +70,7 @@ TARGET_LINK_LIBRARIES(${TARGET_ASKUSER_NOTIFICATION_LIB_TEST} ${TARGET_ASKUSER_N
 INSTALL(TARGETS     ${TARGET_ASKUSER_NOTIFICATION_LIB}
         DESTINATION ${LIB_INSTALL_DIR})
 
-FILE(GLOB HEADERS   ${ASKUSER_NOTIFICATION_LIB_PATH}/askuser-notification/*.h)
+FILE(GLOB HEADERS   ${ASKUSER_NOTIFICATION_LIB_PATH}/*.h)
 INSTALL(FILES       ${HEADERS}
         DESTINATION ${INCLUDE_INSTALL_DIR}/askuser-notification)
 
similarity index 97%
rename from src/ipc-lib/ask-user-channel.cpp
rename to src/ipc/channel.cpp
index fe88252..1c17e44 100644 (file)
 #include <cstddef>
 
 #include <log/alog.h>
-#include <askuser-notification/sock-desc.h>
-#include <askuser-notification/ask-user-channel.h>
-
-#include <ask-user-config.h>
 #include <message-utils.h>
 
+#include "sock-desc.h"
+#include "channel.h"
+#include "config.h"
+
 namespace AskUser {
 namespace Protocol {
 
similarity index 95%
rename from src/ipc-lib/askuser-notification/ask-user-channel.h
rename to src/ipc/channel.h
index e546733..5fd6df3 100644 (file)
@@ -26,8 +26,8 @@
 #include <string>
 #include <vector>
 
-#include <askuser-notification/sock-desc.h>
-#include <askuser-notification/ask-user-types.h>
+#include "sock-desc.h"
+#include "common-types.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 95%
rename from src/ipc-lib/ask-user-client-channel.cpp
rename to src/ipc/client-channel.cpp
index d79b81c..f245c01 100644 (file)
 #include <sstream>
 
 #include <attributes/attributes.h>
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/connection-exception.h>
 #include <log/alog.h>
-
-#include <ask-user-config.h>
 #include <message-utils.h>
 
+#include "client-channel.h"
+#include "connection-exception.h"
+#include "config.h"
+
 namespace AskUser {
 namespace Protocol {
 
similarity index 96%
rename from src/ipc-lib/askuser-notification/ask-user-client-channel.h
rename to src/ipc/client-channel.h
index 7978c9f..e8bc858 100644 (file)
@@ -25,8 +25,8 @@
 #include <string>
 #include <vector>
 
-#include <askuser-notification/ask-user-channel.h>
-#include <askuser-notification/ask-user-types.h>
+#include "channel.h"
+#include "common-types.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 97%
rename from src/ipc-lib/ask-user-config.cpp
rename to src/ipc/config.cpp
index 597abe6..11ecbd7 100644 (file)
@@ -18,7 +18,7 @@
  * @author      Bartlomiej Grzelewski <b.grzelewski@samsung.com>
  * @brief       The implementation of utility functions for getting sockets paths.
  */
-#include <ask-user-config.h>
+#include "config.h"
 
 namespace {
 const std::string USER_EXT_PATH("/run/user_ext/");
similarity index 94%
rename from src/ipc-lib/credentials.cpp
rename to src/ipc/credentials.cpp
index 401bf30..8e1b98b 100644 (file)
@@ -24,9 +24,8 @@
 #include <sys/smack.h>
 #include <sys/socket.h>
 
-#include <askuser-notification/credentials-exception.h>
-
-#include <askuser-notification/credentials.h>
+#include "credentials-exception.h"
+#include "credentials.h"
 
 namespace {
 
similarity index 98%
rename from src/ipc-lib/message-utils.h
rename to src/ipc/message-utils.h
index 6ad9025..4106657 100644 (file)
@@ -27,7 +27,7 @@
 #include <string>
 #include <type_traits>
 
-#include <askuser-notification/ask-user-types.h>
+#include "common-types.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 95%
rename from src/ipc-lib/ask-user-server-channel.cpp
rename to src/ipc/server-channel.cpp
index 4a08a48..f854a82 100644 (file)
 
 #include <sstream>
 
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/connection-exception.h>
 #include <log/alog.h>
 
-#include <ask-user-config.h>
-#include <message-utils.h>
+#include "connection-exception.h"
+#include "config.h"
+#include "message-utils.h"
+#include "server-channel.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 95%
rename from src/ipc-lib/askuser-notification/ask-user-server-channel.h
rename to src/ipc/server-channel.h
index fcb353b..8e18670 100644 (file)
@@ -25,9 +25,9 @@
 #include <string>
 #include <vector>
 
-#include <askuser-notification/ask-user-types.h>
-#include <askuser-notification/ask-user-channel.h>
-#include <askuser-notification/credentials.h>
+#include "common-types.h"
+#include "channel.h"
+#include "credentials.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 93%
rename from src/ipc-lib/askuser-notification/sock-desc.h
rename to src/ipc/sock-desc.h
index 819a986..046336a 100644 (file)
@@ -24,8 +24,8 @@
 
 #include <map>
 
-#include <askuser-notification/sock.h>
-#include <askuser-notification/raw-buffer.h>
+#include "sock.h"
+#include "raw-buffer.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 98%
rename from src/ipc-lib/sock.cpp
rename to src/ipc/sock.cpp
index e0f2df1..64b05ba 100644 (file)
 #include <stdexcept>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <string>
+#include <vector>
 #include <unistd.h>
 
 #ifdef BUILD_WITH_SYSTEMD_DAEMON
 #include <systemd/sd-daemon.h>
 #endif // BUILD_WITH_SYSTEMD_DAEMON
 
-#include <string>
-#include <vector>
-
-#include <askuser-notification/ask-user-types.h>
-#include <askuser-notification/sock.h>
 #include <log/alog.h>
 
+#include "common-types.h"
+#include "sock.h"
+
 namespace AskUser {
 namespace Protocol {
 
similarity index 97%
rename from src/ipc-lib/askuser-notification/sock.h
rename to src/ipc/sock.h
index 5377d37..f9a0656 100644 (file)
@@ -24,7 +24,7 @@
 #include <string>
 #include <unistd.h>
 
-#include <askuser-notification/raw-buffer.h>
+#include "raw-buffer.h"
 
 namespace AskUser {
 namespace Protocol {
similarity index 96%
rename from src/ipc-lib/test/main.cpp
rename to src/ipc/test/main.cpp
index 644d6f6..9e84842 100644 (file)
@@ -25,9 +25,9 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#include <askuser-notification/ask-user-client-channel.h>
-#include <askuser-notification/ask-user-server-channel.h>
-#include <askuser-notification/ask-user-types.h>
+#include <client-channel.h>
+#include <server-channel.h>
+#include <common-types.h>
 
 std::map<int, int> m_sockets;
 
index c62e9fa..89b330d 100644 (file)
@@ -22,7 +22,7 @@ INCLUDE_DIRECTORIES(SYSTEM
 INCLUDE_DIRECTORIES(
     ${ASKUSER_PATH}
     ${ASKUSER_PATH}/common
-    ${ASKUSER_PATH}/ipc-lib
+    ${ASKUSER_PATH}/ipc
     ${NOTIF_PATH}
 )
 
index be066cb..2c6ea82 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <map>
 #include <deque>
-#include <askuser-notification/ask-user-server-channel.h>
+#include <server-channel.h>
 #include <event/Event.h>
 
 namespace AskUser {
index 159adc3..e615e1a 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <memory>
 
-#include <askuser-notification/ask-user-server-channel.h>
+#include <channel.h>
 
 #include "Logic.h"
 #include "ui/Popupper.h"