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 FIo_MmcStorageManagerImpl.h
19 * @brief This is the header file for the %_MmcStorageManagerImpl class.
21 * This header file contains the declarations of the %_MmcStorageManagerImpl class.
24 #ifndef _FIO_MMC_STORAGE_MANAGER_IMPL_H_
25 #define _FIO_MMC_STORAGE_MANAGER_IMPL_H_
27 #include <FBaseObject.h>
28 #include <FBaseInternalTypes.h>
29 #include <FBaseColLinkedListT.h>
30 #include <FBaseRtEvent.h>
32 #include <FIoMmcStorageManager.h>
34 #include "FIo_IMmcStorageServiceEventListener.h"
36 namespace Tizen { namespace Io
39 class MmcStorageManager;
40 class _MmcStorageManagerProxy;
41 class IMmcStorageMountListener;
42 class IMmcStorageFormatListener;
44 class _OSP_EXPORT_ _MmcStorageManagerImpl
45 : public _IMmcStorageServiceEventListener
49 ~_MmcStorageManagerImpl(void);
51 static _MmcStorageManagerImpl* GetInstance(void);
59 result AddMmcStorageMountListener(IMmcStorageMountListener& listener);
61 result RemoveMmcStorageMountListener(IMmcStorageMountListener& listener);
63 result AddMmcStorageFormatListener(IMmcStorageFormatListener& listener);
65 result RemoveMmcStorageFormatListener(IMmcStorageFormatListener& listener);
67 virtual void OnMmcMountResponseReceived(result r);
69 virtual void OnMmcUnmountResponseReceived(result r);
71 virtual void OnMmcFormatResponseReceived(result r);
74 _MmcStorageManagerImpl(void);
75 result Construct(void);
77 _MmcStorageManagerImpl(const _MmcStorageManagerImpl& source);
78 _MmcStorageManagerImpl& operator =(const _MmcStorageManagerImpl& source);
81 _MmcStorageManagerProxy* __pMmcStorageManagerProxy;
82 Tizen::Base::Runtime::Event* __pMountEvent;
83 Tizen::Base::Runtime::Event* __pFormatEvent;
85 }; // _MmcStorageManagerImpl
89 #endif // _FIO_MMC_STORAGE_MANAGER_IMPL_H_