diff options
author | Armin Weatherwax | 2011-01-20 14:24:11 +0100 |
---|---|---|
committer | Armin Weatherwax | 2011-01-20 14:24:11 +0100 |
commit | 282cb19508dcd38039454dfe71d23bb042fe376c (patch) | |
tree | 974f029c7f0c9fcac97cc260444bfa46d3b93521 /linden/indra | |
parent | fix crash when linking objects using rubberband selection. (diff) | |
download | meta-impy-282cb19508dcd38039454dfe71d23bb042fe376c.zip meta-impy-282cb19508dcd38039454dfe71d23bb042fe376c.tar.gz meta-impy-282cb19508dcd38039454dfe71d23bb042fe376c.tar.bz2 meta-impy-282cb19508dcd38039454dfe71d23bb042fe376c.tar.xz |
re-enable statistics packet for SL, firstuse warn about it
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 27 | ||||
-rw-r--r-- | linden/indra/newview/llfirstuse.cpp | 28 | ||||
-rw-r--r-- | linden/indra/newview/llfirstuse.h | 3 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 52 | ||||
-rw-r--r-- | linden/indra/newview/llstartup.h | 4 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/notifications.xml | 18 |
7 files changed, 122 insertions, 21 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index c946f40..b7d6433 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -1330,6 +1330,17 @@ | |||
1330 | <key>Value</key> | 1330 | <key>Value</key> |
1331 | <integer>1</integer> | 1331 | <integer>1</integer> |
1332 | </map> | 1332 | </map> |
1333 | <key>WarnFirstPrivacy</key> | ||
1334 | <map> | ||
1335 | <key>Comment</key> | ||
1336 | <string>Enables FirstPrivacy warning on login</string> | ||
1337 | <key>Persist</key> | ||
1338 | <integer>1</integer> | ||
1339 | <key>Type</key> | ||
1340 | <string>Boolean</string> | ||
1341 | <key>Value</key> | ||
1342 | <integer>1</integer> | ||
1343 | </map> | ||
1333 | <key>WarnFirstVoiceLicense</key> | 1344 | <key>WarnFirstVoiceLicense</key> |
1334 | <map> | 1345 | <map> |
1335 | <key>Comment</key> | 1346 | <key>Comment</key> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 36a53d0..d920e84 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -1864,6 +1864,7 @@ bool LLAppViewer::initConfiguration() | |||
1864 | LLFirstUse::addConfigVariable("FirstVoice"); | 1864 | LLFirstUse::addConfigVariable("FirstVoice"); |
1865 | LLFirstUse::addConfigVariable("FirstMedia"); | 1865 | LLFirstUse::addConfigVariable("FirstMedia"); |
1866 | LLFirstUse::addConfigVariable("FirstLoginScreen"); | 1866 | LLFirstUse::addConfigVariable("FirstLoginScreen"); |
1867 | LLFirstUse::addConfigVariable("FirstPrivacy"); | ||
1867 | 1868 | ||
1868 | // [RLVa:KB] - Checked: RLVa-1.0.3a (2009-09-10) | Added: RLVa-1.0.3a | 1869 | // [RLVa:KB] - Checked: RLVa-1.0.3a (2009-09-10) | Added: RLVa-1.0.3a |
1869 | //LLFirstUse::addConfigVariable(RLV_SETTING_FIRSTUSE_DETACH); | 1870 | //LLFirstUse::addConfigVariable(RLV_SETTING_FIRSTUSE_DETACH); |
@@ -3472,18 +3473,22 @@ void LLAppViewer::idle() | |||
3472 | // Initialize the viewer_stats_timer with an already elapsed time | 3473 | // Initialize the viewer_stats_timer with an already elapsed time |
3473 | // of SEND_STATS_PERIOD so that the initial stats report will | 3474 | // of SEND_STATS_PERIOD so that the initial stats report will |
3474 | // be sent immediately. | 3475 | // be sent immediately. |
3475 | static LLFrameStatsTimer viewer_stats_timer(SEND_STATS_PERIOD); | 3476 | if(!gDisconnected && gHippoGridManager->getConnectedGrid()->isSecondLife()) |
3476 | reset_statistics(); | ||
3477 | |||
3478 | // Update session stats every large chunk of time | ||
3479 | // *FIX: (???) SAMANTHA | ||
3480 | /* or don't! part of a larger effort to waste less CPU cycles. -Patrick Sapinski (Sunday, November 29, 2009) | ||
3481 | if (viewer_stats_timer.getElapsedTimeF32() >= SEND_STATS_PERIOD && !gDisconnected) | ||
3482 | { | 3477 | { |
3483 | llinfos << "Transmitting sessions stats" << llendl; | 3478 | static LLFrameStatsTimer viewer_stats_timer(SEND_STATS_PERIOD); |
3484 | send_stats(); | 3479 | reset_statistics(); |
3485 | viewer_stats_timer.reset(); | 3480 | |
3486 | } */ | 3481 | // Update session stats every large chunk of time |
3482 | // *FIX: (???) SAMANTHA | ||
3483 | |||
3484 | /* or don't! part of a larger effort to waste less CPU cycles. -Patrick Sapinski (Sunday, November 29, 2009)*/ | ||
3485 | if (viewer_stats_timer.getElapsedTimeF32() >= SEND_STATS_PERIOD ) | ||
3486 | { | ||
3487 | llinfos << "Transmitting sessions stats" << llendl; | ||
3488 | send_stats(); | ||
3489 | viewer_stats_timer.reset(); | ||
3490 | } | ||
3491 | } | ||
3487 | 3492 | ||
3488 | // Print the object debugging stats | 3493 | // Print the object debugging stats |
3489 | static LLFrameTimer object_debug_timer; | 3494 | static LLFrameTimer object_debug_timer; |
diff --git a/linden/indra/newview/llfirstuse.cpp b/linden/indra/newview/llfirstuse.cpp index 18efa9e..f482d1c 100644 --- a/linden/indra/newview/llfirstuse.cpp +++ b/linden/indra/newview/llfirstuse.cpp | |||
@@ -390,3 +390,31 @@ void LLFirstUse::voiceLicenseAgreement() | |||
390 | LLStartUp::setStartupState(STATE_LOGIN_AUTH_INIT); | 390 | LLStartUp::setStartupState(STATE_LOGIN_AUTH_INIT); |
391 | } | 391 | } |
392 | } | 392 | } |
393 | |||
394 | void LLFirstUse::callbackPrivacy(const LLSD& notification, const LLSD& response) | ||
395 | { | ||
396 | |||
397 | S32 option = LLNotification::getSelectedOption(notification, response); | ||
398 | if ( 0 == option ) | ||
399 | { | ||
400 | gSavedSettings.setWarning("FirstPrivacy", FALSE); | ||
401 | LLStartUp::setStartupState(STATE_PRIVACY_LECTURED); | ||
402 | } | ||
403 | if ( 1 == option ) | ||
404 | { | ||
405 | LLStartUp::resetLogin(); | ||
406 | } | ||
407 | } | ||
408 | |||
409 | // static | ||
410 | void LLFirstUse::Privacy() | ||
411 | { | ||
412 | if (gSavedSettings.getWarning("FirstPrivacy")) | ||
413 | { | ||
414 | LLNotifications::instance().add("FirstPrivacy", LLSD(), LLSD(), callbackPrivacy); | ||
415 | } | ||
416 | else | ||
417 | { | ||
418 | LLStartUp::setStartupState(STATE_PRIVACY_LECTURED); | ||
419 | } | ||
420 | } \ No newline at end of file | ||
diff --git a/linden/indra/newview/llfirstuse.h b/linden/indra/newview/llfirstuse.h index 42443ff..8c2ca35 100644 --- a/linden/indra/newview/llfirstuse.h +++ b/linden/indra/newview/llfirstuse.h | |||
@@ -116,7 +116,8 @@ public: | |||
116 | static void callbackClientTags(const LLSD& notification, const LLSD& response); | 116 | static void callbackClientTags(const LLSD& notification, const LLSD& response); |
117 | static void ClientTags(); | 117 | static void ClientTags(); |
118 | static void voiceLicenseAgreement(); | 118 | static void voiceLicenseAgreement(); |
119 | 119 | static void callbackPrivacy(const LLSD& notification, const LLSD& response); | |
120 | static void Privacy(); | ||
120 | protected: | 121 | protected: |
121 | static std::set<std::string> sConfigVariables; | 122 | static std::set<std::string> sConfigVariables; |
122 | 123 | ||
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index 0417f61..939c2e6 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -872,7 +872,47 @@ bool idle_startup() | |||
872 | 872 | ||
873 | if (STATE_LOGIN_CLEANUP == LLStartUp::getStartupState()) | 873 | if (STATE_LOGIN_CLEANUP == LLStartUp::getStartupState()) |
874 | { | 874 | { |
875 | |||
875 | LL_DEBUGS("AppInitStartupState") << "STATE_LOGIN_CLEANUP" << LL_ENDL; | 876 | LL_DEBUGS("AppInitStartupState") << "STATE_LOGIN_CLEANUP" << LL_ENDL; |
877 | |||
878 | gDisconnected = TRUE; | ||
879 | |||
880 | std::string cmd_line_grid_choice = gSavedSettings.getString("CmdLineGridChoice"); | ||
881 | std::string cmd_line_login_uri = gSavedSettings.getLLSD("CmdLineLoginURI").asString(); | ||
882 | if(!cmd_line_grid_choice.empty() && cmd_line_login_uri.empty()) | ||
883 | { | ||
884 | gHippoGridManager->setCurrentGrid(cmd_line_grid_choice); | ||
885 | } | ||
886 | |||
887 | gHippoGridManager->setCurrentGridAsConnected(); | ||
888 | gHippoLimits->setLimits(); | ||
889 | |||
890 | if (gHippoGridManager->getConnectedGrid()->isSecondLife()) | ||
891 | { | ||
892 | LLStartUp::setStartupState( STATE_LECTURE_PRIVACY ); | ||
893 | LLFirstUse::Privacy(); | ||
894 | } | ||
895 | else | ||
896 | { | ||
897 | LLStartUp::setStartupState( STATE_PRIVACY_LECTURED ); | ||
898 | } | ||
899 | |||
900 | return FALSE; | ||
901 | |||
902 | } | ||
903 | |||
904 | if (STATE_LECTURE_PRIVACY == LLStartUp::getStartupState()) | ||
905 | { | ||
906 | LL_DEBUGS("AppInitStartupState") << "STATE_LECTURE_PRIVACY" << LL_ENDL; | ||
907 | |||
908 | //wait for the user to decide | ||
909 | ms_sleep(1); | ||
910 | return FALSE; | ||
911 | } | ||
912 | |||
913 | if (STATE_PRIVACY_LECTURED == LLStartUp::getStartupState()) | ||
914 | { | ||
915 | LL_DEBUGS("AppInitStartupState") << "STATE_PRIVACY_LECTURED" << LL_ENDL; | ||
876 | //reset the values that could have come in from a slurl | 916 | //reset the values that could have come in from a slurl |
877 | if (!gLoginHandler.getWebLoginKey().isNull()) | 917 | if (!gLoginHandler.getWebLoginKey().isNull()) |
878 | { | 918 | { |
@@ -914,15 +954,9 @@ bool idle_startup() | |||
914 | gDebugInfo["LoginName"] = firstname + " " + lastname; | 954 | gDebugInfo["LoginName"] = firstname + " " + lastname; |
915 | } | 955 | } |
916 | 956 | ||
917 | std::string cmd_line_grid_choice = gSavedSettings.getString("CmdLineGridChoice"); | ||
918 | std::string cmd_line_login_uri = gSavedSettings.getLLSD("CmdLineLoginURI").asString(); | ||
919 | if(!cmd_line_grid_choice.empty() && cmd_line_login_uri.empty()) | ||
920 | { | ||
921 | gHippoGridManager->setCurrentGrid(cmd_line_grid_choice); | ||
922 | } | ||
923 | 957 | ||
924 | gHippoGridManager->setCurrentGridAsConnected(); | 958 | |
925 | gHippoLimits->setLimits(); | 959 | |
926 | // create necessary directories | 960 | // create necessary directories |
927 | // *FIX: these mkdir's should error check | 961 | // *FIX: these mkdir's should error check |
928 | gDirUtilp->setLindenUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); | 962 | gDirUtilp->setLindenUserDir(gHippoGridManager->getCurrentGridNick(), firstname, lastname); |
@@ -3767,6 +3801,8 @@ std::string LLStartUp::startupStateToString(EStartupState state) | |||
3767 | RTNENUM( STATE_LOGIN_SHOW ); | 3801 | RTNENUM( STATE_LOGIN_SHOW ); |
3768 | RTNENUM( STATE_LOGIN_WAIT ); | 3802 | RTNENUM( STATE_LOGIN_WAIT ); |
3769 | RTNENUM( STATE_LOGIN_CLEANUP ); | 3803 | RTNENUM( STATE_LOGIN_CLEANUP ); |
3804 | RTNENUM( STATE_LECTURE_PRIVACY ); | ||
3805 | RTNENUM( STATE_PRIVACY_LECTURED ); | ||
3770 | RTNENUM( STATE_LOGIN_VOICE_LICENSE ); | 3806 | RTNENUM( STATE_LOGIN_VOICE_LICENSE ); |
3771 | RTNENUM( STATE_UPDATE_CHECK ); | 3807 | RTNENUM( STATE_UPDATE_CHECK ); |
3772 | RTNENUM( STATE_LOGIN_AUTH_INIT ); | 3808 | RTNENUM( STATE_LOGIN_AUTH_INIT ); |
diff --git a/linden/indra/newview/llstartup.h b/linden/indra/newview/llstartup.h index 08862e6..3fe8daa 100644 --- a/linden/indra/newview/llstartup.h +++ b/linden/indra/newview/llstartup.h | |||
@@ -49,7 +49,9 @@ typedef enum { | |||
49 | STATE_BROWSER_INIT, // Initialize web browser for login screen | 49 | STATE_BROWSER_INIT, // Initialize web browser for login screen |
50 | STATE_LOGIN_SHOW, // Show login screen | 50 | STATE_LOGIN_SHOW, // Show login screen |
51 | STATE_LOGIN_WAIT, // Wait for user input at login screen | 51 | STATE_LOGIN_WAIT, // Wait for user input at login screen |
52 | STATE_LOGIN_CLEANUP, // Get rid of login screen and start login | 52 | STATE_LOGIN_CLEANUP, // lecture about privacy |
53 | STATE_LECTURE_PRIVACY, // wait until the lecture was read | ||
54 | STATE_PRIVACY_LECTURED, // Get rid of login screen and start login | ||
53 | STATE_LOGIN_VOICE_LICENSE, // Show license agreement for using voice | 55 | STATE_LOGIN_VOICE_LICENSE, // Show license agreement for using voice |
54 | STATE_UPDATE_CHECK, // Wait for user at a dialog box (updates, term-of-service, etc) | 56 | STATE_UPDATE_CHECK, // Wait for user at a dialog box (updates, term-of-service, etc) |
55 | STATE_LOGIN_AUTH_INIT, // Start login to SL servers | 57 | STATE_LOGIN_AUTH_INIT, // Start login to SL servers |
diff --git a/linden/indra/newview/skins/default/xui/en-us/notifications.xml b/linden/indra/newview/skins/default/xui/en-us/notifications.xml index b8f3fcb..63e85c4 100644 --- a/linden/indra/newview/skins/default/xui/en-us/notifications.xml +++ b/linden/indra/newview/skins/default/xui/en-us/notifications.xml | |||
@@ -7221,6 +7221,24 @@ Apply this region's settings? ("Ignore" will ignore all region setting | |||
7221 | The new font will appear after you restart [VIEWER_NAME]. | 7221 | The new font will appear after you restart [VIEWER_NAME]. |
7222 | </notification> | 7222 | </notification> |
7223 | 7223 | ||
7224 | <notification | ||
7225 | icon="alertmodal.tga" | ||
7226 | name="FirstPrivacy" | ||
7227 | type="alertmodal"> | ||
7228 | Terms of service of the grid you are connecting to require sending a "statistics packet" every 5 minutes. | ||
7229 | That is for example: Data about your hardware (CPU, RAM), number of avatars around, number of sims visited. | ||
7230 | Please check *the grids* privacy policy about usage of that data. | ||
7231 | <form name="form"> | ||
7232 | <button | ||
7233 | index="0" | ||
7234 | name="ok" | ||
7235 | text="Login anyway"/> | ||
7236 | <button | ||
7237 | index="1" | ||
7238 | name="notok" | ||
7239 | text="Do not log in"/> | ||
7240 | </form> | ||
7241 | </notification> | ||
7224 | 7242 | ||
7225 | <!--End Imprudence notifications--> | 7243 | <!--End Imprudence notifications--> |
7226 | <!-- [KITTY VIEWER] --> | 7244 | <!-- [KITTY VIEWER] --> |