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>
32 #include <FIoMmcStorageManager.h>
34 #include <FIo_IMmcStorageServiceEventListener.h>
36 /*namespace Tizen { namespace Base
44 namespace Tizen { namespace Io
47 class MmcStorageManager;
48 class _MmcStorageManagerProxy;
49 class IMmcStorageMountListener;
50 class IMmcStorageFormatListener;
52 class _OSP_EXPORT_ _MmcStorageManagerImpl
53 : public Tizen::Base::Object
54 , public Tizen::Io::_IMmcStorageServiceEventListener
58 _MmcStorageManagerImpl(void);
60 ~_MmcStorageManagerImpl(void);
62 result Construct(void);
64 static _MmcStorageManagerImpl* GetInstance(void);
72 result AddMmcStorageMountListener(IMmcStorageMountListener& listener);
74 result RemoveMmcStorageMountListener(IMmcStorageMountListener& listener);
76 result AddMmcStorageFormatListener(IMmcStorageFormatListener& listener);
78 result RemoveMmcStorageFormatListener(IMmcStorageFormatListener& listener);
80 virtual result OnMmcMountResponseReceived(result r);
82 virtual result OnMmcUnmountResponseReceived(result r);
84 virtual result OnMmcFormatResponseReceived(result r);
87 _MmcStorageManagerImpl& operator =(const _MmcStorageManagerImpl& source);
89 _MmcStorageManagerImpl(const _MmcStorageManagerImpl& source);
92 _MmcStorageManagerProxy* __pMmcStorageManagerProxy;
93 Tizen::Base::Collection::LinkedListT<IMmcStorageMountListener*> __pMmcMountListener;
94 Tizen::Base::Collection::LinkedListT<IMmcStorageFormatListener*> __pMmcFormatListener;
96 }; // _MmcStorageManagerImpl
100 #endif // _FIO_MMC_STORAGE_MANAGER_IMPL_H_