1 #ifndef DALI_WEB_ENGINE_CONSOLE_MESSAGE_H
2 #define DALI_WEB_ENGINE_CONSOLE_MESSAGE_H
5 * Copyright (c) 2021 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.
27 * @brief A class WebEngineConsoleMessage for console message of web engine.
29 class WebEngineConsoleMessage
33 * @brief Enumeration that provides level of log severity.
35 enum class SeverityLevel
48 WebEngineConsoleMessage() = default;
53 virtual ~WebEngineConsoleMessage() = default;
56 * @brief Return the source of the console message.
57 * @return source of the console message if succeded or empty string if failed
59 virtual std::string GetSource() const = 0;
62 * @brief Return line no of the console message.
63 * @return the line number of the message if succeded or 0 if failed
65 virtual uint32_t GetLine() const = 0;
68 * @brief Return the log severity of the console message.
69 * @return SeverityLevel indicating the console message level
71 virtual SeverityLevel GetSeverityLevel() const = 0;
74 * @brief Return the console message text.
75 * @return console message text if succeded or empty string if failed
77 virtual std::string GetText() const = 0;
82 #endif // DALI_WEB_ENGINE_CONSOLE_MESSAGE_H