+
+void RecMonitor::showWarningMessage(const QString &text, bool logAction)
+{
+#if KDE_IS_VERSION(4,7,0)
+ m_infoMessage->setText(text);
+ m_infoMessage->setMessageType(KMessageWidget::Warning);
+ if (logAction) {
+ QAction *manualAction = new QAction(i18n("Show log"), this);
+ connect(manualAction, SIGNAL(triggered()), this, SLOT(slotShowLog()));
+ m_infoMessage->addAction(manualAction);
+ }
+#if KDE_IS_VERSION(4,10,0)
+ if (isVisible())
+ m_infoMessage->animatedShow();
+#else
+ QTimer::singleShot(0, m_infoMessage, SLOT(animatedShow()));
+#endif
+#else
+ if (!logAction) {
+ video_frame->setPixmap(mergeSideBySide(KIcon("dialog-warning").pixmap(QSize(50, 50)), text));
+
+ }
+ else {
+ video_frame->setText(QString("<qt>" + text + "<br><a href=\"http://kde.org\">" + i18n("Show log") + "</a>"));
+ connect(video_frame, SIGNAL(linkActivated(QString)), this, SLOT(slotShowLog()));
+ }
+#endif
+}
+
+const QString RecMonitor::getV4lXmlPlaylist(const MltVideoProfile &profile, bool *isXml)