sync with tizen_2.0
[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
32 #include <FIoMmcStorageManager.h>
33
34 #include <FIo_IMmcStorageServiceEventListener.h>
35
36 /*namespace Tizen { namespace Base
37 {
38 namespace Collection
39 {
40 class LinkedListT;
41 }
42 }}*/
43
44 namespace Tizen { namespace Io
45 {
46
47 class MmcStorageManager;
48 class _MmcStorageManagerProxy;
49 class IMmcStorageMountListener;
50 class IMmcStorageFormatListener;
51
52 class _OSP_EXPORT_ _MmcStorageManagerImpl
53         : public Tizen::Base::Object
54         , public Tizen::Io::_IMmcStorageServiceEventListener
55 {
56
57 public:
58         _MmcStorageManagerImpl(void);
59
60         ~_MmcStorageManagerImpl(void);
61
62         result Construct(void);
63
64         static _MmcStorageManagerImpl* GetInstance(void);
65
66         result Mount(void);
67
68         result Unmount(void);
69
70         result Format(void);
71
72         result AddMmcStorageMountListener(IMmcStorageMountListener& listener);
73
74         result RemoveMmcStorageMountListener(IMmcStorageMountListener& listener);
75
76         result AddMmcStorageFormatListener(IMmcStorageFormatListener& listener);
77
78         result RemoveMmcStorageFormatListener(IMmcStorageFormatListener& listener);
79
80         virtual result OnMmcMountResponseReceived(result r);
81
82         virtual result OnMmcUnmountResponseReceived(result r);
83
84         virtual result OnMmcFormatResponseReceived(result r);
85
86 private:
87         _MmcStorageManagerImpl& operator =(const _MmcStorageManagerImpl& source);
88
89         _MmcStorageManagerImpl(const _MmcStorageManagerImpl& source);
90
91 private:
92         _MmcStorageManagerProxy* __pMmcStorageManagerProxy;
93         Tizen::Base::Collection::LinkedListT<IMmcStorageMountListener*> __pMmcMountListener;
94         Tizen::Base::Collection::LinkedListT<IMmcStorageFormatListener*> __pMmcFormatListener;
95
96 }; // _MmcStorageManagerImpl
97
98 }} // Tizen::Io
99
100 #endif // _FIO_MMC_STORAGE_MANAGER_IMPL_H_
101