[Tizen] Fix Coverity issues
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / gif-loading.h
old mode 100644 (file)
new mode 100755 (executable)
index dd0a94e..6143f15
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTERNAL_GIF_LOADING_H__
-#define __DALI_INTERNAL_GIF_LOADING_H__
+#ifndef DALI_INTERNAL_GIF_LOADING_H
+#define DALI_INTERNAL_GIF_LOADING_H
 
 /*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,9 @@
 #include <dali/public-api/common/vector-wrapper.h>
 #include <dali/public-api/math/uint-16-pair.h>
 
+// INTERNAL INCLUDES
+#include <dali/public-api/dali-adaptor-common.h>
+
 namespace Dali
 {
 class PixelData;
@@ -37,19 +40,26 @@ typedef Dali::Uint16Pair ImageDimensions;
  * is released. (This is to speed up frame loads, which would otherwise have to re-acquire the
  * data from disk)
  */
-class DALI_IMPORT_API GifLoading
+class DALI_ADAPTOR_API GifLoading
 {
 public:
 
-  static std::unique_ptr<GifLoading> New( const std::string& url );
+  /**
+   * Create a GifLoading with the given url and resourceType.
+   * @param[in] url The url of the gif image to load
+   * @param[in] isLocalResource The true or false whether this is a local resource.
+   * @return A newly created GifLoading.
+   */
+  static std::unique_ptr<GifLoading> New( const std::string& url, bool isLocalResource );
 
   /**
    * @brief Constructor
    *
    * Construct a Loader with the given URL
    * @param[in] url The url of the gif image to load
+   * @param[in] isLocalResource The true or false whether this is a local resource.
    */
-  GifLoading( const std::string& url );
+  GifLoading( const std::string& url, bool isLocalResource );
 
   // Moveable but not copyable
 
@@ -119,4 +129,4 @@ private:
 
 } // namespace Dali
 
-#endif // __DALI_INTERNAL_GIF_LOADING_H__
+#endif // DALI_INTERNAL_GIF_LOADING_H