Enable build with iniparser v 3.1
[platform/framework/native/appfw.git] / inc / FBaseNumber.h
index df41931..0e16193 100644 (file)
@@ -75,11 +75,16 @@ public:
        virtual ~Number(void) { };
 
        /**
-        *      Gets the @c signed @c char equivalent of the current instance of the %Number class.
+        *      Gets the @c char equivalent of the current instance of the %Number class.
         *
         *      @since 2.0
+        *      @brief  <i> [Deprecated] </i>
         *
-        *      @return         The @c signed @c char equivalent of the current instance
+        *      @deprecated     This method has portability issue.
+        *                      Return value may not be @c signed @c char since char is treated as unsigned char in ARM architecture. @n
+        *                      Use ToInt8() method to get @c int8_t
+        *
+        *      @return         The @c char equivalent of the current instance
         */
        virtual char ToChar(void) const = 0;
 
@@ -146,6 +151,18 @@ public:
         */
        virtual String ToString(void) const = 0;
 
+       /**
+        *      Gets the @c int8_t equivalent of the current instance of the %Number class.
+        *
+        *      @since 3.0
+        *
+        *      @return         The @c int8_t equivalent of the current instance
+        */
+       virtual int8_t ToInt8(void) const
+       {
+               return 0;
+       }
+
 protected:
        //
        // This method is for internal use only. Using this method can cause behavioral, security-related,
@@ -156,15 +173,6 @@ protected:
        //
        virtual void Number_Reserved1(void) { }
 
-       //
-       // This method is for internal use only. Using this method can cause behavioral, security-related,
-       // and consistency-related issues in the application.
-       // This method is reserved and may change its name at any time without prior notice.
-       //
-       // @since 2.0
-       //
-       virtual void Number_Reserved2(void) { }
-
 }; // Number
 
 }}   // Tizen::Base