2 * Copyright (C) 2012 Team XBMC
5 * This Program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2, or (at your option)
10 * This Program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
23 #include "utils/StringUtils.h"
24 #include "utils/URIUtils.h"
44 std::string CDbUrl::ToString() const
52 bool CDbUrl::FromString(const std::string &dbUrl)
65 void CDbUrl::AppendPath(const std::string &subPath)
67 if (!m_valid || subPath.empty())
70 m_url.SetFileName(URIUtils::AddFileToFolder(m_url.GetFileName(), subPath));
73 void CDbUrl::updateOptions()
75 // Update the options string in the CURL object
76 string options = GetOptionsString();
78 options = "?" + options;
80 m_url.SetOptions(options);