Add '-D_SECURE_LOG'
[platform/framework/native/telephony.git] / inc / FTelSimStateManager.h
index 49d5ccc..1b41b91 100755 (executable)
@@ -42,6 +42,68 @@ class _SimStateManagerImpl;
  *
  * The %SimStateManager class provides methods to obtain information and events about the SIM card.
  *
+ * @code
+ *
+ *  #include <FBase.h>
+ *  #include <FTelephony.h>
+ *
+ *  using namespace Tizen::Base;
+ *  using namespace Tizen::Telephony;
+ *
+ *  class MyClass
+ *     : public Object
+ *     , public ITelephonySimEventListener
+ *  {
+ *    public:
+ *     MyClass(void) {}
+ *     ~MyClass(void) {}
+ *
+ *   // ITelephonySimEventListener
+ *      void OnTelephonySimStateChanged(SimState state);
+ *
+ *   void GetSimState (void);
+ * };
+ *
+ *  void
+ *  MyClass::OnTelephonySimStateChanged(SimState state)
+ *  {
+ *             //Do Something.
+ *  }
+ *
+ *  void
+ *  MyClass::GetSimState(void)
+ *  {
+ *     SimStateManager* pSimStateManager = new (std::nothrow) SimStateManager();
+ *     SimInfo simInfo;
+ *     SimState simState = SIM_STATE_UNKNOWN;
+ *
+ *     result r = pSimStateManager->Construct();
+ *     if (IsFailed(r))
+ *     {
+ *             delete pSimStateManager;
+ *             return;
+ *     }
+ *
+ *     r = pSimStateManager->SetSimEventListener(this);
+ *     if (IsFailed(r))
+ *     {
+ *             delete pSimStateManager;
+ *             return;
+ *     }
+ *
+ *     r = pSimStateManager->GetSimInfo(simInfo);
+ *     if (IsFailed(r))
+ *     {
+ *             delete pSimStateManager;
+ *             return;
+ *     }
+ *
+ *     simState = pSimStateManager->GetSimState();
+ *             delete pSimStateManager;
+ *  }
+ *
+ *
+ * @endcode
  */
 class _OSP_EXPORT_ SimStateManager
        : public Tizen::Base::Object
@@ -70,9 +132,10 @@ public:
         *
         * @exception   E_SUCCESS                               The method is successful.
         * @exception   E_SYSTEM                                The method cannot proceed due to a severe system error.
-        * @exception   E_UNSUPPORTED_OPERATION  The Emulator or target device does not support the required feature. @b Since: @b 2.1
-        *                                                                               For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/manifest_features.htm">Application Filtering</a>.
-        * @remarks     Before calling this method, check whether the feature is supported by %Tizen::System::SystemInfo::GetValue() methods.
+        * @exception   E_UNSUPPORTED_OPERATION  The Emulator or target device does not support the required feature.
+        *                                                                               For more information, see <a href="../org.tizen.gettingstarted/html/tizen_overview/application_filtering.htm">Application Filtering</a>.
+        * @remarks     Before calling this method, check whether the feature is supported by 
+        *                      Tizen::System::SystemInfo::GetValue(const Tizen::Base::String&, bool&).
         */
        result Construct(void);