equal
deleted
inserted
replaced
42 #ifndef S60MEDIARECOGNIZER_H_ |
42 #ifndef S60MEDIARECOGNIZER_H_ |
43 #define S60MEDIARECOGNIZER_H_ |
43 #define S60MEDIARECOGNIZER_H_ |
44 |
44 |
45 #include <QtCore/qobject.h> |
45 #include <QtCore/qobject.h> |
46 |
46 |
47 #ifdef USE_SYMBIAN_MEDIARECOGNIZER |
47 #include <apgcli.h> |
48 #include <mediarecognizer.h> |
48 #include <f32file.h> |
49 typedef CMediaRecognizer MobilityMediaRecognizer; |
|
50 typedef CMediaRecognizer::TMediaType MobilityMediaType; |
|
51 #else |
|
52 #include <mpmediarecognizer.h> |
|
53 typedef CMPMediaRecognizer MobilityMediaRecognizer; |
|
54 typedef CMPMediaRecognizer::TMPMediaType MobilityMediaType; |
|
55 #endif |
|
56 |
49 |
57 class QUrl; |
50 class QUrl; |
58 |
51 |
59 class S60MediaRecognizer : public QObject |
52 class S60MediaRecognizer : public QObject |
60 { |
53 { |
69 }; |
62 }; |
70 |
63 |
71 S60MediaRecognizer(QObject *parent = 0); |
64 S60MediaRecognizer(QObject *parent = 0); |
72 ~S60MediaRecognizer(); |
65 ~S60MediaRecognizer(); |
73 |
66 |
74 MediaType IdentifyMediaType(const QUrl &url); |
67 S60MediaRecognizer::MediaType mediaType(const QUrl &url); |
|
68 S60MediaRecognizer::MediaType identifyMediaType(const QString& fileName); |
|
69 |
|
70 protected: |
|
71 TPtrC QString2TPtrC( const QString& string ); |
75 |
72 |
76 private: |
73 private: |
77 MobilityMediaRecognizer *m_recognizer; |
74 RApaLsSession m_recognizer; |
|
75 RFile m_file; |
|
76 RFs m_fileServer; |
78 }; |
77 }; |
79 |
78 |
80 #endif /* S60MEDIARECOGNIZER_H_ */ |
79 #endif /* S60MEDIARECOGNIZER_H_ */ |