KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Private Attributes | List of all members
KviParameterList Class Reference

#include <KviParameterList.h>

+ Inheritance diagram for KviParameterList:

Public Member Functions

bool getBool ()
 
int getInt (bool *bOk=0)
 
QPoint getPoint (bool *bOk=0)
 
QRect getRect (bool *bOk=0)
 
QSize getSize (bool *bOk=0)
 
unsigned int getUInt (bool *bOk=0)
 
void init ()
 
 KviParameterList ()
 
 KviParameterList (KviCString *p1)
 
 KviParameterList (KviCString *p1, KviCString *p2)
 
 KviParameterList (KviCString *p1, KviCString *p2, KviCString *p3)
 
 KviParameterList (KviCString *p1, KviCString *p2, KviCString *p3, KviCString *p4)
 
 KviParameterList (KviCString *p1, KviCString *p2, KviCString *p3, KviCString *p4, KviCString *p5)
 
 KviParameterList (KviCString *p1, KviCString *p2, KviCString *p3, KviCString *p4, KviCString *p5, KviCString *p6)
 
 KviParameterList (KviCString *p1, KviCString *p2, KviCString *p3, KviCString *p4, KviCString *p5, KviCString *p6, KviCString *p7)
 
 KviParameterList (const char *paramBuffer)
 
KviCStringsafeFirst ()
 
const char * safeFirstParam ()
 
KviCStringsafeNext ()
 
const char * safeNextParam ()
 
virtual ~KviParameterList ()
 
- Public Member Functions inherited from KviPointerList< KviCString >
void append (const KviCString *d)
 Appends an item at the end of the list. More...
 
void append (KviPointerList< KviCString > *l)
 Appends all the items from the list l to this list. More...
 
KviCStringat (int idx)
 Returns the item at index position. More...
 
bool autoDelete ()
 Returns the autodelete flag. More...
 
void clear ()
 Removes all the items from the list. More...
 
void copyFrom (KviPointerList< KviCString > *l)
 Clears the list and inserts all the items from the list l. More...
 
unsigned int count () const
 Returns the count of the items in the list. More...
 
KviCStringcurrent ()
 Returns the current iteration item. More...
 
int findRef (const KviCString *d)
 Returns the position of an item. More...
 
KviCStringfirst ()
 Returns the first item in the list. More...
 
void insert (int iIndex, const KviCString *d)
 Inserts the item d at the position specified by iIndex. More...
 
void insertAfter (const KviCString *ref, const KviCString *d)
 Inserts the item d after the item ref. More...
 
void insertBefore (const KviCString *ref, const KviCString *d)
 Inserts the item d before the item ref. More...
 
void inSort (KviCString *t)
 Inserts the item respecting the sorting order inside the list. More...
 
void invert ()
 Inverts the elements in the list. More...
 
bool isEmpty () const
 Returns true if the list is empty. More...
 
KviPointerListIterator
< KviCString
iteratorAt (int idx)
 Returns an iterator pointing to the item at the specified index. More...
 
KviPointerListIterator
< KviCString
iteratorAtCurrent ()
 Returns an iterator pointing to the current item in the list. More...
 
KviPointerListIterator
< KviCString
iteratorAtFirst ()
 Returns an iterator pointing to the first item of the list. More...
 
KviPointerListIterator
< KviCString
iteratorAtLast ()
 Returns an iterator pointing to the first item of the list. More...
 
KviPointerListIterator
< KviCString
iteratorAtRef (const KviCString *d)
 Returns an iterator pointing to the item with pointer d. More...
 
 KviPointerList (bool bAutoDelete=true)
 Creates a template list. More...
 
KviCStringlast ()
 Returns the last item in the list. More...
 
void merge (KviPointerList< KviCString > *src)
 Inserts the list src inside this list. More...
 
KviCStringnext ()
 Returns the next item in the list. More...
 
KviPointerList< KviCString > & operator= (KviPointerList< KviCString > &l)
 Clears the list and inserts all the items from the list l. More...
 
