diff options
Diffstat (limited to 'linden/indra/llmedia/llmediaobserver.h')
-rw-r--r-- | linden/indra/llmedia/llmediaobserver.h | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/linden/indra/llmedia/llmediaobserver.h b/linden/indra/llmedia/llmediaobserver.h deleted file mode 100644 index ab8d755..0000000 --- a/linden/indra/llmedia/llmediaobserver.h +++ /dev/null | |||
@@ -1,116 +0,0 @@ | |||
1 | /** | ||
2 | * @file llmediaobserver.h | ||
3 | * @brief Derrive from this class and override methods to observe events from emitter class | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=viewergpl$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2009, Linden Research, Inc. | ||
8 | * | ||
9 | * Second Life Viewer Source Code | ||
10 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
11 | * to you under the terms of the GNU General Public License, version 2.0 | ||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
16 | * | ||
17 | * There are special exceptions to the terms and conditions of the GPL as | ||
18 | * it is applied to this Source Code. View the full text of the exception | ||
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
20 | * online at | ||
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | * | ||
23 | * By copying, modifying or distributing this software, you acknowledge | ||
24 | * that you have read and understood your obligations described above, | ||
25 | * and agree to abide by those obligations. | ||
26 | * | ||
27 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
28 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
29 | * COMPLETENESS OR PERFORMANCE. | ||
30 | * $/LicenseInfo$ | ||
31 | */ | ||
32 | |||
33 | #ifndef LLMEDIAEOBSERVER_H | ||
34 | #define LLMEDIAEOBSERVER_H | ||
35 | |||
36 | class LLMediaBase; | ||
37 | |||
38 | class LLMediaEvent | ||
39 | { | ||
40 | public: | ||
41 | LLMediaEvent( LLMediaBase* subject ) : | ||
42 | mSubject( subject ), mIntValue(-1) | ||
43 | { | ||
44 | }; | ||
45 | |||
46 | LLMediaEvent( LLMediaBase* subject, std::string in ) : | ||
47 | mSubject( subject ), mIntValue(-1), mStringValue(in) | ||
48 | { | ||
49 | }; | ||
50 | |||
51 | LLMediaEvent( LLMediaBase* subject, std::string string_in, std::string string_ex_in ) : | ||
52 | mSubject( subject ), mIntValue(-1), mStringValue(string_in), mStringValueEx(string_ex_in) | ||
53 | { | ||
54 | }; | ||
55 | |||
56 | LLMediaEvent( LLMediaBase* subject, std::string string_in, int int_in ) : | ||
57 | mSubject( subject ), mIntValue(int_in), mStringValue(string_in) | ||
58 | { | ||
59 | }; | ||
60 | |||
61 | LLMediaEvent( LLMediaBase* subject, int in ) : | ||
62 | mSubject( subject ), mIntValue(in) | ||
63 | { | ||
64 | }; | ||
65 | |||
66 | virtual ~LLMediaEvent() { } | ||
67 | |||
68 | LLMediaBase* getSubject() const | ||
69 | { | ||
70 | return mSubject; | ||
71 | }; | ||
72 | |||
73 | int getIntValue() const | ||
74 | { | ||
75 | return mIntValue; | ||
76 | } | ||
77 | |||
78 | std::string getStringValue() const | ||
79 | { | ||
80 | return mStringValue; | ||
81 | } | ||
82 | |||
83 | std::string getStringValueEx() const | ||
84 | { | ||
85 | return mStringValueEx; | ||
86 | } | ||
87 | |||
88 | private: | ||
89 | LLMediaBase* mSubject; | ||
90 | int mIntValue; | ||
91 | std::string mStringValue; | ||
92 | std::string mStringValueEx; | ||
93 | }; | ||
94 | |||
95 | class LLMediaObserver | ||
96 | { | ||
97 | public: | ||
98 | virtual ~LLMediaObserver() {} | ||
99 | |||
100 | typedef LLMediaEvent EventType; | ||
101 | virtual void onMediaPreroll( const EventType& event_in ) { } | ||
102 | virtual void onMediaLoaded( const EventType& event_in ) { } | ||
103 | virtual void onMediaSizeChange( const EventType& event_in ) { } | ||
104 | virtual void onMediaContentsChange( const EventType& event_in ) { } | ||
105 | virtual void onMediaStatusTextChange( const EventType& event_in ) { } | ||
106 | virtual void onMediaTitleChange( const EventType &event_in ) { } | ||
107 | virtual void onNavigateBegin( const EventType& event_in ) { } | ||
108 | virtual void onNavigateComplete( const EventType& event_in ) { } | ||
109 | virtual void onUpdateProgress( const EventType& event_in ) { } | ||
110 | virtual void onStatusTextChange( const EventType& event_in ) { } | ||
111 | virtual void onLocationChange( const EventType& event_in ) { } | ||
112 | virtual void onClickLinkHref( const EventType& event_in ) { } | ||
113 | virtual void onClickLinkNoFollow( const EventType& event_in ) { } | ||
114 | }; | ||
115 | |||
116 | #endif // LLMEDIAEOBSERVER_H | ||