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 FIo_RemoteMessagePortImpl.h
19 * @brief This is the header file for the _RemoteMessagePortImpl class.
21 * This file contains the declarations of _RemoteMessagePortImpl
25 #ifndef _FIO_REMOTE_MESSAGE_PORT_IMPL_H_
26 #define _FIO_REMOTE_MESSAGE_PORT_IMPL_H_
28 #include <FBaseResult.h>
29 #include <FBaseDataType.h>
30 #include <FBaseObject.h>
31 #include <FBaseString.h>
32 #include <FBaseColIMap.h>
33 #include <FBaseColLinkedListT.h>
34 #include <FAppTypes.h>
37 namespace Tizen { namespace Io
40 class RemoteMessagePort;
41 class IMessagePortListener;
43 class _RemoteMessagePortImpl
46 _RemoteMessagePortImpl(void);
48 virtual ~_RemoteMessagePortImpl(void);
50 result Construct(const Tizen::App::AppId& remoteAppId, const Tizen::Base::String& remotePort, bool isTrusted = false);
52 Tizen::Base::String GetName(void) const;
54 Tizen::App::AppId GetAppId(void) const;
56 bool IsTrusted(void) const;
58 result SendMessage(const Tizen::Base::Collection::IMap* pMessage);
60 result SendMessage(const LocalMessagePort* pLocalMessagePort, const Tizen::Base::Collection::IMap* pMessage);
62 static RemoteMessagePort* GetMessagePort(const Tizen::App::AppId& remoteAppId, const Tizen::Base::String& remotePort, bool isTrusted = false);
64 static RemoteMessagePort* GetMessagePortOnly(const Tizen::App::AppId& remoteAppId, const Tizen::Base::String& remotePort, bool isTrusted = false);
67 _RemoteMessagePortImpl(const _RemoteMessagePortImpl& value);
69 _RemoteMessagePortImpl& operator =(const _RemoteMessagePortImpl& value);
72 Tizen::App::AppId __remoteAppId;
73 Tizen::Base::String __remotePort;
76 }; // _RemoteMessagePortImpl
80 #endif //_FIO_REMOTE_MESSAGE_PORT_IMPL_H_