X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-url.h;h=aac605c820e441edd1d7cb8628d69ebce975a9a7;hp=96bd6353bb2c4f85b29b095135493f34ef83ed7c;hb=59314022f6789147a47a8b098433e211b6185625;hpb=0dba002791383a83d22f94e2584d85dbd67026d0 diff --git a/dali-toolkit/internal/visuals/visual-url.h b/dali-toolkit/internal/visuals/visual-url.h index 96bd635..aac605c 100644 --- a/dali-toolkit/internal/visuals/visual-url.h +++ b/dali-toolkit/internal/visuals/visual-url.h @@ -43,7 +43,7 @@ public: GIF }; - enum Location + enum ProtocolType { LOCAL, ///< file in local file system TEXTURE, ///< texture uploaded to texture manager @@ -91,7 +91,7 @@ public: * Is the URL is local to the device, or remote? * @return the location of the resource */ - Location GetLocation() const; + ProtocolType GetProtocolType() const; /** * Is the URL valid? @@ -104,10 +104,22 @@ public: */ bool IsLocalResource() const; + /** + * @return the location part of the url + */ + std::string GetLocation() const; + + /** + * Helper to create a URL of type TEXTURE + * @param location the location of the texture + * @return the Url + */ + static std::string CreateTextureUrl( const std::string& location ); + private: std::string mUrl; Type mType; - Location mLocation; + ProtocolType mLocation; };