+void FileNaming::setTemporaryVideoPath(const QString& path) {
+ QString p = canonicalPath(path);
+
+ if (m_temporaryVideoPath != p) {
+ m_temporaryVideoPath = p;
+ emit temporaryVideoPathChanged();
+ }
+}
+
+Settings *FileNaming::settings() const {
+ return m_settings;
+}
+
+void FileNaming::setSettings(Settings *settings) {
+ if (m_settings != settings) {
+ m_settings = settings;
+
+ emit settingsChanged();
+ }
+}
+
+void FileNaming::classBegin() {
+ // Nothing
+}
+
+void FileNaming::componentComplete() {
+ if (QDir(m_imagePath).canonicalPath() == QDir(m_videoPath).canonicalPath()) {
+ m_index = new SingleFileIndex(m_settings);
+ }
+ else {
+ m_index = new MultiFileIndex(m_settings);
+ }