summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/mediadetect.h
Side-by-side diff
Diffstat (limited to 'noncore/multimedia/opieplayer2/mediadetect.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/mediadetect.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/mediadetect.h b/noncore/multimedia/opieplayer2/mediadetect.h
new file mode 100644
index 0000000..bd5ea1d
--- a/dev/null
+++ b/noncore/multimedia/opieplayer2/mediadetect.h
@@ -0,0 +1,31 @@
+
+#ifndef MEDIADETECT_H
+#define MEDIADETECT_H
+
+
+class QString;
+class MediaDetect {
+
+public:
+ MediaDetect();
+ ~MediaDetect();
+
+ /**
+ * Look at the filename and decide which gui is to be used
+ *
+ * @param filename the filename
+ * @return the char - a for audio gui, v for video, f for error
+ */
+ char videoOrAudio( const QString& fileName );
+
+ /**
+ * Find out if it is a streaming media file
+ *
+ * @param filename the filename
+ * @return if it is a streaming url or not
+ */
+ bool isStreaming( const QString& fileName );
+
+};
+
+#endif