LoginDialog::DropDownList Class Reference

List of all members.


Detailed Description

Helper class to keep a list of all the recent entries for the dropdown.

Definition at line 109 of file login.h.


Public Member Functions

 DropDownList (std::string prefix, std::vector< std::string > dfltServer, std::vector< std::string > dfltPort, int maxEntries)
void save (const std::string &server, const std::string &port)
int getNumberOfElements ()
std::string getElementAt (int i)
std::string getServerAt (int i)
std::string getPortAt (int i)

Private Member Functions

void saveEntry (const std::string &server, const std::string &port, int &saved)

Private Attributes

std::vector< std::string > mServers
std::vector< std::string > mPorts
std::string mConfigPrefix
int mMaxEntries

Constructor & Destructor Documentation

LoginDialog::DropDownList::DropDownList ( std::string  prefix,
std::vector< std::string >  dfltServer,
std::vector< std::string >  dfltPort,
int  maxEntries 
)


Member Function Documentation

void LoginDialog::DropDownList::saveEntry ( const std::string &  server,
const std::string &  port,
int &  saved 
) [private]

void LoginDialog::DropDownList::save ( const std::string &  server,
const std::string &  port 
)

int LoginDialog::DropDownList::getNumberOfElements (  ) 

std::string LoginDialog::DropDownList::getElementAt ( int  i  ) 

std::string LoginDialog::DropDownList::getServerAt ( int  i  ) 

std::string LoginDialog::DropDownList::getPortAt ( int  i  ) 


Member Data Documentation

std::vector<std::string> LoginDialog::DropDownList::mServers [private]

Definition at line 112 of file login.h.

std::vector<std::string> LoginDialog::DropDownList::mPorts [private]

Definition at line 113 of file login.h.

Definition at line 114 of file login.h.

Definition at line 115 of file login.h.


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

Generated on Sun Apr 26 17:30:43 2009 for The Mana World by  doxygen 1.5.5