aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia/llmediamanager.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:59 -0500
committerJacek Antonelli2008-08-15 23:45:59 -0500
commit6e91a9cc3d5a610198cf526a76e2ab642f10ecd7 (patch)
treeb023869f9daa7f61ea3ab27112d37524bdd88de4 /linden/indra/llmedia/llmediamanager.h
parentSecond Life viewer sources 1.20.12 (diff)
downloadmeta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.zip
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.gz
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.bz2
meta-impy-6e91a9cc3d5a610198cf526a76e2ab642f10ecd7.tar.xz
Second Life viewer sources 1.20.13
Diffstat (limited to 'linden/indra/llmedia/llmediamanager.h')
-rw-r--r--linden/indra/llmedia/llmediamanager.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/linden/indra/llmedia/llmediamanager.h b/linden/indra/llmedia/llmediamanager.h
index 7a2c868..0dbcc4a 100644
--- a/linden/indra/llmedia/llmediamanager.h
+++ b/linden/indra/llmedia/llmediamanager.h
@@ -45,8 +45,7 @@ class LLMediaManagerData
45 LLMediaManagerData() : 45 LLMediaManagerData() :
46 mBrowserParentWindow( 0 ), 46 mBrowserParentWindow( 0 ),
47 mBrowserProfileDir( "" ), 47 mBrowserProfileDir( "" ),
48 mBrowserProfileName ( "" ), 48 mBrowserProfileName ( "" )
49 mBrowserUserAgentId( "" )
50 { }; 49 { };
51 50
52 void setBrowserApplicationDir( const std::string& browser_application_dir ) { mBrowserApplicationDir = browser_application_dir; }; 51 void setBrowserApplicationDir( const std::string& browser_application_dir ) { mBrowserApplicationDir = browser_application_dir; };
@@ -64,16 +63,12 @@ class LLMediaManagerData
64 void setBrowserProfileName( const std::string& browser_profile_name ) { mBrowserProfileName = browser_profile_name; }; 63 void setBrowserProfileName( const std::string& browser_profile_name ) { mBrowserProfileName = browser_profile_name; };
65 std::string& getBrowserProfileName() { return mBrowserProfileName; }; 64 std::string& getBrowserProfileName() { return mBrowserProfileName; };
66 65
67 void setBrowserUserAgentId( const std::string& browser_user_agent_id ) { mBrowserUserAgentId = browser_user_agent_id; };
68 std::string& getBrowserUserAgentId() { return mBrowserUserAgentId; };
69
70 private: 66 private:
71 void* mBrowserParentWindow; 67 void* mBrowserParentWindow;
72 std::string mBrowserProfileDir; 68 std::string mBrowserProfileDir;
73 std::string mBrowserProfileName; 69 std::string mBrowserProfileName;
74 std::string mBrowserApplicationDir; 70 std::string mBrowserApplicationDir;
75 std::string mBrowserComponentDir; 71 std::string mBrowserComponentDir;
76 std::string mBrowserUserAgentId;
77}; 72};
78 73
79//////////////////////////////////////////////////////////////////////////////// 74////////////////////////////////////////////////////////////////////////////////
@@ -87,6 +82,13 @@ class LLMediaManager
87 static void cleanupClass(); 82 static void cleanupClass();
88 static LLMediaManager* getInstance(); 83 static LLMediaManager* getInstance();
89 84
85 // We append the skin name to the browser user agent string, so
86 // we need to change it while the app is running, not just at
87 // init time.
88 // Must be called after initClass() above.
89 // *HACK: Breaks encapsulation model. JC
90 static void setBrowserUserAgent(std::string user_agent);
91
90 // Calls update on all media sources 92 // Calls update on all media sources
91 static void updateClass(); 93 static void updateClass();
92 94