2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
18 * @file FNet_IpHostEntryImpl.h
19 * @brief This is the header file for the _IpHostEntryImpl class.
22 #ifndef _FNET_INTERNAL_IP_HOST_ENTRY_IMPL_H_
23 #define _FNET_INTERNAL_IP_HOST_ENTRY_IMPL_H_
25 #include <FBaseDataType.h>
26 #include <FBaseObject.h>
27 #include "FNet_NetUtility.h"
29 namespace Tizen { namespace Base { namespace Collection
32 } } } // Tizen::Base::Collection
34 namespace Tizen { namespace Net
37 class _IpHostEntryImpl
38 : public Tizen::Base::Object
43 * This is the destructor for this class.
47 virtual ~_IpHostEntryImpl(void);
51 * @see _IpHostEntryImpl::GetAddressList()
53 Tizen::Base::Collection::IList* GetAddressList(void) const;
56 * @see _IpHostEntryImpl::GetAliasList()
58 Tizen::Base::Collection::IList* GetAliasList(void) const;
62 * Factory Method to create IpHostEntry instance
65 * @return Instance of IpHostEntry
67 static IpHostEntry* CreateIpHostEntryN(void);
71 * Gets the Impl instance.
74 * @return The pointer to _IpHostEntryImpl
75 * @param[in] ipHostEntry An instance of IpHostEntry
77 static _IpHostEntryImpl* GetInstance(IpHostEntry& ipHostEntry);
80 * Gets the Impl instance.
83 * @return The pointer to _IpHostEntryImpl
84 * @param[in] ipHostEntry An instance of IpHostEntry
86 static const _IpHostEntryImpl* GetInstance(const IpHostEntry& ipHostEntry);
90 * This is the constructor for this class. @n
91 * Do @b not use directly.
94 _IpHostEntryImpl(void);
97 result SetAddressList(const Tizen::Base::Collection::IList& addressList);
99 result SetAliasList(const Tizen::Base::Collection::IList& aliasList);
103 * This is the copy constructor for this class. @n
104 * Do @b not use directly.
106 * @param[in] rhs An instance of IpHostEntry
108 _IpHostEntryImpl(const _IpHostEntryImpl& rhs);
111 * This is the assignment operator. Do @b not use directly.
113 * @param[in] rhs An instance of IpHostEntry
115 _IpHostEntryImpl& operator =(const _IpHostEntryImpl& rhs);
118 std::unique_ptr<Tizen::Base::Collection::IList, _CollectionDeleter> __pAddressList;
119 std::unique_ptr<Tizen::Base::Collection::IList, _CollectionDeleter> __pAliasList;
121 friend class _DnsRequestHandler;
122 friend class IpHostEntry;
124 }; // _IpHostEntryImpl
128 #endif // _FNET_INTERNAL_IP_HOST_ENTRY_IMPL_H_