sipXcallLib home page


MyPlayerListenerHistoryKeeper.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2004-2006 SIPfoundry Inc.
3 // Licensed by SIPfoundry under the LGPL license.
4 //
5 // Copyright (C) 2004-2006 Pingtel Corp. All rights reserved.
6 // Licensed to SIPfoundry under a Contributor Agreement.
7 //
8 // $$
10 
11 #ifndef _MyPlayerListenerHistoryKeeper_h_
12 #define _MyPlayerListenerHistoryKeeper_h_
13 
14 #include "utl/UtlString.h"
15 #include "mp/MpPlayerListener.h"
16 #include "mp/MpPlayerEvent.h"
17 
18 
19 class MyPlayerListenerHistoryKeeper : public MpPlayerListener
20 {
21  protected:
22  UtlString mHistory ;
23  UtlString mExpectedHistory;
24 
25  public:
26  virtual ~MyPlayerListenerHistoryKeeper(void);
27 
28  virtual void playerRealized(MpPlayerEvent& event);
29  virtual void playerPrefetched(MpPlayerEvent& event);
30  virtual void playerPlaying(MpPlayerEvent& event);
31  virtual void playerPaused(MpPlayerEvent& event);
32  virtual void playerStopped(MpPlayerEvent& event);
33  virtual void playerFailed(MpPlayerEvent& event);
34  const char* getHistory();
35  UtlBoolean matchesHistory(void* userData, int* pPlayerStates);
36 };
37 
38 #endif // MyPlayerListenerHistoryKeeper_h_
virtual void playerPrefetched(MpPlayerEvent &event)
virtual void playerFailed(MpPlayerEvent &event)
UtlBoolean matchesHistory(void *userData, int *pPlayerStates)
virtual void playerPaused(MpPlayerEvent &event)
virtual void playerStopped(MpPlayerEvent &event)
virtual ~MyPlayerListenerHistoryKeeper(void)
virtual void playerPlaying(MpPlayerEvent &event)
virtual void playerRealized(MpPlayerEvent &event)
UtlString mExpectedHistory
Definition: MyPlayerListenerHistoryKeeper.h:23
Definition: MyPlayerListenerHistoryKeeper.h:19
UtlString mHistory
Definition: MyPlayerListenerHistoryKeeper.h:22