X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-url.h;h=555e383824b2048a6deddb1bde3586c09d3549b0;hb=HEAD;hp=9a85ee394db6665ea9714ef77d7650b05cfa5a9c;hpb=cb91dc2eda1f14d1240ae366828e8d897059f81c;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/dali-toolkit/internal/visuals/visual-url.h b/dali-toolkit/internal/visuals/visual-url.h index 9a85ee3..8caf716 100644 --- a/dali-toolkit/internal/visuals/visual-url.h +++ b/dali-toolkit/internal/visuals/visual-url.h @@ -2,7 +2,7 @@ #define DALI_TOOLKIT_INTERNAL_VISUAL_URL_H /* - * Copyright (c) 2023 Samsung Electronics Co., Ltd. + * Copyright (c) 2024 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. @@ -20,6 +20,7 @@ // EXTERNAL INCLUDES #include #include +#include namespace Dali { @@ -104,6 +105,12 @@ public: const std::string& GetUrl() const; /** + * Get the ellipsed URL. + * @return The ellipsed url + */ + std::string GetEllipsedUrl() const; + + /** * Get the hash value of full URL * @return The hash value of url */ @@ -143,6 +150,11 @@ public: std::string GetLocation() const; /** + * @return the location part of the url without extension + */ + std::string GetLocationWithoutExtension() const; + + /** * Helper to create a URL of type TEXTURE * @param location the location of the texture * @return the Url @@ -151,10 +163,11 @@ public: /** * Helper to create a URL of type BUFFER - * @param location the location of the texture + * @param[in] location the location of the texture + * @param[in] extension the extension of url * @return the Url */ - static std::string CreateBufferUrl(const std::string& location); + static std::string CreateBufferUrl(const std::string& location, const std::string_view& extension); /** * Helper to get a ProtocolType from url @@ -170,6 +183,13 @@ public: */ static std::string GetLocation(const std::string& url); + /** + * Helper to get a location from url without extension + * @param[in] url the location of the texture + * @return the location without extension + */ + static std::string GetLocationWithoutExtension(const std::string& url); + private: std::string mUrl; Type mType;