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 FIo_MmcStorageManagerImpl.h
20 * @brief This is the header file for the %_MmcStorageManagerImpl class.
22 * This header file contains the declarations of the %_MmcStorageManagerImpl class.
25 #ifndef _FIO_MMC_STORAGE_MANAGER_IMPL_H_
26 #define _FIO_MMC_STORAGE_MANAGER_IMPL_H_
28 #include <FBaseObject.h>
29 #include <FBaseInternalTypes.h>
30 #include <FBaseColLinkedListT.h>
31 #include <FBaseRtEvent.h>
33 #include <FIoMmcStorageManager.h>
35 #include "FIo_IMmcStorageServiceEventListener.h"
37 namespace Tizen { namespace Io
40 class MmcStorageManager;
41 class _MmcStorageManagerProxy;
42 class IMmcStorageMountListener;
43 class IMmcStorageFormatListener;
45 class _OSP_EXPORT_ _MmcStorageManagerImpl
46 : public _IMmcStorageServiceEventListener
50 ~_MmcStorageManagerImpl(void);
52 static _MmcStorageManagerImpl* GetInstance(void);
60 result AddMmcStorageMountListener(IMmcStorageMountListener& listener);
62 result RemoveMmcStorageMountListener(IMmcStorageMountListener& listener);
64 result AddMmcStorageFormatListener(IMmcStorageFormatListener& listener);
66 result RemoveMmcStorageFormatListener(IMmcStorageFormatListener& listener);
68 virtual void OnMmcMountResponseReceived(result r);
70 virtual void OnMmcUnmountResponseReceived(result r);
72 virtual void OnMmcFormatResponseReceived(result r);
75 _MmcStorageManagerImpl(void);
76 result Construct(void);
78 _MmcStorageManagerImpl(const _MmcStorageManagerImpl& source);
79 _MmcStorageManagerImpl& operator =(const _MmcStorageManagerImpl& source);
82 _MmcStorageManagerProxy* __pMmcStorageManagerProxy;
83 Tizen::Base::Runtime::Event* __pMountEvent;
84 Tizen::Base::Runtime::Event* __pFormatEvent;
86 }; // _MmcStorageManagerImpl
90 #endif // _FIO_MMC_STORAGE_MANAGER_IMPL_H_