javauis/mmapi_qt/audiostreaming/inc/mmmastreamhandlerlistener.h
branchRCL_3
changeset 24 0fd27995241b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/javauis/mmapi_qt/audiostreaming/inc/mmmastreamhandlerlistener.h	Tue May 11 16:07:20 2010 +0300
@@ -0,0 +1,49 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Listener for CMMAStreamHandler
+*
+*/
+
+#ifndef MMMASTREAMHANDLERLISTENER_H
+#define MMMASTREAMHANDLERLISTENER_H
+
+/**
+ * Listener for CMMAStreamHandler.
+ */
+NONSHARABLE_CLASS(MMMAStreamHandlerListener)
+{
+public:
+    /**
+     * Called when stream is prepared.
+     * @param aError system error code
+     */
+    virtual void PrepareComplete(TInt aError) = 0;
+
+    /**
+     * Called when stream is started.
+     * @param aError system error code
+     */
+    virtual void StartComplete(TInt aError) = 0;
+
+    /**
+     * Called when error need to be handled.
+     * If stream is starting or preparing PrepareComplete or
+     * StartComplete will be called instead of this method.
+     * @param aError system error code
+     */
+    virtual void HandleError(TInt aError) = 0;
+};
+
+
+#endif // MMMASTREAMHANDLERLISTENER_H