Change event sync to async
[platform/framework/native/appfw.git] / src / io / inc / FIo_MmcStorageManagerProxy.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16
17 /**
18  * @file        FIo_MmcStorageManagerProxy.h
19  * @brief       This is the header file of the _MmcStorageManagerProxy class.
20  */
21
22 #ifndef _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_
23 #define _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_
24
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
27
28 #include <FIo_IIpcClientEventListener.h>
29
30 namespace Tizen { namespace Io
31 {
32
33 class _IMmcStorageServiceEventListener;
34 class _IpcClient;
35
36 class _MmcStorageManagerProxy
37         : public Tizen::Io::_IIpcClientEventListener
38         , public Tizen::Base::Object
39 {
40 public:
41         _MmcStorageManagerProxy(void);
42         virtual ~_MmcStorageManagerProxy(void);
43
44         result Construct(_IMmcStorageServiceEventListener* pListener);
45
46         result Mount(void);
47         result Unmount(void);
48         result Format(void);
49
50         virtual void OnIpcResponseReceived(Tizen::Io::_IpcClient& client, const IPC::Message& message);
51
52         void MountResponseReceived(result r);
53         void UnmountResponseReceived(result r);
54         void FormatResponseReceived(result r);
55
56 private:
57         _MmcStorageManagerProxy(const _MmcStorageManagerProxy& rhs);
58
59         _MmcStorageManagerProxy& operator =(const _MmcStorageManagerProxy& rhs);
60
61 private:
62         _IpcClient* __pIpcClient;
63         _IMmcStorageServiceEventListener* __pListener;
64
65 }; // _MmcStorageManagerProxy
66
67 } } // Tizen::App
68
69 #endif // _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_