Change _IMmcStorageServiceEventListener to _IMmcStorageManagerListener
authorHyunbin Lee <hyunbin.lee@samsung.com>
Wed, 24 Jul 2013 02:34:50 +0000 (11:34 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Wed, 24 Jul 2013 02:34:50 +0000 (11:34 +0900)
Change-Id: I146c97de1c660693292be23c996b6595521df512
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
inc/FIo_MmcStorageManagerService.h
inc/FIo_MmcStorageManagerStub.h
src/FIo_MmcStorageManagerService.cpp

index e6b0f25..4999669 100644 (file)
@@ -41,7 +41,7 @@
 namespace Tizen { namespace Io  {
 
 static const int _MAX_PATH_LENGTH = 256;
-class _IMmcStorageServiceEventListener;
+class _IMmcStorageManagerListener;
 
 /**
  * @class      _MmcStorageManagerService
@@ -56,7 +56,7 @@ class _MmcStorageManagerService
        typedef std::pair< std::string, Tizen::Base::String* > _AppListPair;
 
 public:
-       result Construct(_IMmcStorageServiceEventListener* pStub);
+       result Construct(_IMmcStorageManagerListener* pStub);
 
        result Mount(void);
 
@@ -83,7 +83,7 @@ private:
 
 private:
        static _MmcStorageManagerService* __pMmcStorageManagerService;
-       _IMmcStorageServiceEventListener* __pStub;
+       _IMmcStorageManagerListener* __pStub;
        _AppList __appList;
        Tizen::Base::Collection::HashMap* __pVirtualRootList;
        friend class Tizen::App::_ContextManager;
index a3d4554..8c843dd 100644 (file)
@@ -28,7 +28,7 @@
 #include <FBaseString.h>
 
 #include <FIo_IIpcServerEventListener.h>
-#include <FIo_IMmcStorageServiceEventListener.h>
+#include <FIo_IMmcStorageManagerListener.h>
 
 
 namespace Tizen { namespace Io {
@@ -38,7 +38,7 @@ class _MmcStorageManagerService;
 class _MmcStorageManagerStub :
        public Tizen::Base::Object,
        public Tizen::Io::_IIpcServerEventListener,
-       public Tizen::Io::_IMmcStorageServiceEventListener
+       public Tizen::Io::_IMmcStorageManagerListener
 {
 
 public:
index 933b70a..6fc66a9 100644 (file)
@@ -96,7 +96,7 @@ MmcMountCb(int response, void* data)
 
        ospResult = _MmcStorageManagerService::ConvertNativeErrorToResult(response);
        SysTryLog(NID_IO, !IsFailed(ospResult), "[%s] Failed to mount MMC, errno: %d (%s)", GetErrorMessage(ospResult), response, strerror(response));
-       ((_IMmcStorageServiceEventListener*)data)->OnMmcMountResponseReceived(ospResult);
+       ((_IMmcStorageManagerListener*)data)->OnMmcMountResponseReceived(ospResult);
 }
 
 static void
@@ -107,7 +107,7 @@ MmcUnmountCb(int response, void* data)
 
        ospResult = _MmcStorageManagerService::ConvertNativeErrorToResult(response);
        SysTryLog(NID_IO, !IsFailed(ospResult), "[%s] Failed to unmount MMC, errno: %d (%s)", GetErrorMessage(ospResult), response, strerror(response));
-       ((_IMmcStorageServiceEventListener*)data)->OnMmcUnmountResponseReceived(ospResult);
+       ((_IMmcStorageManagerListener*)data)->OnMmcUnmountResponseReceived(ospResult);
 }
 
 static void
@@ -118,7 +118,7 @@ MmcFormatCb(int response, void* data)
 
        ospResult = _MmcStorageManagerService::ConvertNativeErrorToResult(response);
        SysTryLog(NID_IO, !IsFailed(ospResult), "[%s] Failed to format MMC, errno: %d (%s)", GetErrorMessage(ospResult), response, strerror(response));
-       ((_IMmcStorageServiceEventListener*)data)->OnMmcFormatResponseReceived(ospResult);
+       ((_IMmcStorageManagerListener*)data)->OnMmcFormatResponseReceived(ospResult);
 }
 
 _MmcStorageManagerService::_MmcStorageManagerService(void)
@@ -147,7 +147,7 @@ _MmcStorageManagerService::GetInstance(void)
 }
 
 result
-_MmcStorageManagerService::Construct(_IMmcStorageServiceEventListener* pStub)
+_MmcStorageManagerService::Construct(_IMmcStorageManagerListener* pStub)
 {
        __pStub = pStub;