Merge "Fix memory leaks in Locales" into tizen_2.1
[platform/framework/native/appfw.git] / src / io / inc / FIo_MmcStorageManagerImpl.h
1 //
2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
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
8 //
9 //     http://www.apache.org/licenses/LICENSE-2.0
10 //
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.
16 //
17
18 /**
19  * @file        FIo_MmcStorageManagerImpl.h
20  * @brief       This is the header file for the %_MmcStorageManagerImpl class.
21  *
22  * This header file contains the declarations of the %_MmcStorageManagerImpl class.
23  */
24
25 #ifndef _FIO_MMC_STORAGE_MANAGER_IMPL_H_
26 #define _FIO_MMC_STORAGE_MANAGER_IMPL_H_
27
28 #include <FBaseObject.h>
29 #include <FBaseInternalTypes.h>
30 #include <FBaseColLinkedListT.h>
31 #include <FBaseRtEvent.h>
32
33 #include <FIoMmcStorageManager.h>
34
35 #include "FIo_IMmcStorageServiceEventListener.h"
36
37 namespace Tizen { namespace Io
38 {
39
40 class MmcStorageManager;
41 class _MmcStorageManagerProxy;
42 class IMmcStorageMountListener;
43 class IMmcStorageFormatListener;
44
45 class _OSP_EXPORT_ _MmcStorageManagerImpl
46         : public _IMmcStorageServiceEventListener
47 {
48
49 public:
50         ~_MmcStorageManagerImpl(void);
51
52         static _MmcStorageManagerImpl* GetInstance(void);
53
54         result Mount(void);
55
56         result Unmount(void);
57
58         result Format(void);
59
60         result AddMmcStorageMountListener(IMmcStorageMountListener& listener);
61
62         result RemoveMmcStorageMountListener(IMmcStorageMountListener& listener);
63
64         result AddMmcStorageFormatListener(IMmcStorageFormatListener& listener);
65
66         result RemoveMmcStorageFormatListener(IMmcStorageFormatListener& listener);
67
68         virtual void OnMmcMountResponseReceived(result r);
69
70         virtual void OnMmcUnmountResponseReceived(result r);
71
72         virtual void OnMmcFormatResponseReceived(result r);
73
74 private:
75         _MmcStorageManagerImpl(void);
76         result Construct(void);
77
78         _MmcStorageManagerImpl(const _MmcStorageManagerImpl& source);
79         _MmcStorageManagerImpl& operator =(const _MmcStorageManagerImpl& source);
80
81 private:
82         _MmcStorageManagerProxy* __pMmcStorageManagerProxy;
83         Tizen::Base::Runtime::Event* __pMountEvent;
84         Tizen::Base::Runtime::Event* __pFormatEvent;
85
86 }; // _MmcStorageManagerImpl
87
88 }} // Tizen::Io
89
90 #endif // _FIO_MMC_STORAGE_MANAGER_IMPL_H_
91