#include <KDirWatch>
#include <klocale.h>
#include <kdeversion.h>
+#include <KIO/CopyJob>
#if KDE_IS_VERSION(4,5,0)
#include <KImageCache>
class DocClipBase;
class AbstractGroupItem;
+
+class SolidVolumeInfo
+{
+
+public:
+
+ QString path; // mount path of volume, with trailing slash
+ QString uuid; // UUID as from Solid
+ QString label; // volume label (think of CDs)
+ bool isRemovable; // may be removed
+ bool isMounted;
+
+ bool isNull() const { return path.isNull(); }
+};
+
namespace Mlt
{
class Producer;
void slotAddTextTemplateClip(QString titleName, const KUrl &path, const QString &group, const QString &groupId);
void slotAddXmlClipFile(const QString &name, const QDomElement &xml, const QString &group, const QString &groupId);
void slotAddColorClipFile(const QString &name, const QString &color, QString duration, const QString &group, const QString &groupId);
- void slotAddSlideshowClipFile(const QString &name, const QString &path, int count, const QString &duration,
- const bool loop, const bool crop,const bool fade,
- const QString &luma_duration, const QString &luma_file, const int softness,
- const QString &animation, const QString &group, const QString &groupId);
+ void slotAddSlideshowClipFile(QMap <QString, QString> properties, const QString &group, const QString &groupId);
DocClipBase *getClipById(QString clipId);
const QList <DocClipBase *> getClipByResource(QString resource);
void slotDeleteClips(QStringList ids);
void slotProcessModifiedClips();
void slotGetThumbs();
void slotGetAudioThumbs();
+ /** @brief Clip has been copied, add it now. */
+ void slotAddClip(KIO::Job *job, const KUrl &, const KUrl &dst);
private: // Private attributes
/** the list of clips in the document */
bool m_abortAudioThumb;
/** @brief The id of currently processed clip for audio thumbs creation. */
QString m_processingAudioThumbId;
+ /** @brief The list of removable drives. */
+ QList<SolidVolumeInfo> m_removableVolumes;
+
+ /** @brief Get a list of drives, to check if we have files on removable media. */
+ void listRemovableVolumes();
+ /** @brief Check if added file is on a removable drive. */
+ bool isOnRemovableDevice(const KUrl &url);
signals:
void reloadClip(const QString &);