Resolve the bug about the name of edc
[apps/web/download-manager.git] / src / download-manager-downloadRequest.cpp
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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
7  *
8  *    http://www.tizenopensource.org/license
9  *
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.
15  */
16
17 /**
18  * @file        download-provier-downloadRequest.cpp
19  * @author      Jungki Kwak (jungki.kwak@samsung.com)
20  * @brief       download request data class
21  */
22 #include "download-manager-downloadRequest.h"
23
24 /*DownloadRequest::DownloadRequest()
25         : m_url(NULL)
26         , m_cookie(NULL)
27 {
28 }*/
29
30 DownloadRequest::DownloadRequest(string url, string cookie)
31         : m_url(url)
32         , m_cookie(cookie)
33 {
34 }
35
36 DownloadRequest::DownloadRequest(DownloadRequest &rRequest)
37 {
38         m_url.assign(rRequest.getUrl());
39         m_cookie.assign(rRequest.getCookie());
40 }
41
42 DownloadRequest::~DownloadRequest()
43 {
44 //      DP_LOG_FUNC();
45 }
46
47 string &DownloadRequest::getUrl()
48 {
49         return m_url;
50 }
51
52 string &DownloadRequest::getCookie()
53 {
54         return m_cookie;
55 }
56
57 bool DownloadRequest::isUrlEmpty()
58 {
59         return m_url.empty();
60 }
61
62 bool DownloadRequest::isCookieEmpty()
63 {
64         return m_cookie.empty();
65 }
66
67 void DownloadRequest::setUrl(string url)
68 {
69         m_url.assign(url);
70 }
71
72 void DownloadRequest::setCookie(string cookie)
73 {
74         m_cookie.assign(cookie);
75 }