void prepend (KviPointerList< KviCString > *l)
 Prepends all the items from the list l to this list. More...
 
void prepend (const KviCString *d)
 Inserts the item d in the head position. More...
 
KviCStringprev ()
 Returns the previous item in the list. More...
 
bool remove (int iIndex)
 Removes the item at zero-based position iIndex. More...
 
bool removeCurrent ()
 Removes the current iteration item. More...
 
bool removeFirst ()
 Removes the first item (if any) More...
 
bool removeLast ()
 Removes the firstitem (if any) More...
 
bool removeRef (const KviCString *d)
 Removes the item pointed by d (if found in the list) More...
 
KviCStringsafeCurrent ()
 Returns the current iteration item. More...
 
void setAutoDelete (bool bAutoDelete)
 Sets the autodelete flag. More...
 
void sort ()
 Sorts this list in ascending order. More...
 
void swap (KviPointerList< KviCString > *src)
 Swap the lists. More...
 
KviCStringtakeFirst ()
 Removes the first element from the list. More...
 
KviCStringtakeLast ()
 Removes the last item (if any) and returns it. This function obviously never deletes the item (regadless of autoDeletion()). More...
 
virtual ~KviPointerList ()
 Destroys the list. More...
 

Private Attributes

KviCString m_szEmpty
 

Additional Inherited Members

- Protected Member Functions inherited from KviPointerList< KviCString >
void grabFirstAndPrepend (KviPointerList< KviCString > *src)
 Grabs the first element from the list src and puts it as the first element of this list. More...
 
void insertBeforeSafe (KviPointerListNode *ref, const KviCString *d)
 Inserts the item d before the item ref. More...
 
void removeCurrentSafe ()
 Removes the current iteration item assuming that it is valid. More...
 
- Protected Attributes inherited from KviPointerList< KviCString >
bool m_bAutoDelete
 
KviPointerListNodem_pAux
 
KviPointerListNodem_pHead
 
KviPointerListNodem_pTail
 
unsigned int m_uCount
 

Constructor & Destructor Documentation

KviParameterList::KviParameterList ( )
KviParameterList::KviParameterList ( KviCString p1)
KviParameterList::KviParameterList ( KviCString p1,
KviCString p2 
)
KviParameterList::KviParameterList ( KviCString p1,
KviCString p2,
KviCString p3 
)
KviParameterList::KviParameterList ( KviCString p1,
KviCString p2,
KviCString p3,
KviCString p4 
)
KviParameterList::KviParameterList ( KviCString p1,
KviCString p2,
KviCString p3,
KviCString p4,
KviCString p5 
)
KviParameterList::KviParameterList ( KviCString p1,
KviCString p2,
KviCString p3,
KviCString p4,
KviCString p5,
KviCString p6 
)
KviParameterList::KviParameterList ( KviCString p1,
KviCString p2,
KviCString p3,
KviCString p4,
KviCString p5,
KviCString p6,
KviCString p7 
)
KviParameterList::KviParameterList ( const char *  paramBuffer)
KviParameterList::~KviParameterList ( )
virtual

Member Function Documentation

bool KviParameterList::getBool ( )
int KviParameterList::getInt ( bool *  bOk = 0)
QPoint KviParameterList::getPoint ( bool *  bOk = 0)
QRect KviParameterList::getRect ( bool *  bOk = 0)
QSize KviParameterList::getSize ( bool *  bOk = 0)
unsigned int KviParameterList::getUInt ( bool *  bOk = 0)
void KviParameterList::init ( )
inline

References first().

KviCString * KviParameterList::safeFirst ( )
const char* KviParameterList::safeFirstParam ( )
inline
KviCString * KviParameterList::safeNext ( )
const char* KviParameterList::safeNextParam ( )
inline

Member Data Documentation

KviCString KviParameterList::m_szEmpty
private

Referenced by safeFirst(), and safeNext().


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