/*!
* This file is part of CameraPlus.
*
- * Copyright (C) 2012 Mohammed Sameer <msameer@foolab.org>
+ * Copyright (C) 2012-2013 Mohammed Sameer <msameer@foolab.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
*/
#include "cameraresources.h"
+#if defined(QT4)
#include <dbusconnectioneventloop.h>
+#endif
#include <QDebug>
#define APPLICATION_CLASS "camera"
m_worker(new CameraResourcesWorker) {
m_worker->moveToThread(&m_thread);
+
+#if defined(QT4)
DBUSConnectionEventLoop::getInstance().moveToThread(&m_thread);
+#endif
QObject::connect(&m_thread, SIGNAL(started()), m_worker, SLOT(init()));
m_thread.start();
<< ResourcePolicy::AudioPlaybackType);
break;
- case CameraResources::PostCapture:
- *ok = release();
+ case CameraResources::Player:
+ *ok = updateSet(QList<ResourcePolicy::ResourceType>()
+ << ResourcePolicy::VideoPlaybackType
+ << ResourcePolicy::AudioPlaybackType,
+ QList<ResourcePolicy::ResourceType>()
+ << ResourcePolicy::ScaleButtonType);
break;
default:
ResourcePolicy::AudioResource *audio = new ResourcePolicy::AudioResource(APPLICATION_CLASS);
audio->setProcessID(QCoreApplication::applicationPid());
+ audio->setStreamTag("media.name", "*");
audio->setOptional(isOptional);
m_set->addResourceObject(audio);
}