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


Member Function Documentation

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]

Definition at line 69 of file llurlwhitelist.cpp.

References NULL, and sInstance.

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  ) 

Definition at line 192 of file llurlwhitelist.cpp.

References mCurIndex, and mUrlList.

LLUrlWhiteList * LLUrlWhiteList::getInstance (  )  [static]

Definition at line 75 of file llurlwhitelist.cpp.

References sInstance.

bool LLUrlWhiteList::getNext ( LLString valueOut  ) 

Definition at line 205 of file llurlwhitelist.cpp.

References mCurIndex, and mUrlList.

void LLUrlWhiteList::initClass (  )  [static]

Definition at line 60 of file llurlwhitelist.cpp.

References LLUrlWhiteList(), and 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.

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


Member Data Documentation

U32 LLUrlWhiteList::mCurIndex [private]

Definition at line 67 of file llurlwhitelist.h.

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

const LLString LLUrlWhiteList::mFilename [private]

Definition at line 65 of file llurlwhitelist.h.

Referenced by load(), and save().

bool LLUrlWhiteList::mLoaded [private]

Definition at line 64 of file llurlwhitelist.h.

Referenced by load().

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


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:55 2010 for Second Life Viewer by  doxygen 1.4.7