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 FMediaIPlayerProgressiveDownloadListener.h
20 * @brief This is the header file for the IPlayerProgressiveDownloadListener interface.
22 * This header files contains the common thing required for IPlayerProgressiveDownloadListener.
25 #ifndef _FMEDIA_IPLAYER_PROGRESSIVE_DOWNLOAD_LISTENER_H_
26 #define _FMEDIA_IPLAYER_PROGRESSIVE_DOWNLOAD_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
30 namespace Tizen { namespace Media
33 * @interface IPlayerProgressiveDownloadListener
34 * @brief This interface provides a listener that receives events associated with the progressive download playback.
38 * The %IPlayerProgressiveDownloadListener interface specifies the methods used to notify when the application starts, or completes progressive download.
40 class _OSP_EXPORT_ IPlayerProgressiveDownloadListener
41 : virtual public Tizen::Base::Runtime::IEventListener
45 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor@n
46 * of this interface is called.
50 virtual ~IPlayerProgressiveDownloadListener(void) { }
53 * Called when the progressive download started.
57 * @param[in] player A pointer to the Player instance that fired the event
59 virtual void OnPlayerProgressiveDownloadStarted(Player& player) = 0;
62 * Called when the progressive download is in progress.
66 * @param[in] player A pointer to the Player instance that fired the event
67 * @param[in] downloadedSize The total downloaded size in bytes
68 * @param[in] totalSize The total size in bytes
70 virtual void OnPlayerProgressiveDownloadInProgress(Player& player, int downloadedSize, int totalSize) = 0;
74 * Called when the progressive download completed.
78 * @param[in] player A pointer to the Player instance that fired the event
79 * @param[in] r The result of progressive download.
80 * @exception E_SUCCESS The method is successful.
81 * @exception E_STORAGE_FULL The storage is full.
82 * @exception E_INACCESSIBLE_PATH The file path is invalid to store media data.
84 virtual void OnPlayerProgressiveDownloadCompleted(Player& player, result r) = 0;
88 // This method is for internal use only. Using this method can cause behavioral, security-related,
89 // and consistency-related issues in the application.
91 // This method is reserved and may change its name at any time without
96 virtual void IPlayerProgressiveDownloadEventListener_Reserved1(void) {}
99 // This method is for internal use only. Using this method can cause behavioral, security-related,
100 // and consistency-related issues in the application.
102 // This method is reserved and may change its name at any time without
107 virtual void IPlayerProgressiveDownloadEventListener_Reserved2(void) {}
110 // This method is for internal use only. Using this method can cause behavioral, security-related,
111 // and consistency-related issues in the application.
113 // This method is reserved and may change its name at any time without
118 virtual void IPlayerProgressiveDownloadEventListener_Reserved3(void) {}