2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FIoIMmcStorageMountListener.h
19 * @brief This is the header file for the %IMmcStorageMountListener interface.
21 * This header file contains the declarations of the %IMmcStorageMountListener interface.
24 #ifndef _FIO_IMMC_STORAGE_MOUNT_LISTENER_H_
25 #define _FIO_IMMC_STORAGE_MOUNT_LISTENER_H_
27 #include <FBaseRtIEventListener.h>
29 namespace Tizen { namespace Io
33 * @interface IMmcStorageMountListener
34 * @brief This interface is the listener to receive the result of external MMC mount or unmount operations.
37 * The %IMmcStorageMountListener interface must be registered and implemented by an application to receive the result of
38 * external MMC mount or unmount operations.
40 * @see MmcStorageManager
42 class _OSP_EXPORT_ IMmcStorageMountListener
43 : public virtual Tizen::Base::Runtime::IEventListener
47 * This polymorphic destructor should be overridden if required. This way, the destructors of the derived classes are called when the destructor of this interface called.
51 virtual ~IMmcStorageMountListener(void) {}
54 * Called when external MMC mount operation is done.
58 * @param[in] r The result of external MMC mount operation
59 * @exception E_SUCCESS The mount operation is successful.
60 * @exception E_IO Either of the following conditions has occurred: @n
61 * - The file system to be mounted has an invalid superblock.
62 * - An unexpected device failure has occurred as the media ejected suddenly.
63 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
65 virtual void OnMmcStorageMounted(result r) = 0;
68 * Called when external MMC unmount operation is done.
72 * @param[in] r The result of external MMC unmount operation
73 * @exception E_SUCCESS The unmount operation is successful.
74 * @exception E_IO An unexpected device failure has occurred as the media ejected suddenly.
75 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
77 virtual void OnMmcStorageUnmounted(result r) = 0;
81 // This method is for internal use only.
82 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
85 virtual void IMmcStorageMountListener_Reserved1(void) {}
88 // This method is for internal use only.
89 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
92 virtual void IMmcStorageMountListener_Reserved2(void) {}
95 // This method is for internal use only.
96 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
99 virtual void IMmcStorageMountListener_Reserved3(void) {}
101 }; // IMmcStorageMountListener
105 #endif // _FIO_IMMC_STORAGE_MOUNT_LISTENER_H