2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
12 #include "utils/UrlOptions.h"
18 class CDbUrl
: CUrlOptions
24 bool IsValid() const { return m_valid
; }
27 std::string
ToString() const;
28 bool FromString(const std::string
&dbUrl
);
30 const std::string
& GetType() const { return m_type
; }
31 void AppendPath(const std::string
&subPath
);
33 using CUrlOptions::GetOption
;
34 using CUrlOptions::GetOptions
;
35 using CUrlOptions::GetOptionsString
;
36 using CUrlOptions::HasOption
;
38 void AddOption(const std::string
&key
, const char *value
) override
;
39 void AddOption(const std::string
&key
, const std::string
&value
) override
;
40 void AddOption(const std::string
&key
, int value
) override
;
41 void AddOption(const std::string
&key
, float value
) override
;
42 void AddOption(const std::string
&key
, double value
) override
;
43 void AddOption(const std::string
&key
, bool value
) override
;
44 void AddOptions(const std::string
&options
) override
;
45 void RemoveOption(const std::string
&key
) override
;
48 virtual bool parse() = 0;
49 virtual bool validateOption(const std::string
&key
, const CVariant
&value
);