summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/utils.h
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-25 07:46:08 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-25 07:46:08 (GMT)
commitca8f0c669142d27091873c108ffe21b4285e3087 (patch)
tree74bee27be06d17007b9e589c6bc3aaf668aab69a /src/3rdparty/phonon/mmf/utils.h
parentd4efe766d35aa8150f67f67cd16cfc00ba4f9723 (diff)
downloadQt-ca8f0c669142d27091873c108ffe21b4285e3087.zip
Qt-ca8f0c669142d27091873c108ffe21b4285e3087.tar.gz
Qt-ca8f0c669142d27091873c108ffe21b4285e3087.tar.bz2
Implemented Backend::availableMimeTypes
Diffstat (limited to 'src/3rdparty/phonon/mmf/utils.h')
-rw-r--r--src/3rdparty/phonon/mmf/utils.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/mmf/utils.h b/src/3rdparty/phonon/mmf/utils.h
index 8895a93..2df7e48 100644
--- a/src/3rdparty/phonon/mmf/utils.h
+++ b/src/3rdparty/phonon/mmf/utils.h
@@ -22,6 +22,8 @@ along with this library. If not, see <http://www.gnu.org/licenses/>.
#include <private/qcore_symbian_p.h>
#include <e32debug.h> // for RDebug
+#include "defs.h"
+
namespace Phonon
{
namespace MMF
@@ -30,12 +32,12 @@ namespace Phonon
* Panic codes for fatal errors
*/
enum PanicCode
- {
+ {
InvalidStatePanic = 1,
InvalidMediaTypePanic = 2,
InvalidBackendInterfaceClass = 3
- };
-
+ };
+
namespace Utils
{
/**
@@ -51,6 +53,12 @@ namespace Phonon
* determined.
*/
QHBufC symbianFilename(const QString& qtFilename);
+
+ /**
+ * Determines whether the provided MIME type is an audio or video
+ * type. If it is neither, the function returns MediaTypeUnknown.
+ */
+ MediaType mimeTypeToMediaType(const TDesC& mimeType);
}
/**