summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2009-12-08 10:46:27 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2009-12-08 10:46:27 (GMT)
commitf27198ec92dbe49a5af17af27835c74a3970e4d1 (patch)
tree24bfd3945ee2ffb06e75536b457954d07b9abdb7 /src/3rdparty/phonon
parentbbab8eabb91b95dcd946c94b5f0ac59413e7a929 (diff)
parentdb782f7ab22241d8161190b95c41af4d56c05b82 (diff)
downloadQt-f27198ec92dbe49a5af17af27835c74a3970e4d1.zip
Qt-f27198ec92dbe49a5af17af27835c74a3970e4d1.tar.gz
Qt-f27198ec92dbe49a5af17af27835c74a3970e4d1.tar.bz2
Merge branch 'mmfphonon' of scm.dev.nokia.troll.no:qt/qt-s60-public into mmfphonon
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r--src/3rdparty/phonon/mmf/abstractplayer.h4
-rw-r--r--src/3rdparty/phonon/mmf/utils.cpp64
2 files changed, 34 insertions, 34 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractplayer.h b/src/3rdparty/phonon/mmf/abstractplayer.h
index 9af1362..cd15baf 100644
--- a/src/3rdparty/phonon/mmf/abstractplayer.h
+++ b/src/3rdparty/phonon/mmf/abstractplayer.h
@@ -96,7 +96,9 @@ public:
*
* Appends a human-readable version of symbianErrorCode to the error message,
* e.g.
- * setError(NormalError, "Opening file failed", KErrPermissionDenied)
+ * @code
+ * setError("Opening file failed", KErrPermissionDenied)
+ * @endcode
* results in the following error message:
* "Opening file failed: permission denied"
*/
diff --git a/src/3rdparty/phonon/mmf/utils.cpp b/src/3rdparty/phonon/mmf/utils.cpp
index 75fec9f..2d17bd2 100644
--- a/src/3rdparty/phonon/mmf/utils.cpp
+++ b/src/3rdparty/phonon/mmf/utils.cpp
@@ -84,67 +84,67 @@ QString MMF::Utils::symbianErrorToString(int errorCode)
{
// System-wide errors
case KErrNone:
- return tr("no error");
+ return tr("No error");
case KErrNotFound:
- return tr("not found");
+ return tr("Not found");
case KErrNoMemory:
- return tr("out of memory");
+ return tr("Out of memory");
case KErrNotSupported:
- return tr("not supported");
+ return tr("Not supported");
case KErrOverflow:
- return tr("overflow");
+ return tr("Overflow");
case KErrUnderflow:
- return tr("underflow");
+ return tr("Underflow");
case KErrAlreadyExists:
- return tr("already exists");
+ return tr("Already exists");
case KErrPathNotFound:
- return tr("path not found");
+ return tr("Path not found");
case KErrInUse:
- return tr("in use");
+ return tr("In use");
case KErrNotReady:
- return tr("not ready");
+ return tr("Not ready");
case KErrAccessDenied:
- return tr("access denied");
+ return tr("Access denied");
case KErrCouldNotConnect:
- return tr("could not connect");
+ return tr("Could not connect");
case KErrDisconnected:
- return tr("disconnected");
+ return tr("Disconnected");
case KErrPermissionDenied:
- return tr("permission denied");
+ return tr("Permission denied");
// Multimedia framework errors
case KErrMMNotEnoughBandwidth:
- return tr("insufficient bandwidth");
+ return tr("Insufficient bandwidth");
case KErrMMSocketServiceNotFound:
case KErrMMServerSocket:
- return tr("network unavailable");
+ return tr("Network unavailable");
case KErrMMNetworkRead:
case KErrMMNetworkWrite:
case KErrMMUDPReceive:
- return tr("network communication error");
+ return tr("Network communication error");
case KErrMMServerNotSupported:
- return tr("streaming not supported");
+ return tr("Streaming not supported");
case KErrMMServerAlert:
- return tr("server alert");
+ return tr("Server alert");
case KErrMMInvalidProtocol:
- return tr("invalid protocol");
+ return tr("Invalid protocol");
case KErrMMInvalidURL:
- return tr("invalid URL");
+ return tr("Invalid URL");
case KErrMMMulticast:
- return tr("multicast error");
+ return tr("Multicast error");
case KErrMMProxyServer:
case KErrMMProxyServerConnect:
- return tr("proxy server error");
+ return tr("Proxy server error");
case KErrMMProxyServerNotSupported:
- return tr("proxy server not supported");
+ return tr("Proxy server not supported");
case KErrMMAudioDevice:
- return tr("audio output error");
+ return tr("Audio output error");
case KErrMMVideoDevice:
- return tr("video output error");
+ return tr("Video output error");
case KErrMMDecoder:
- return tr("decoder error");
+ return tr("Decoder error");
case KErrMMPartialPlayback:
- return tr("audio or video components could not be played");
+ return tr("Audio or video components could not be played");
case KErrMMDRMNotAuthorized:
return tr("DRM error");
@@ -160,11 +160,9 @@ QString MMF::Utils::symbianErrorToString(int errorCode)
// Catch-all for errors other than those above
default:
- {
- QString errorString;
- errorString.setNum(errorCode);
- return tr("unknown error") + " (" + errorString + ")";
- }
+ {
+ return tr("Unknown error (%1)").arg(errorCode);
+ }
}
}