diff options
Diffstat (limited to 'src/3rdparty/phonon/mmf/utils.h')
-rw-r--r-- | src/3rdparty/phonon/mmf/utils.h | 14 |
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); } /** |