aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorelektrahesse2010-10-07 02:05:57 +0200
committerelektrahesse2010-10-07 02:05:57 +0200
commite41c907b4facef715a34b9b97ab2bce67bf44b4e (patch)
tree6af616df3033111af543ee03dabe9e341d1b064d /linden/indra
parentMerge branch 'weekly' of git://github.com/mccabe/imprudence into weekly (diff)
downloadmeta-impy-e41c907b4facef715a34b9b97ab2bce67bf44b4e.zip
meta-impy-e41c907b4facef715a34b9b97ab2bce67bf44b4e.tar.gz
meta-impy-e41c907b4facef715a34b9b97ab2bce67bf44b4e.tar.bz2
meta-impy-e41c907b4facef715a34b9b97ab2bce67bf44b4e.tar.xz
Fixed TOS loading and renamed corretly LLIamHere classes in TOS and Voice TOS respectively to LLIamHereTOS and LLIamHereVoice to avoid collisions.
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/floatervoicelicense.cpp12
-rw-r--r--linden/indra/newview/llfloatertos.cpp20
2 files changed, 17 insertions, 15 deletions
diff --git a/linden/indra/newview/floatervoicelicense.cpp b/linden/indra/newview/floatervoicelicense.cpp
index 4004290..840a9e6 100644
--- a/linden/indra/newview/floatervoicelicense.cpp
+++ b/linden/indra/newview/floatervoicelicense.cpp
@@ -63,10 +63,10 @@ FloaterVoiceLicense::FloaterVoiceLicense(const LLSD& key)
63 63
64// helper class that trys to download a URL from a web site and calls a method 64// helper class that trys to download a URL from a web site and calls a method
65// on parent class indicating if the web server is working or not 65// on parent class indicating if the web server is working or not
66class LLIamHere : public LLHTTPClient::Responder 66class LLIamHereVoice : public LLHTTPClient::Responder
67{ 67{
68 private: 68 private:
69 LLIamHere( FloaterVoiceLicense* parent ) : 69 LLIamHereVoice( FloaterVoiceLicense* parent ) :
70 mParent( parent ) 70 mParent( parent )
71 {} 71 {}
72 72
@@ -74,9 +74,9 @@ class LLIamHere : public LLHTTPClient::Responder
74 74
75 public: 75 public:
76 76
77 static boost::intrusive_ptr< LLIamHere > build( FloaterVoiceLicense* parent ) 77 static boost::intrusive_ptr< LLIamHereVoice > build( FloaterVoiceLicense* parent )
78 { 78 {
79 return boost::intrusive_ptr< LLIamHere >( new LLIamHere( parent ) ); 79 return boost::intrusive_ptr< LLIamHereVoice >( new LLIamHereVoice( parent ) );
80 }; 80 };
81 81
82 virtual void setParent( FloaterVoiceLicense* parentIn ) 82 virtual void setParent( FloaterVoiceLicense* parentIn )
@@ -105,7 +105,7 @@ class LLIamHere : public LLHTTPClient::Responder
105 105
106// this is global and not a class member to keep crud out of the header file 106// this is global and not a class member to keep crud out of the header file
107namespace { 107namespace {
108 boost::intrusive_ptr< LLIamHere > gResponsePtr = 0; 108 boost::intrusive_ptr< LLIamHereVoice > gResponsePtr = 0;
109}; 109};
110 110
111BOOL FloaterVoiceLicense::postBuild() 111BOOL FloaterVoiceLicense::postBuild()
@@ -128,7 +128,7 @@ BOOL FloaterVoiceLicense::postBuild()
128 // start to observe it so we see navigate complete events 128 // start to observe it so we see navigate complete events
129 web_browser->addObserver( this ); 129 web_browser->addObserver( this );
130 130
131 gResponsePtr = LLIamHere::build( this ); 131 gResponsePtr = LLIamHereVoice::build( this );
132 LLHTTPClient::get( getString( "real_url" ), gResponsePtr ); 132 LLHTTPClient::get( getString( "real_url" ), gResponsePtr );
133 } 133 }
134 134
diff --git a/linden/indra/newview/llfloatertos.cpp b/linden/indra/newview/llfloatertos.cpp
index 6a392e0..52d7b1f 100644
--- a/linden/indra/newview/llfloatertos.cpp
+++ b/linden/indra/newview/llfloatertos.cpp
@@ -89,10 +89,10 @@ LLFloaterTOS::LLFloaterTOS(ETOSType type, const std::string & message)
89 89
90// helper class that trys to download a URL from a web site and calls a method 90// helper class that trys to download a URL from a web site and calls a method
91// on parent class indicating if the web server is working or not 91// on parent class indicating if the web server is working or not
92class LLIamHere : public LLHTTPClient::Responder 92class LLIamHereTOS : public LLHTTPClient::Responder
93{ 93{
94 private: 94 private:
95 LLIamHere( LLFloaterTOS* parent ) : 95 LLIamHereTOS( LLFloaterTOS* parent ) :
96 mParent( parent ) 96 mParent( parent )
97 {} 97 {}
98 98
@@ -100,9 +100,9 @@ class LLIamHere : public LLHTTPClient::Responder
100 100
101 public: 101 public:
102 102
103 static boost::intrusive_ptr< LLIamHere > build( LLFloaterTOS* parent ) 103 static boost::intrusive_ptr< LLIamHereTOS > build( LLFloaterTOS* parent )
104 { 104 {
105 return boost::intrusive_ptr< LLIamHere >( new LLIamHere( parent ) ); 105 return boost::intrusive_ptr< LLIamHereTOS >( new LLIamHereTOS( parent ) );
106 }; 106 };
107 107
108 virtual void setParent( LLFloaterTOS* parentIn ) 108 virtual void setParent( LLFloaterTOS* parentIn )
@@ -131,7 +131,7 @@ class LLIamHere : public LLHTTPClient::Responder
131 131
132// this is global and not a class member to keep crud out of the header file 132// this is global and not a class member to keep crud out of the header file
133namespace { 133namespace {
134 boost::intrusive_ptr< LLIamHere > gResponsePtr = 0; 134 boost::intrusive_ptr< LLIamHereTOS > gResponsePtr = 0;
135}; 135};
136 136
137BOOL LLFloaterTOS::postBuild() 137BOOL LLFloaterTOS::postBuild()
@@ -142,13 +142,15 @@ BOOL LLFloaterTOS::postBuild()
142 142
143 if ( mType != TOS_TOS ) 143 if ( mType != TOS_TOS )
144 { 144 {
145 llinfos << "tos_type != TOS_TOS" << llendl;
145 // this displays the critical message 146 // this displays the critical message
146 LLTextEditor *editor = getChild<LLTextEditor>("tos_text"); 147 LLTextEditor *editor = getChild<LLTextEditor>("tos_text");
147 editor->setHandleEditKeysDirectly( TRUE ); 148 editor->setHandleEditKeysDirectly( TRUE );
148 editor->setEnabled( FALSE ); 149 editor->setEnabled( FALSE );
149 editor->setWordWrap(TRUE); 150 editor->setWordWrap(TRUE);
150 editor->setFocus(TRUE); 151 editor->setFocus(TRUE);
151 editor->setValue(LLSD(mMessage)); 152 // editor->setValue(LLSD(mMessage));
153 editor->setValue(mMessage);
152 154
153 return TRUE; 155 return TRUE;
154 } 156 }
@@ -159,7 +161,7 @@ BOOL LLFloaterTOS::postBuild()
159 161
160 // hide the SL text widget if we're displaying TOS with using a browser widget. 162 // hide the SL text widget if we're displaying TOS with using a browser widget.
161 LLTextEditor *editor = getChild<LLTextEditor>("tos_text"); 163 LLTextEditor *editor = getChild<LLTextEditor>("tos_text");
162 editor->setVisible( FALSE ); 164 editor->setVisible(FALSE);
163 165
164 LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("tos_html"); 166 LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("tos_html");
165 if ( web_browser ) 167 if ( web_browser )
@@ -167,8 +169,8 @@ BOOL LLFloaterTOS::postBuild()
167 // start to observe it so we see navigate complete events 169 // start to observe it so we see navigate complete events
168 web_browser->addObserver( this ); 170 web_browser->addObserver( this );
169 171
170 gResponsePtr = LLIamHere::build( this ); 172 gResponsePtr = LLIamHereTOS::build( this );
171 LLHTTPClient::get( getString( "real_url" ), gResponsePtr ); 173 LLHTTPClient::head( getString( "real_url" ), gResponsePtr );
172 } 174 }
173 175
174 return TRUE; 176 return TRUE;