//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
{
/**
-* @class MmcStorageManager
-* @brief This class provides methods to mount, unmount, and format external MMC.
-*
-* @since 2.0
-*
-* @final This class is not intended for extension.
-*
-* The %MmcStorageManager class provides methods to mount, unmount, and format external MMC.
-*
-* @see IMmcStorageMountListener
-* @see IMmcStorageFormatListener
-*/
+ * @class MmcStorageManager
+ * @brief This class provides methods to mount, unmount, and format external MMC.
+ *
+ * @since 2.0
+ *
+ * @final This class is not intended for extension.
+ *
+ * The %MmcStorageManager class provides methods to mount, unmount, and format external MMC.
+ *
+ * @see IMmcStorageMountListener
+ * @see IMmcStorageFormatListener
+ *
+ * @code
+ *
+ * #include <FBase.h>
+ * #include <FIo.h>
+ *
+ * using namespace Tizen::Base;
+ * using namespace Tizen::Io;
+ *
+ * class MyMmcStorageMountListener
+ * : public Tizen::Io::IMmcStorageMountListener
+ * {
+ * public:
+ * void OnMmcStorageMounted (result r)
+ * {
+ * if (!IsFailed(r))
+ * {
+ * AppLog(“External MMC is mounted”);
+ * }
+ * }
+ *
+ * void OnMmcStorageUnmounted (result r)
+ * {
+ * if (!IsFailed(r))
+ * {
+ * AppLog(“External MMC is unmounted”);
+ * }
+ * }
+ * };
+ *
+ * void
+ * MyClass::Execute(void)
+ * {
+ * MyMmcStorageMountListener* pMyMmcStorageMountListener = new MyMmcStorageMountListener();
+ *
+ * MmcStorageManager* pMmcStorageMgr = new MmcStorageManager();
+ *
+ * pMmcStorageMgr->AddMmcStorageMountListener(*pMyMmcStorageMountListener);
+ *
+ * pMmcStorageMgr->Mount();
+ *
+ * pMmcStorageMgr->Unmount();
+ * }
+ *
+ * @endcode
+ */
class _OSP_EXPORT_ MmcStorageManager
: public Tizen::Base::Object
{
*
* @since 2.0
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/settingmanager.write @n
+ * (%http://tizen.org/privilege/systemsetting.read is deprecated.)
*
* @return An error code
* @exception E_SUCCESS Mount operation is successfully started.
*
* @since 2.0
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/settingmanager.write @n
+ * (%http://tizen.org/privilege/systemsetting.read is deprecated.)
*
* @return An error code
* @exception E_SUCCESS Unmount operation is successfully started.
*
* @since 2.0
* @privlevel platform
- * @privilege %http://tizen.org/privilege/systemsetting.read
+ * @privilege %http://tizen.org/privilege/settingmanager.write @n
+ * (%http://tizen.org/privilege/systemsetting.read is deprecated.)
*
* @return An error code
* @exception E_SUCCESS Format operation is successfully started.