#include <llurlhistory.h>
Static Public Member Functions | |
static bool | loadFile (const LLString &filename) |
static bool | saveFile (const LLString &filename) |
static LLSD | getURLHistory (const std::string &collection) |
static void | addURL (const std::string &collection, const std::string &url) |
static void | removeURL (const std::string &collection, const std::string &url) |
static void | clear (const std::string &collection) |
static void | limitSize (const std::string &collection) |
Static Private Attributes | |
static LLSD | sHistorySD |
Definition at line 39 of file llurlhistory.h.
bool LLURLHistory::loadFile | ( | const LLString & | filename | ) | [static] |
Definition at line 46 of file llurlhistory.cpp.
References LLSDSerialize::fromXML(), gDirUtilp, LLDir::getDirDelimiter(), LLDir::getLindenUserDir(), LLSD::isUndefined(), llendl, llifstream, llinfos, and sHistorySD.
Referenced by idle_startup().
bool LLURLHistory::saveFile | ( | const LLString & | filename | ) | [static] |
Definition at line 74 of file llurlhistory.cpp.
References gDirUtilp, LLDir::getDirDelimiter(), LLDir::getLindenUserDir(), llendl, llofstream, llwarns, sHistorySD, and LLSDSerialize::toXML().
Referenced by LLAppViewer::cleanup().
LLSD LLURLHistory::getURLHistory | ( | const std::string & | collection | ) | [static] |
Definition at line 92 of file llurlhistory.cpp.
References LLSD::has(), and sHistorySD.
Referenced by LLFloaterURLEntry::buildURLHistory(), LLFloaterMediaBrowser::buildURLHistory(), and LLFloaterURLEntry::LLFloaterURLEntry().
void LLURLHistory::addURL | ( | const std::string & | collection, | |
const std::string & | url | |||
) | [static] |
Definition at line 102 of file llurlhistory.cpp.
References LLSD::insert(), limitSize(), and sHistorySD.
Referenced by LLFloaterURLEntry::onBtnOK(), and LLFloaterMediaBrowser::onLocationChange().
void LLURLHistory::removeURL | ( | const std::string & | collection, | |
const std::string & | url | |||
) | [static] |
Definition at line 111 of file llurlhistory.cpp.
References LLSD::asString(), LLSD::beginArray(), LLSD::endArray(), LLSD::erase(), sHistorySD, and LLSD::size().
Referenced by LLFloaterURLEntry::onBtnOK(), and LLFloaterMediaBrowser::onLocationChange().
void LLURLHistory::clear | ( | const std::string & | collection | ) | [static] |
Definition at line 125 of file llurlhistory.cpp.
References sHistorySD.
Referenced by LLFloaterURLEntry::callback_clear_url_list().
void LLURLHistory::limitSize | ( | const std::string & | collection | ) | [static] |
Definition at line 130 of file llurlhistory.cpp.
References LLSD::erase(), MAX_URL_COUNT, and sHistorySD.
Referenced by addURL().
LLSD LLURLHistory::sHistorySD [static, private] |
Definition at line 57 of file llurlhistory.h.
Referenced by addURL(), clear(), getURLHistory(), limitSize(), loadFile(), removeURL(), and saveFile().