remove unnecessary IPC
authorYoung Ik Cho <youngik.cho@samsung.com>
Thu, 14 Mar 2013 00:36:51 +0000 (09:36 +0900)
committerYoung Ik Cho <youngik.cho@samsung.com>
Thu, 14 Mar 2013 00:36:51 +0000 (09:36 +0900)
Change-Id: I593ce73ccaa252fb840b86cdee92dde15d065a50
Signed-off-by: Young Ik Cho <youngik.cho@samsung.com>
src/core/CMakeLists.txt [changed mode: 0755->0644]
src/core/FShell_NotificationManagerIpcMessages.cpp [deleted file]
src/core/FShell_NotificationManagerProxy.cpp [deleted file]
src/inc/FShell_NotificationManagerIpcMessages.h [deleted file]
src/inc/FShell_NotificationManagerProxy.h [deleted file]

old mode 100755 (executable)
new mode 100644 (file)
index ae3d2b1..8e72610
@@ -33,8 +33,6 @@ SET (${this_target}_SOURCE_FILES
        FShell_NotificationManagerImpl.cpp
        FShellNotificationRequest.cpp
        FShell_NotificationRequestImpl.cpp
-       FShell_NotificationManagerProxy.cpp
-       FShell_NotificationManagerIpcMessages.cpp
        FShellShortcutManager.cpp
        FShell_ShortcutManagerImpl.cpp
        FShellLockManager.cpp
diff --git a/src/core/FShell_NotificationManagerIpcMessages.cpp b/src/core/FShell_NotificationManagerIpcMessages.cpp
deleted file mode 100644 (file)
index 3a8a6fb..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-//
-// Open Service Platform
-// Copyright (c) 2012 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.
-//
-
-/**
- * @file       FShell_NotificationManagerIpcMessages.cpp
- * @brief      This file contains IPC message class generated by macros.
- */
-
-#define IPC_MESSAGE_IMPL
-#include "FShell_NotificationManagerIpcMessages.h"
-
-// Generate constructors.
-#include "ipc/struct_constructor_macros.h"
-#include "FShell_NotificationManagerIpcMessages.h"
-// Generate destructors.
-
-#include "ipc/struct_destructor_macros.h"
-#include "FShell_NotificationManagerIpcMessages.h"
-
-// Generate param traits write methods.
-#include "ipc/param_traits_write_macros.h"
-namespace IPC
-{
-#include "FShell_NotificationManagerIpcMessages.h"
-}  // namespace IPC
-
-// Generate param traits read methods.
-#include "ipc/param_traits_read_macros.h"
-namespace IPC
-{
-#include "FShell_NotificationManagerIpcMessages.h"
-}  // namespace IPC
diff --git a/src/core/FShell_NotificationManagerProxy.cpp b/src/core/FShell_NotificationManagerProxy.cpp
deleted file mode 100644 (file)
index 9a4e42d..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-//
-// Open Service Platform
-// Copyright (c) 2012 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.
-//
-
-/**
- * @file        FShell_NotificationManagerProxy.cpp
- * @brief      This is the implementation for the _NotificationManagerProxy.cpp class.
- */
-
-#include <new>
-#include <memory>
-
-#include <FAppTypes.h>
-#include <FBaseErrors.h>
-#include <FBaseSysLog.h>
-#include <FShellNotificationRequest.h>
-
-#include <FIo_IpcClient.h>
-
-#include "FShell_NotificationManagerIpcMessages.h"
-#include "FShell_NotificationManagerProxy.h"
-
-using namespace Tizen::Base;
-using namespace Tizen::App;
-
-namespace Tizen { namespace Shell
-{
-
-_NotificationManagerProxy::_NotificationManagerProxy(void)
-       : __pIpcClient(null)
-{
-}
-
-_NotificationManagerProxy::~_NotificationManagerProxy(void)
-{
-}
-
-result
-_NotificationManagerProxy::Construct()
-{
-       __pIpcClient = new (std::nothrow) Tizen::Io::_IpcClient();
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_OUT_OF_MEMORY, "_IpcClient creation failed.");
-
-       result r = __pIpcClient->Construct("osp.app.ipcserver.notificationmanager");
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "_IpcClient constructing failed [%s].", GetErrorMessage(r));
-
-       return E_SUCCESS;
-}
-
-result
-_NotificationManagerProxy::NotifyMessage(const AppId& appId, const NotificationRequest& notiMessage, bool Ongoing)
-{
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-
-       result response = E_SUCCESS;
-       std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) NotificationManager_NotifyMessage(appId, notiMessage, Ongoing, &response));
-       result r = __pIpcClient->SendRequest(*pMsg.get());
-
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "__pIpcClient->SendRequest is failed. (%s)", GetErrorMessage(r));
-
-       return response;
-}
-
-result
-_NotificationManagerProxy::RemoveNotification(const AppId& appId, bool Ongoing)
-{
-       SysTryReturnResult(NID_APP, __pIpcClient != null, E_INVALID_STATE, "__pIpcClient instance must not be null.");
-
-       result response = E_SUCCESS;
-       std::auto_ptr<IPC::Message> pMsg (new (std::nothrow) NotificationManager_RemoveNotification(appId, Ongoing, &response));
-       result r = __pIpcClient->SendRequest(*pMsg.get());
-
-       SysTryReturn(NID_APP, !IsFailed(r), r, r, "__pIpcClient->SendRequest is failed. (%s)", GetErrorMessage(r));
-
-       return response;
-}
-
-} } // Tizen::Shell
diff --git a/src/inc/FShell_NotificationManagerIpcMessages.h b/src/inc/FShell_NotificationManagerIpcMessages.h
deleted file mode 100644 (file)
index 86a3410..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-//
-// Open Service Platform
-// Copyright (c) 2012 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.
-//
-
-/**
- * @file        FShell_NotificationManagerIpcMessages.h
- * @brief      This is the header file for the NotificationManager Ipc message types.
- */
-
-#include <FAppTypes.h>
-#include <FShellNotificationRequest.h>
-
-#include "ipc/ipc_message_macros.h"
-#include "FIo_IpcCommonParamTraits.h"
-#include "FIo_IpcMessageStart.h"
-#include "FShell_NotificationManagerEventParamTraits.h"
-
-#define IPC_MESSAGE_START NotificationManagerServiceStart
-
-IPC_SYNC_MESSAGE_CONTROL3_1(NotificationManager_NotifyMessage, Tizen::App::AppId, Tizen::Shell::NotificationRequest, bool, result)
-IPC_SYNC_MESSAGE_CONTROL2_1(NotificationManager_RemoveNotification, Tizen::App::AppId, bool, result)
-
diff --git a/src/inc/FShell_NotificationManagerProxy.h b/src/inc/FShell_NotificationManagerProxy.h
deleted file mode 100644 (file)
index 3d9bda4..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-//
-// Open Service Platform
-// Copyright (c) 2012 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.
-//
-
-/**
- * @file       FShell_NotificationManagerProxy.h
- * @brief      This is the header file of the _NotificationManagerProxy class.
- */
-
-#ifndef _FSHELL_INTERNAL_NOTIFICATION_MANAGER_PROXY_H_
-#define _FSHELL_INTERNAL_NOTIFICATION_MANAGER_PROXY_H_
-
-#include <FBaseObject.h>
-#include <FBaseString.h>
-#include <FAppTypes.h>
-
-namespace Tizen { namespace Io { class _IpcClient; } }
-
-namespace Tizen { namespace Shell
-{
-
-class NotificationRequest;
-
-/**
- * @class       _NotificationManagerProxy
- * @brief
- * @since 2.1
- */
-class _NotificationManagerProxy
-       : public Tizen::Base::Object
-{
-public:
-       _NotificationManagerProxy(void);
-       virtual ~_NotificationManagerProxy(void);
-
-       result Construct(void);
-
-       result NotifyMessage(const Tizen::App::AppId& appId, const NotificationRequest& message, bool Ongoing);
-       result RemoveNotification(const Tizen::App::AppId& appId, bool Ongoing);
-
-
-private:
-       _NotificationManagerProxy(const _NotificationManagerProxy& rhs);
-
-       _NotificationManagerProxy& operator =(const _NotificationManagerProxy& rhs);
-
-private:
-       Tizen::Io::_IpcClient* __pIpcClient;
-
-}; // _NotificationManagerProxy
-
-} } // Tizen::Shell
-
-#endif // _FSHELL_INTERNAL_NOTIFICATION_MANAGER_PROXY_H_