2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
8 // http://www.apache.org/licenses/LICENSE-2.0
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.
18 * @file FIo_MmcStorageManagerProxy.h
19 * @brief This is the header file of the _MmcStorageManagerProxy class.
22 #ifndef _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_
23 #define _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_
25 #include <FBaseObject.h>
26 #include <FBaseString.h>
28 #include <FIo_IIpcClientEventListener.h>
29 #include <FIo_IMmcStorageManagerListener.h>
31 namespace Tizen { namespace Io
36 class _MmcStorageManagerProxy
37 : public Tizen::Io::_IIpcClientEventListener
38 , public Tizen::Base::Object
41 _MmcStorageManagerProxy(void);
43 virtual ~_MmcStorageManagerProxy(void);
45 result Construct(void);
53 virtual void OnIpcResponseReceived(Tizen::Io::_IpcClient& client, const IPC::Message& message);
55 void MountResponseReceived(result r);
57 void UnmountResponseReceived(result r);
59 void FormatResponseReceived(result r);
61 void SetMmcStorageManagerListener(_IMmcStorageManagerListener* pListener);
63 static _MmcStorageManagerProxy* GetInstance(void);
66 _MmcStorageManagerProxy(const _MmcStorageManagerProxy& rhs);
68 _MmcStorageManagerProxy& operator =(const _MmcStorageManagerProxy& rhs);
70 static void InitSingleton(void);
72 static void DestroySingleton(void);
75 static _MmcStorageManagerProxy* __pMmcStorageManagerProxyInstance;
76 _IpcClient* __pIpcClient;
77 _IMmcStorageManagerListener* __pListener;
79 }; // _MmcStorageManagerProxy
83 #endif // _FIO_INTERNAL_MMC_STORAGE_MANAGER_PROXY_H_