LLUrlWhiteList Class Reference

#include <llurlwhitelist.h>

Collaboration diagram for LLUrlWhiteList:

Collaboration graph
[legend]

List of all members.

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 LLUrlWhiteListgetInstance ()

Private Types

typedef std::vector< LLStringstring_list_t

Private Member Functions

 LLUrlWhiteList ()

Private Attributes

bool mLoaded
const LLString mFilename
string_list_t mUrlList
U32 mCurIndex

Static Private Attributes

static LLUrlWhiteListsInstance = 0


Detailed Description

Definition at line 38 of file llurlwhitelist.h.


Member Typedef Documentation

typedef std::vector< LLString > LLUrlWhiteList::string_list_t [private]

Definition at line 62 of file llurlwhitelist.h.


Constructor & Destructor Documentation

LLUrlWhiteList::~LLUrlWhiteList (  )  [virtual]

Definition at line 53 of file llurlwhitelist.cpp.

LLUrlWhiteList::LLUrlWhiteList (  )  [private]

Definition at line 43 of file llurlwhitelist.cpp.

Referenced by initClass().

Here is the caller graph for this function:


Member Function Documentation

void LLUrlWhiteList::initClass ( void   )  [static]

Definition at line 60 of file llurlwhitelist.cpp.

References LLUrlWhiteList(), and sInstance.

Here is the call graph for this function:

void LLUrlWhiteList::cleanupClass (  )  [static]

Definition at line 69 of file llurlwhitelist.cpp.

References NULL, and sInstance.

LLUrlWhiteList * LLUrlWhiteList::getInstance (  )  [static]

Definition at line 75 of file llurlwhitelist.cpp.

References sInstance.

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.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLUrlWhiteList::clear ( void   ) 

Definition at line 143 of file llurlwhitelist.cpp.

References mCurIndex, and mUrlList.

Referenced by load().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

bool LLUrlWhiteList::containsMatch ( const LLString patternIn  ) 

Definition at line 217 of file llurlwhitelist.cpp.

bool LLUrlWhiteList::getFirst ( LLString valueOut  ) 

Definition at line 192 of file llurlwhitelist.cpp.

References mCurIndex, and mUrlList.

bool LLUrlWhiteList::getNext ( LLString valueOut  ) 

Definition at line 205 of file llurlwhitelist.cpp.

References mCurIndex, and mUrlList.


Member Data Documentation

LLUrlWhiteList * LLUrlWhiteList::sInstance = 0 [static, private]

Definition at line 60 of file llurlwhitelist.h.

Referenced by cleanupClass(), getInstance(), and initClass().

bool LLUrlWhiteList::mLoaded [private]

Definition at line 64 of file llurlwhitelist.h.

Referenced by load().

Definition at line 65 of file llurlwhitelist.h.

Referenced by load(), and save().

Definition at line 66 of file llurlwhitelist.h.

Referenced by addItem(), clear(), getFirst(), getNext(), and save().

Definition at line 67 of file llurlwhitelist.h.

Referenced by clear(), getFirst(), and getNext().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:20:54 2008 for SecondLife by  doxygen 1.5.5