sipxmedialib  Version 3.3
MpPlayerListener.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2006 SIPez LLC.
3 // Licensed to SIPfoundry under a Contributor Agreement.
4 //
5 // Copyright (C) 2004-2006 SIPfoundry Inc.
6 // Licensed by SIPfoundry under the LGPL license.
7 //
8 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
9 // Licensed to SIPfoundry under a Contributor Agreement.
10 //
11 // $$
13 
14 
15 #ifndef _MpPlayerListener_h_
16 #define _MpPlayerListener_h_
17 
18 // SYSTEM INCLUDES
19 // APPLICATION INCLUDES
20 #include "mp/MpPlayerEvent.h"
21 
22 // DEFINES
23 // MACROS
24 // EXTERNAL FUNCTIONS
25 // EXTERNAL VARIABLES
26 // CONSTANTS
27 // STRUCTS
28 // TYPEDEFS
29 // FORWARD DECLARATIONS
30 class MpPlayer;
31 
32 
33 //:Listener interface for the MpPlayer object.
35 {
36 /* //////////////////////////// PUBLIC //////////////////////////////////// */
37 public:
38 /* ============================ CREATORS ================================== */
40 
41  virtual ~MpPlayerListener() {};
43 
44 /* ============================ MANIPULATORS ============================== */
46 
47  virtual void playerRealized(MpPlayerEvent& event) = 0 ;
48  //: The player has been realized
49 
50  virtual void playerPrefetched(MpPlayerEvent& event) = 0 ;
51  //: The player's data source has been prefetched
52 
53  virtual void playerPlaying(MpPlayerEvent& event) = 0 ;
54  //: The player has begun playing.
55 
56  virtual void playerPaused(MpPlayerEvent& event) = 0 ;
57  //: The player has been paused
58 
59  virtual void playerStopped(MpPlayerEvent& event) = 0 ;
60  //: The player has been stopped
61 
62  virtual void playerFailed(MpPlayerEvent& event) = 0 ;
63  //: The player has failed
64 
66 
67 /* ============================ ACCESSORS ================================= */
69 
70 
72 
73 /* ============================ INQUIRY =================================== */
75 
76 
78 
79 /* //////////////////////////// PROTECTED ///////////////////////////////// */
80 protected:
81 
82 
83 /* //////////////////////////// PRIVATE /////////////////////////////////// */
84 private:
85 };
86 
87 /* ============================ INLINE METHODS ============================ */
88 
89 #endif // _MpPlayerListener_h_
Definition: MpPlayerListener.h:34
virtual void playerPrefetched(MpPlayerEvent &event)=0
virtual void playerPaused(MpPlayerEvent &event)=0
Definition: MpPlayer.h:92
virtual ~MpPlayerListener()
Definition: MpPlayerListener.h:41
virtual void playerPlaying(MpPlayerEvent &event)=0
virtual void playerRealized(MpPlayerEvent &event)=0
virtual void playerStopped(MpPlayerEvent &event)=0
Definition: MpPlayerEvent.h:35
virtual void playerFailed(MpPlayerEvent &event)=0