Merge "Revert "Fix duplicated alarms."" into tizen_2.2
[platform/framework/native/appfw.git] / inc / FIoMmcStorageManager.h
index b5182d6..e30a068 100644 (file)
@@ -1,5 +1,4 @@
 //
-// Open Service Platform
 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
 //
 // Licensed under the Apache License, Version 2.0 (the License);
@@ -34,18 +33,63 @@ namespace Tizen { namespace Io
 {
 
 /**
-* @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
 {