X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FOCResource.h;h=a64800093963c764b5405b8073bd76e4ed4becc6;hb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;hp=bc0109c8e267a72fc2978a74f5002b3a228331b3;hpb=935fdb9b67b6c10d007e652e9e2e028fd6ccfe09;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/OCResource.h b/resource/include/OCResource.h index bc0109c..a648000 100644 --- a/resource/include/OCResource.h +++ b/resource/include/OCResource.h @@ -441,7 +441,7 @@ namespace OC /** * Function to get the connectivity type of this resource - * @return uint8_t connectivity type + * @return enum connectivity type (flags and adapter) */ OCConnectivityType connectivityType() const; @@ -504,11 +504,12 @@ namespace OC bool operator>=(const OCResource &other) const; private: + void setHost(const std::string& host); std::weak_ptr m_clientWrapper; std::string m_uri; OCResourceIdentifier m_resourceId; - std::string m_host; - OCConnectivityType m_connectivityType; + OCDevAddr m_devAddr; + bool m_useHostString; bool m_isObservable; bool m_isCollection; std::vector m_resourceTypes; @@ -518,11 +519,18 @@ namespace OC HeaderOptions m_headerOptions; private: - OCResource(std::weak_ptr clientWrapper, const std::string& host, - const std::string& uri, const std::string& serverId, - OCConnectivityType m_connectivityType, bool observable, - const std::vector& resourceTypes, - const std::vector& interfaces); + OCResource(std::weak_ptr clientWrapper, + const OCDevAddr& devAddr, const std::string& uri, + const std::string& serverId, bool observable, + const std::vector& resourceTypes, + const std::vector& interfaces); + + OCResource(std::weak_ptr clientWrapper, + const std::string& host, const std::string& uri, + const std::string& serverId, + OCConnectivityType connectivityType, bool observable, + const std::vector& resourceTypes, + const std::vector& interfaces); }; } // namespace OC