--- /dev/null
+//
+// Copyright (c) 2013 Samsung Electronics Co., Ltd.
+//
+// Licensed under the Apache License, Version 2.0 (the License);
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+//
+
+/**
+ * @file FIo_IMmcStorageManagerServiceListener.h
+ * @brief This is the header file for the _IMmcStorageManagerServiceListener class.
+ */
+
+#ifndef _FIO_INTERNAL_IMMC_STORAGE_MANAGER_SERVICE_LISTENER_H_
+#define _FIO_INTERNAL_IMMC_STORAGE_MANAGER_SERVICE_LISTENER_H_
+
+#include <FBaseResult.h>
+#include <FBaseRtIEventListener.h>
+
+namespace Tizen { namespace Io
+{
+
+/**
+ * @interface _IMmcStorageManagerServiceListener
+ * @brief This interface defines the listener for the events from _MmcStorageManagerService
+ * @since 2.2
+ *
+ * Application should not implement this interface.
+ */
+class _OSP_EXPORT_ _IMmcStorageManagerServiceListener
+ : virtual public Tizen::Base::Runtime::IEventListener
+{
+
+public:
+ ~_IMmcStorageManagerServiceListener(void) {}
+
+ virtual void OnMmcMountResponseReceived(result r) = 0;
+
+ virtual void OnMmcUnmountResponseReceived(result r) = 0;
+
+ virtual void OnMmcFormatResponseReceived(result r) = 0;
+
+}; // _MmcStorageManagerServiceListener
+
+}} // Tizen::Io
+
+#endif // _FIO_INTERNAL_IMMC_STORAGE_MANAGER_SERVICE_LISTENER_H_
+
namespace Tizen { namespace Io {
static const int _MAX_PATH_LENGTH = 256;
-class _IMmcStorageManagerListener;
+class _IMmcStorageManagerServiceListener;
/**
* @class _MmcStorageManagerService
typedef std::pair< std::string, Tizen::Base::String* > _AppListPair;
public:
- result Construct(_IMmcStorageManagerListener* pStub);
+ result Construct(_IMmcStorageManagerServiceListener* pStub);
result Mount(void);
private:
static _MmcStorageManagerService* __pMmcStorageManagerService;
- _IMmcStorageManagerListener* __pStub;
+ _IMmcStorageManagerServiceListener* __pStub;
_AppList __appList;
Tizen::Base::Collection::HashMap* __pVirtualRootList;
friend class Tizen::App::_ContextManager;
#include <FBaseString.h>
#include <FIo_IIpcServerEventListener.h>
-#include <FIo_IMmcStorageManagerListener.h>
+#include <FIo_IMmcStorageManagerServiceListener.h>
namespace Tizen { namespace Io {
class _MmcStorageManagerStub :
public Tizen::Base::Object,
public Tizen::Io::_IIpcServerEventListener,
- public Tizen::Io::_IMmcStorageManagerListener
+ public Tizen::Io::_IMmcStorageManagerServiceListener
{
public:
ospResult = _MmcStorageManagerService::ConvertNativeErrorToResult(response);
SysTryLog(NID_IO, !IsFailed(ospResult), "[%s] Failed to mount MMC, errno: %d (%s)", GetErrorMessage(ospResult), response, strerror(response));
- ((_IMmcStorageManagerListener*)data)->OnMmcMountResponseReceived(ospResult);
+ ((_IMmcStorageManagerServiceListener*)data)->OnMmcMountResponseReceived(ospResult);
}
static void
ospResult = _MmcStorageManagerService::ConvertNativeErrorToResult(response);
SysTryLog(NID_IO, !IsFailed(ospResult), "[%s] Failed to unmount MMC, errno: %d (%s)", GetErrorMessage(ospResult), response, strerror(response));
- ((_IMmcStorageManagerListener*)data)->OnMmcUnmountResponseReceived(ospResult);
+ ((_IMmcStorageManagerServiceListener*)data)->OnMmcUnmountResponseReceived(ospResult);
}
static void
ospResult = _MmcStorageManagerService::ConvertNativeErrorToResult(response);
SysTryLog(NID_IO, !IsFailed(ospResult), "[%s] Failed to format MMC, errno: %d (%s)", GetErrorMessage(ospResult), response, strerror(response));
- ((_IMmcStorageManagerListener*)data)->OnMmcFormatResponseReceived(ospResult);
+ ((_IMmcStorageManagerServiceListener*)data)->OnMmcFormatResponseReceived(ospResult);
}
_MmcStorageManagerService::_MmcStorageManagerService(void)
}
result
-_MmcStorageManagerService::Construct(_IMmcStorageManagerListener* pStub)
+_MmcStorageManagerService::Construct(_IMmcStorageManagerServiceListener* pStub)
{
__pStub = pStub;