Tizen 2.0 Release
[framework/osp/media.git] / src / FMedia_PlayerProgressiveDownloadEventArg.cpp
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17 #include "FMedia_PlayerProgressiveDownloadEventArg.h"
18
19 namespace Tizen { namespace Media
20 {
21
22 _PlayerProgressiveDownloadEventTypeArg::_PlayerProgressiveDownloadEventTypeArg(void)
23         : __playerProgresiveDownloadEventType(PLAYER_PROGRESSIVE_DOWNLOAD_EVENT_NONE)
24 {
25
26 }
27
28 _PlayerProgressiveDownloadEventTypeArg::~_PlayerProgressiveDownloadEventTypeArg(void)
29 {
30
31 }
32
33 void
34 _PlayerProgressiveDownloadEventTypeArg::SetEventType(_PlayerProgressiveDownloadEventType eType)
35 {
36         __playerProgresiveDownloadEventType = eType;
37 }
38
39 _PlayerProgressiveDownloadEventType
40 _PlayerProgressiveDownloadEventTypeArg::GetEventType(void) const
41 {
42         return __playerProgresiveDownloadEventType;
43 }
44
45 _PlayerProgressiveDownloadEventArg::_PlayerProgressiveDownloadEventArg(void)
46         : __downloadedSize(0)
47         , __totalSize(0)
48         , __resultReturned(E_SUCCESS)
49 {
50 }
51
52 _PlayerProgressiveDownloadEventArg::~_PlayerProgressiveDownloadEventArg(void)
53 {
54 }
55
56 void
57 _PlayerProgressiveDownloadEventArg::SetDownloadedSize(int downloadedSize)
58 {
59         __downloadedSize = downloadedSize;
60 }
61
62 int
63 _PlayerProgressiveDownloadEventArg::GetDownloadedSize(void) const
64 {
65         return __downloadedSize;
66 }
67
68 void
69 _PlayerProgressiveDownloadEventArg::SetTotalSize(int totalSize)
70 {
71         __totalSize = totalSize;
72 }
73
74 int
75 _PlayerProgressiveDownloadEventArg::GetTotalSize(void) const
76 {
77         return __totalSize;
78 }
79 void
80 _PlayerProgressiveDownloadEventArg::SetResult(result returnResult)
81 {
82         __resultReturned = returnResult;
83 }
84
85 result
86 _PlayerProgressiveDownloadEventArg::GetResult() const
87 {
88         return __resultReturned;
89 }
90
91 };
92 };              // Tizen::Media