1 #ifndef DALI_TOOLKIT_INTERNAL_VISUAL_URL_H
2 #define DALI_TOOLKIT_INTERNAL_VISUAL_URL_H
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
36 * The type of the URL based on the string contents
53 * Default Constructor.
54 * Resulting URL is not valid
60 * Determines type of visual and whether the url is local or remote
61 * @param[in] url The URL to store and resolve
63 VisualUrl( const std::string& url );
67 * @param[in] url The VisualUrl to copy
69 VisualUrl( const VisualUrl& url );
73 * @param[in] url The VisualUrl to copy
75 VisualUrl& operator=( const VisualUrl& url );
81 const std::string& GetUrl() const;
84 * Get the visual type of the URL
85 * @return The visual type of the URL
90 * Is the URL is local to the device, or remote?
91 * @return the location of the resource
93 Location GetLocation() const;
97 * @return true if the URL has length
102 * @return true if the location is LOCAL
104 bool IsLocal() const;
113 } // namespace Internal
115 } // namespace Toolkit
119 #endif /* DALI_TOOLKIT_INTERNAL_VISUAL_URL_H */