summaryrefslogtreecommitdiff
path: root/indra/newview/lllogchat.cpp
AgeCommit message (Collapse)Author
2016-11-14Merged in lindenlab/viewer-cleanupAndreyL ProductEngine
2016-09-15MAINT-5232: Normalize LLSingleton subclasses.Nat Goodspeed
A shocking number of LLSingleton subclasses had public constructors -- and in several instances, were being explicitly instantiated independently of the LLSingleton machinery. This breaks the new LLSingleton dependency-tracking machinery. It seems only fair that if you say you want an LLSingleton, there should only be ONE INSTANCE! Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the friend class LLSingleton<whatevah>; and explicitly declare a private nullary constructor. To try to enforce the LLSINGLETON() convention, introduce a new pure virtual LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might suspect, defined by the macro. If you declare an LLSingleton subclass without using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro() implementation -- which will hopefully remind the coder. Trawl through ALL LLSingleton subclass definitions, sprinkling in LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit constructor declarations, public or private, along with relevant 'friend class LLSingleton<myself>' declarations. Where destructors are declared, move them into private section as well. Where the constructor was inline but nontrivial, move out of class body. Fix several LLSingleton abuses revealed by making ctors/dtors private: LLGlobalEconomy was both an LLSingleton and the base class for LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance contained another instance of the LLGlobalEconomy "singleton.") Extract LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that. LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy. LLToolGrab, an LLSingleton, was also explicitly instantiated by LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated, with trivial subclass LLToolGrab, the LLSingleton instance. (WARNING: LLToolGrabBase methods have an unnerving tendency to go after LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship between the instance in LLToolCompGun and the LLToolGrab singleton instance.) LLGridManager declared a variant constructor accepting (const std::string&), with the comment: // initialize with an explicity grid file for testing. As there is no evidence of this being called from anywhere, delete it. LLChicletBar's constructor accepted an optional (const LLSD&). As the LLSD parameter wasn't used, and as there is no evidence of it being passed from anywhere, delete the parameter. LLViewerWindow::shutdownViews() was checking LLNavigationBar:: instanceExists(), then deleting its getInstance() pointer -- leaving a dangling LLSingleton instance pointer, a land mine if any subsequent code should attempt to reference it. Use deleteSingleton() instead. ~LLAppViewer() was calling LLViewerEventRecorder::instance() and then explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the LLSingleton instance pointer pointing to an allocated-but-destroyed instance. Use deleteSingleton() instead.
2016-07-05MAINT-5388 File "conversation.log" created in users' root directory on Windowsandreykproductengine
2016-05-19Merged in lindenlab/viewer-releaseAndreyL ProductEngine
2016-04-25MAINT-6283 revertedMnikolenko Productengine
2016-04-12MAINT-6283 Names that contain 'http:' or 'https:' are transferred to the new ↵Mnikolenko Productengine
line in chat history
2015-11-10remove execute permission from many files that should not have itOz Linden
2015-05-19MAINT-5201 FIXED 'Chat history' option in context menu does not works for ↵Mnikolenko ProductEngine
multiperson chat.
2015-04-10restore the ll[io]fstream because we need them as wrappers on Windows for ↵Oz Linden
wide char paths; on other platforms they are now just typedefs to the std classes
2015-04-07replace llifstream and llofstream with std::ifstream and std::ofstream ↵Oz Linden
respectively
2015-04-07convert llifstream and llofstream to std::ifstream and std::ofstream ↵Oz Linden
respectively
2014-11-18Fix for gpu_bench crash without parallels knock-onGraham Linden
2014-05-07Pull and merge viewer-release as version 3.7.8simon
2013-12-13MAINT-3522 FIXED Continue loop after adding Nearby chat history to the list.Mnikolenko ProductEngine
2013-12-10SH-4653 FIX Interesting: Viewer crashes while reading chat historyRichard Linden
fixed code that was causing abnormal thread termination in the first place
2013-12-03MAINT-3476 FIX Opening large chat histories from conversation log eats up ↵PavelK ProductEngine
huge amounts of memory, leading to viewer crash.
2013-09-09merge with viewer-releaseRichard Linden
2013-08-09second phase summer cleaningRichard Linden
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-07-30Summer cleaning - removed a lot of llcommon dependencies to speed up build timesRichard Linden
consolidated most indra-specific constants in llcommon under indra_constants.h fixed issues with operations on mixed unit types (implicit and explicit) made LL_INFOS() style macros variadic in order to subsume other logging methods such as ll_infos added optional tag output to error recorders
2013-07-16CHUI-978 FIXED Add Nearby chat history to the list of transcriptions if it ↵Mnikolenko ProductEngine
exists(to enable "Chat history" menu item for Nearby chat)
2013-07-09CHUI-978 FIXED Load data from chat log file in separate thread to prevent ↵Mnikolenko ProductEngine
viewer freeze
2013-05-22Pull merge from viewer-releaseMerov Linden
2013-04-23CHUI-943 FIXED "Chat history" menu item is added to context menu for Nearby ↵Mnikolenko ProductEngine
chat.
2013-04-03CHUI-838 FIXED (Opening chat history for groups only works once per session, ↵Mnikolenko ProductEngine
if at all)
2013-03-29Update Mac and Windows breakpad builds to latestGraham Madarasz
2013-03-05CHUI-778: Adjusted deletion of transcripts/logs to be more clean code-wise.Gilbert Gonzales
2013-03-04CHUI-778: Now when delete transcripts is pressed the backup files will be ↵Gilbert Gonzales
deleted as well. Also if clear logs is pressed then backup logs will be cleared.
2013-03-04CHUI-778: Now when changing paths for chat logs and transcripts any empty ↵Gilbert Gonzales
conversations will be reloaded with data from the new location. Use case for this is if the users nearby chat is empty and they switch to a location that has a nearby chat file, then the nearby chat file be loaded.
2013-02-25CHUI-778: Now when conversation log and trascript files are moved they will ↵Gilbert Gonzales
not overwrite prior files with the same name. Instead the prior files will be stored as *.backup.
2013-02-25mergeGilbert Gonzales
2013-02-25CHUI-788 (Saving preferences updates text in all open message panels in ↵Gilbert Gonzales
conversation floater to show as old messages) Fixed build error for mac/linux
2013-02-22CHUI-778 (Saving preferences updates text in all open message panels in ↵Gilbert Gonzales
conversation floater to show as old messages) Now changing the log/transcripts file location actually moves the files to the new location. Prior behavior just started a new history at that location. Also a fix was made so that if the user changed the log/transcripts path then after pressing the Preferences 'OK' button the new location will be saved to the corresponding .xml file.
2013-02-22CHUI-633 FIXED User is not able to open chat history by 'View chat history' ↵maksymsproductengine
menu item from pop-up menu of People floater
2013-02-06CHUI-712 FIXED IM log files renamed with ll.txt will create double files for ↵maksymsproductengine
users
2013-01-24CHUI-578 FIXED Move preferences for conversation logs/transcripts to chat tabmaksymsproductengine
2012-09-13CHUI-334 FIXED (Date not shown in the chat log for current date entries)Paul ProductEngine
Before the "%Y/%m/%d" was always cutted from timestamp string for today's date. Now I added flag whether we should cut off timestamp or not.
2012-08-28CHUI-275 FIXED (Chat history viewer does not show entire user.txt IM log file)Paul ProductEngine
- Renamed LLLogChat::loadAllHistory to LLLogChat::loadChatHistory because it doesn't actually loads all history. Also added parameter to the function which is a flag whether to load all file's content or not. - Implemented displaying history by pages (as was decided on meeting page): Added showHistory() method to the LLFloaterConversationPreview which shows the chat history page by page starting from the last conversation (or may say starting from the last page). One page contains 100 entries. Added "More history..." button to display next page of history.
2011-06-17CHOP-662 - initial fix to problems with regex characters in Group namesSquire
causing the LLDirIterator to crash the viewer when opening chat logs
2011-05-11STORM-477 Restored the backed out changeset: b62b260aa04dSeth ProductEngine
2011-01-25Merge in changes from mani_linden/viewer-vs2010jenn
2011-01-21Code fixes for VS2010 compatibilityMark Palange (Mani)
2011-01-11STORM-477 FIXED Re-implemented LLDir::getNextFileInDir() as an iterator object.Seth ProductEngine
- Replaced all existing usages of LLDir::getNextFileInDir() with the new directory iterator object. - Removed platform specific LLDir::getNextFileInDir() implementation.
2011-01-06STORM-826 (workaround): correct mixed and dos-style line endingsOz Linden
2010-11-23STORM-102: this is to correct a minor issue with ad-hoc conferences so that ↵Wolfpup Lowenhar
they do not get date stamped at all since each one is defined as a unique conversation.
2010-11-11STORM-102 : STORM-143 :Made needed changes to code to improve searching for ↵Wolfpup Lowenhar
previous logs and also changed the name used for P2P IM log file names. The latter change is going to temporarely break personal content for those that are saving conversation logs as P2P IM logs will now be useinf the user name and not the legacy name.
2010-11-08STORM-102: STORM-143: Refactored the STORM-103 code to pull the proper plain ↵Wolfpup Lowenhar
test log no matter when it was generated or if it has the date stamp in the name of the log or not. --HG-- branch : storm-102
2010-10-26This is the setting of the core file name date stamp code and settings ↵Wolfpup Lowenhar
files for Chat, Group and IM Logs. --HG-- branch : storm-102
2010-10-22DN-181 Chat & IM logs saved in unreadable .llsd instead of .txtLeyla Farazha
2010-09-03Post-convert merge by convert_monolith.py from ↵Aimee Linden
/Users/Aimee/Documents/Work/Linden-Lab/Development/viewer/convert/viewer-identity-evolution
2010-08-13Change license from GPL to LGPL (version 2.1)Oz Linden