2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FIoRemoteMessagePort.cpp
19 * @brief This is the implementation file for the RemoteMessagePort class.
23 #include <FBaseSysLog.h>
24 #include <FBaseColHashMap.h>
25 #include <FIoRemoteMessagePort.h>
26 #include "FIo_RemoteMessagePortImpl.h"
29 using namespace Tizen::Base;
30 using namespace Tizen::Base::Collection;
32 namespace Tizen { namespace Io
35 RemoteMessagePort::RemoteMessagePort(void)
36 : __pRemoteMessagePortImpl(null)
40 RemoteMessagePort::~RemoteMessagePort(void)
42 delete __pRemoteMessagePortImpl;
46 RemoteMessagePort::GetName(void) const
48 return __pRemoteMessagePortImpl->GetName();
52 RemoteMessagePort::GetAppId(void) const
54 return __pRemoteMessagePortImpl->GetAppId();
58 RemoteMessagePort::IsTrusted(void) const
60 return __pRemoteMessagePortImpl->IsTrusted();
64 RemoteMessagePort::SendMessage(const IMap* pMessage)
66 SysAssertf(__pRemoteMessagePortImpl != null, "Not yet constructed. Construct() should be called before use.\n");
68 return __pRemoteMessagePortImpl->SendMessage(pMessage);
72 RemoteMessagePort::SendMessage(const LocalMessagePort* pLocalMessagePort, const IMap* pMessage)
74 SysAssertf(__pRemoteMessagePortImpl != null, "Not yet constructed. Construct() should be called before use.\n");
76 return __pRemoteMessagePortImpl->SendMessage(pLocalMessagePort, pMessage);