PageRenderTime 31ms CodeModel.GetById 9ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llviewermediaobserver.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 65 lines | 16 code | 15 blank | 34 comment | 0 complexity | c327c3783649f367ea85c1d0070185f1 MD5 | raw file
 1/**
 2 * @file llviewermediaobserver.h
 3 * @brief Methods to override to catch events from LLViewerMedia class
 4 *
 5 * $LicenseInfo:firstyear=2007&license=viewerlgpl$
 6 * Second Life Viewer Source Code
 7 * Copyright (C) 2010, Linden Research, Inc.
 8 * 
 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation;
12 * version 2.1 of the License only.
13 * 
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 * Lesser General Public License for more details.
18 * 
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22 * 
23 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
24 * $/LicenseInfo$
25 */
26
27#ifndef LLVIEWERMEDIAOBSERVER_H
28#define LLVIEWERMEDIAOBSERVER_H
29
30#include "llpluginclassmediaowner.h"
31
32class LLViewerMediaEventEmitter;
33
34class LLViewerMediaObserver : public LLPluginClassMediaOwner
35{
36public:
37	virtual ~LLViewerMediaObserver();
38	
39private:
40	// Emitters will manage this list in addObserver/remObserver.
41	friend class LLViewerMediaEventEmitter;
42	std::list<LLViewerMediaEventEmitter *> mEmitters;
43};
44
45
46#if 0
47	// Classes that inherit from LLViewerMediaObserver should add this to their class declaration:
48	
49	// inherited from LLViewerMediaObserver
50	/*virtual*/ void handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event);
51	
52	/* and will probably need to add this to their cpp file:
53
54	#include "llpluginclassmedia.h"
55
56	*/
57	
58	// The list of events is in llpluginclassmediaowner.h
59	
60	
61#endif
62
63
64#endif // LLVIEWERMEDIAOBSERVER_H
65