2 // Open Service Platform
3 // Copyright (c) 2012 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.
19 * @file FCnt_DownloadRequestImpl.cpp
20 * @brief This is the implementation file for the _DownloadRequestImpl class.
27 #include "FCnt_DownloadRequestImpl.h"
29 using namespace Tizen::Base;
31 namespace Tizen { namespace Content
34 _DownloadRequestImpl::_DownloadRequestImpl(void)
38 _DownloadRequestImpl::_DownloadRequestImpl(const String& url)
43 _DownloadRequestImpl::_DownloadRequestImpl(const String& url, const String& dirPath)
49 _DownloadRequestImpl::_DownloadRequestImpl(const _DownloadRequestImpl& rhs)
51 , __dirPath(rhs.__dirPath)
52 , __fileName(rhs.__fileName)
56 _DownloadRequestImpl::~_DownloadRequestImpl(void)
62 _DownloadRequestImpl::operator =(const _DownloadRequestImpl& rhs)
65 __dirPath = rhs.__dirPath;
66 __fileName = rhs.__fileName;
72 _DownloadRequestImpl::operator ==(const _DownloadRequestImpl& rhs) const
79 if (__url == rhs.__url
80 && __dirPath == rhs.__dirPath
81 && __fileName == rhs.__fileName)
90 _DownloadRequestImpl::Equals(const Object& obj) const
92 const _DownloadRequestImpl* pOther = dynamic_cast< const _DownloadRequestImpl* >(&obj);
98 return (*this == *pOther);
102 _DownloadRequestImpl::GetHashCode(void) const
106 hashCode.Append(__url);
107 hashCode.Append(__dirPath);
108 hashCode.Append(__fileName);
110 return hashCode.GetHashCode();
114 _DownloadRequestImpl::SetDirectoryPath(const String& dirPath)
120 _DownloadRequestImpl::SetFileName(const String& fileName)
122 __fileName = fileName;
126 _DownloadRequestImpl::GetUrl(void) const
132 _DownloadRequestImpl::GetDirectoryPath(void) const
138 _DownloadRequestImpl::GetFileName(void) const
143 } } // Tizen::Content