29 namespace MediaHubService
35 typedef std::shared_ptr<UriCheck>
Ptr;
38 : is_local_file_(false),
39 local_file_exists_(false)
45 is_local_file_(determine_if_local_file()),
46 local_file_exists_(determine_if_file_exists())
54 void set(
const QUrl &uri)
60 is_local_file_ = determine_if_local_file();
61 local_file_exists_ = determine_if_file_exists();
71 return is_local_file_;
76 return local_file_exists_;
84 bool determine_if_local_file()
86 return uri_.isLocalFile();
89 bool determine_if_file_exists()
94 return QFile::exists(uri_.toLocalFile());
100 bool local_file_exists_;
106 #endif // URI_CHECK_H