Revert commit ID eb415081365ae7736bf6d0436d008d374c34a884
[platform/framework/native/appfw.git] / src / io / inc / FIo_MmcStorageManagerProxy.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_MmcStorageManagerProxy.h
20  * @brief       This is the header file of the _MmcStorageManagerProxy class.
21  */
22
23 #ifndef _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_
24 #define _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_
25
26 #include <FBaseObject.h>
27 #include <FBaseString.h>
28
29 #include <FIo_IIpcClientEventListener.h>
30
31 namespace Tizen { namespace Io
32 {
33
34 class _IMmcStorageServiceEventListener;
35 class _IpcClient;
36
37 class _MmcStorageManagerProxy
38         : public Tizen::Io::_IIpcClientEventListener
39         , public Tizen::Base::Object
40 {
41 public:
42         _MmcStorageManagerProxy(void);
43         virtual ~_MmcStorageManagerProxy(void);
44
45         result Construct(_IMmcStorageServiceEventListener* pListener);
46
47         result Mount(void);
48         result Unmount(void);
49         result Format(void);
50
51         virtual void OnIpcResponseReceived(Tizen::Io::_IpcClient& client, const IPC::Message& message);
52
53         void MountResponseReceived(result r);
54         void UnmountResponseReceived(result r);
55         void FormatResponseReceived(result r);
56
57 private:
58         _MmcStorageManagerProxy(const _MmcStorageManagerProxy& rhs);
59
60         _MmcStorageManagerProxy& operator =(const _MmcStorageManagerProxy& rhs);
61
62 private:
63         _IpcClient* __pIpcClient;
64         _IMmcStorageServiceEventListener* __pListener;
65
66 }; // _MmcStorageManagerProxy
67
68 } } // Tizen::App
69
70 #endif // _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_