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.
18 * @file FCnt_ContentDownloadUserData.h
19 * @brief This is the header file for the %_ContentDownloadUserData class.
21 * This header file contains the declarations of the %_ContentDownloadUserData class.
24 #ifndef _FCNT_INTERNAL_CONTENT_DOWNLOAD_USERDATA_H_
25 #define _FCNT_INTERNAL_CONTENT_DOWNLOAD_USERDATA_H_
27 #include <FCntContentTransferInfo.h>
28 #include <FIo_FileImpl.h>
29 #include "FCnt_ContentTransferEvent.h"
31 namespace Tizen { namespace Content
34 class _ContentDownloadUserData
35 : public Tizen::Base::Object
38 _ContentDownloadUserData(void);
39 virtual ~_ContentDownloadUserData(void);
41 _ContentDownloadUserData(const _ContentDownloadUserData& userData);
42 _ContentDownloadUserData& operator =(const _ContentDownloadUserData& userData);
44 RequestId GetRequestId(void) const;
45 ContentId GetContentId(void) const;
46 Tizen::Base::String GetUrl(void) const;
47 Tizen::Base::String GetDestPath(void) const;
48 bool GetDownloadBufferFlag(void) const;
49 bool GetSlotFlag(void) const;
50 int GetSlot(void) const;
51 int GetDownloadCount(void) const;
52 int GetPercent(void) const;
53 _ContentTransferEvent* GetContentTransferEvent(void) const;
54 ContentTransferInfo* GetContentTransferInfo(void) const;
55 bool GetCheckDownloading(int slot) const;
56 long long GetTotalSize(void) const;
57 long long GetPrevData(void) const;
59 void SetRequestId(RequestId reqId);
60 void SetContentId(const ContentId& contentId);
61 void SetUrl(Tizen::Base::String& url);
62 void SetDestPath(Tizen::Base::String& destPath);
63 void SetDownloadBufferFlag(bool isBuffer);
64 void SetSlotFlag(bool slotFlag);
65 void SetSlot(int slot);
66 void SetDownloadCount(int downloadCount);
67 void SetMaxCount(int maxDownloadCount);
68 void SetPercent(int percent);
69 void SetContentTransferEvent(_ContentTransferEvent* transferEvent);
70 void SetContentTransferInfo(ContentTransferInfo* transferInfo);
71 void SetCheckDownloading(int slot, bool check);
72 void SetTotalSize(long long totalSize);
73 void SetPrevData(long long data);
77 ContentId __contentId;
80 int __maxDownloadCount;
82 long long __totalSize;
83 long long __prevDownloadData;
86 std::unique_ptr<bool[]> __pCheckDownloading;
87 _ContentTransferEvent* __pContentTransferEvent;
88 ContentTransferInfo* __pContentTransferInfo;
89 Tizen::Base::String __url;
90 Tizen::Base::String __destPath;
91 }; // _ContentDownloadUserData
95 #endif // _FCNT_INTERNAL_CONTENT_DOWNLOAD_USERDATA_H_