Fix : Search APIs don't return exception despite the content in DB doesn't match... 40/13240/1
authorSeokpil Park <seokpil.park@samsung.com>
Wed, 25 Sep 2013 10:03:06 +0000 (19:03 +0900)
committerSeokpil Park <seokpil.park@samsung.com>
Fri, 29 Nov 2013 12:27:23 +0000 (21:27 +0900)
Change-Id: Iae7baef55485d6e2465a7c675ba88cf41246dfca
Signed-off-by: Seokpil Park <seokpil.park@samsung.com>
inc/FCntContentInfo.h
inc/FCntTypes.h
src/FCntAudioContentInfo.cpp
src/FCntImageContentInfo.cpp
src/FCntOtherContentInfo.cpp
src/FCntVideoContentInfo.cpp

index 750d8e9..f34fd92 100644 (file)
@@ -139,11 +139,11 @@ public:
        Tizen::Base::String GetMimeType(void) const;
 
        /**
-        * Gets the date and time of the created content.
+        * Gets the date and time of the added content.
         *
         * @since               2.0
         *
-        * @return              The content's creation time (GMT)
+        * @return              The added time to database (GMT)
         */
        Tizen::Base::DateTime GetDateTime(void) const;
 
index de52121..6743f57 100644 (file)
@@ -88,8 +88,8 @@ enum ImageOrientationType
 enum DownloadNetworkType
 {
        DOWNLOAD_NETWORK_DATA_NETWORK = 1,      /**< The data network is allowed */
-       DOWNLOAD_NETWORK_WIFI,                  /*< The wifi network is allowed */
-       DOWNLOAD_NETWORK_ALL = 100              /*< The all network types are allowed */
+       DOWNLOAD_NETWORK_WIFI,                  /**< The wifi network is allowed */
+       DOWNLOAD_NETWORK_ALL = 100              /**< The all network types are allowed */
 };
 
 /**
index 0221df5..87fc4aa 100644 (file)
@@ -55,7 +55,7 @@ AudioContentInfo::Construct(const String& contentPath, const String& thumbnailPa
        SysTryReturnResult(NID_CNT, pAudioContentInfoImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Construct failed.");
 
        r = pAudioContentInfoImpl->Construct(contentPath, thumbnailPath, setGps);
-       SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryCatch(NID_CNT, r == E_SUCCESS || r == E_FILE_NOT_FOUND, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        _ContentInfoHelper::SetContentInfoImpl(this, pAudioContentInfoImpl);
 
index 5d6994f..0e4ff3b 100644 (file)
@@ -54,7 +54,7 @@ ImageContentInfo::Construct(const String& contentPath, const String& thumbnailPa
        SysTryReturnResult(NID_CNT, pImageContentInfoImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Construct failed.");
 
        r = pImageContentInfoImpl->Construct(contentPath, thumbnailPath, setGps);
-       SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryCatch(NID_CNT, r == E_SUCCESS || r == E_FILE_NOT_FOUND, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        _ContentInfoHelper::SetContentInfoImpl(this, pImageContentInfoImpl);
 
index 9bbc74c..8a234c1 100644 (file)
@@ -54,7 +54,7 @@ OtherContentInfo::Construct(const String& contentPath, const String& thumbnailPa
        SysTryReturnResult(NID_CNT, pOtherContentInfoImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Construct failed.");
 
        r = pOtherContentInfoImpl->Construct(contentPath, thumbnailPath, setGps);
-       SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryCatch(NID_CNT, r == E_SUCCESS || r == E_FILE_NOT_FOUND, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        _ContentInfoHelper::SetContentInfoImpl(this, pOtherContentInfoImpl);
 
index 2223cb8..c2d5018 100644 (file)
@@ -55,7 +55,7 @@ VideoContentInfo::Construct(const String& contentPath, const String& thumbnailPa
        SysTryReturnResult(NID_CNT, pVideoContentInfoImpl != null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Construct failed.");
 
        r = pVideoContentInfoImpl->Construct(contentPath, thumbnailPath, setGps);
-       SysTryCatch(NID_CNT, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
+       SysTryCatch(NID_CNT, r == E_SUCCESS || r == E_FILE_NOT_FOUND, , r, "[%s] Propagating.", GetErrorMessage(r));
 
        _ContentInfoHelper::SetContentInfoImpl(this, pVideoContentInfoImpl);