summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/mediadetect.h
blob: bd5ea1de2b0ef1f66c49954f2c737ee86115e07e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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