#include <llurlwhitelist.h>
Collaboration diagram for LLUrlWhiteList:
Public Member Functions | |
virtual | ~LLUrlWhiteList () |
bool | load () |
bool | save () |
bool | clear () |
bool | addItem (const LLString &itemIn, bool saveAfterAdd) |
bool | containsMatch (const LLString &patternIn) |
bool | getFirst (LLString &valueOut) |
bool | getNext (LLString &valueOut) |
Static Public Member Functions | |
static void | initClass () |
static void | cleanupClass () |
static LLUrlWhiteList * | getInstance () |
Private Types | |
typedef std::vector< LLString > | string_list_t |
Private Member Functions | |
LLUrlWhiteList () | |
Private Attributes | |
bool | mLoaded |
const LLString | mFilename |
string_list_t | mUrlList |
U32 | mCurIndex |
Static Private Attributes | |
static LLUrlWhiteList * | sInstance = 0 |
Definition at line 38 of file llurlwhitelist.h.
typedef std::vector< LLString > LLUrlWhiteList::string_list_t [private] |
Definition at line 62 of file llurlwhitelist.h.
LLUrlWhiteList::~LLUrlWhiteList | ( | ) | [virtual] |
Definition at line 53 of file llurlwhitelist.cpp.
LLUrlWhiteList::LLUrlWhiteList | ( | ) | [private] |
bool LLUrlWhiteList::addItem | ( | const LLString & | itemIn, | |
bool | saveAfterAdd | |||
) |
Definition at line 177 of file llurlwhitelist.cpp.
References mUrlList, save(), and url_cleanup().
Referenced by load().
void LLUrlWhiteList::cleanupClass | ( | ) | [static] |
bool LLUrlWhiteList::clear | ( | ) |
Definition at line 143 of file llurlwhitelist.cpp.
References mCurIndex, and mUrlList.
Referenced by load().
bool LLUrlWhiteList::containsMatch | ( | const LLString & | patternIn | ) |
Definition at line 217 of file llurlwhitelist.cpp.
bool LLUrlWhiteList::getFirst | ( | LLString & | valueOut | ) |
LLUrlWhiteList * LLUrlWhiteList::getInstance | ( | ) | [static] |
bool LLUrlWhiteList::getNext | ( | LLString & | valueOut | ) |
void LLUrlWhiteList::initClass | ( | ) | [static] |
bool LLUrlWhiteList::load | ( | ) |
Definition at line 82 of file llurlwhitelist.cpp.
References addItem(), clear(), gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_PER_SL_ACCOUNT, llifstream, mFilename, and mLoaded.
bool LLUrlWhiteList::save | ( | ) |
Definition at line 118 of file llurlwhitelist.cpp.
References gDirUtilp, LLDir::getExpandedFilename(), LL_PATH_PER_SL_ACCOUNT, llofstream, mFilename, and mUrlList.
Referenced by addItem().
U32 LLUrlWhiteList::mCurIndex [private] |
const LLString LLUrlWhiteList::mFilename [private] |
bool LLUrlWhiteList::mLoaded [private] |
string_list_t LLUrlWhiteList::mUrlList [private] |
Definition at line 66 of file llurlwhitelist.h.
Referenced by addItem(), clear(), getFirst(), getNext(), and save().
LLUrlWhiteList * LLUrlWhiteList::sInstance = 0 [static, private] |
Definition at line 60 of file llurlwhitelist.h.
Referenced by cleanupClass(), getInstance(), and initClass().