javauis/mmapi_akn/baseline/inc/cmmaplayer.h
branchRCL_3
changeset 60 6c158198356e
parent 46 4376525cdefb
--- a/javauis/mmapi_akn/baseline/inc/cmmaplayer.h	Thu Jul 15 18:31:06 2010 +0300
+++ b/javauis/mmapi_akn/baseline/inc/cmmaplayer.h	Thu Aug 19 09:48:13 2010 +0300
@@ -25,9 +25,11 @@
 #include "cmmaplayerevent.h"
 #include "mmmasourcestreamlistener.h"
 #include "mmmaplayerstatelistener.h"
+#include "mmmacallstateobserver.h"
 
 //  FORWARD DECLARATIONS
 class CMMADurationUpdater;
+class CMMACallStateMonitor;
 
 //  CONTANTS
 
@@ -52,7 +54,7 @@
 */
 
 class CMMAPlayer : public CBase,
-        public MMMASourceStreamListener
+        public MMMASourceStreamListener, MMMACallStateObserver
 
 {
 public:
@@ -174,7 +176,7 @@
      * Close the Player and release its resources. After this player is in
      * EClosed state and cannot be used anymore.
      */
-    virtual void CloseL();
+    IMPORT_C virtual void CloseL();
 
     /**
      * Gets duration.
@@ -216,6 +218,10 @@
      */
     HBufC* ContentType() const;
 
+public: // from MMMACallStateObserver
+	
+    void HandleCallStateEventL(TUid aUid, TInt aKey);
+    
 public: // new methods
     /**
      * Sets Java listener object that will be used to post player events
@@ -451,6 +457,16 @@
      */
     CMMADurationUpdater* iDurationUpdater;
 
+		/**
+    * Used to get the callback for Call State Events.
+    */
+    CMMACallStateMonitor* iStateObserver; 
+    
+    /**
+     *  Used to determine if the Player is in Paused state
+     *  due to call or done by user.
+     */
+    TBool isPausedByCall;
 };