| 226 | } |
| 227 | |
| 228 | Io::DeviceType Io::getDeviceType(const std::string &path) { |
| 229 | |
| 230 | Io::DeviceType type = Io::DeviceType::Local; |
| 231 | |
| 232 | if (c2d::Utility::startWith(path, "http://")) { |
| 233 | type = pplay::Io::DeviceType::Http; |
| 234 | } else if (c2d::Utility::startWith(path, "ftp://")) { |
| 235 | type = pplay::Io::DeviceType::Ftp; |
| 236 | } else if (c2d::Utility::startWith(path, "smb://")) { |
| 237 | type = pplay::Io::DeviceType::Smb; |
| 238 | } |
| 239 | |
| 240 | return type; |
| 241 | } |
| 242 | |
| 243 | Io::~Io() { |
| 244 | delete (browser); |
no outgoing calls
no test coverage detected