FShell_NotificationManagerImpl.cpp
FShellNotificationRequest.cpp
FShell_NotificationRequestImpl.cpp
- FShell_NotificationManagerProxy.cpp
- FShell_NotificationManagerIpcMessages.cpp
FShellShortcutManager.cpp
FShell_ShortcutManagerImpl.cpp
FShellLockManager.cpp
+++ /dev/null
-//
-// 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
+++ /dev/null
-//
-// 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
+++ /dev/null
-//
-// 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)
-
+++ /dev/null
-//
-// 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_