KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Static Public Member Functions | Protected Attributes | Static Private Attributes | List of all members
KviInputHistory Class Reference

Input history class. More...

#include <KviInputHistory.h>

Public Member Functions

void add (QString *szString)
 Adds a string to the history. More...
 
unsigned int count ()
 Returns the number of instances of the class. More...
 
 KviInputHistory ()
 Constructs the input history object. More...
 
KviPointerList< QString > * list ()
 Returns the list of string in the history. More...
 
void load (const QString &szFileName)
 Loads the history. More...
 
void save (const QString &szFileName)
 Saves the history. More...
 
 ~KviInputHistory ()
 Destroys the input history object. More...
 

Static Public Member Functions

static void addRef ()
 Adds a reference to the class. More...
 
static void delRef ()
 Removes a reference to the class. More...
 
static void done ()
 Destroys the class instance. More...
 
static void init ()
 Initializes the class instance. More...
 
static KviInputHistoryinstance ()
 Returns the instance of the class. More...
 

Protected Attributes

KviPointerList< QString > * m_pStringList
 

Static Private Attributes

static KviInputHistorym_pSelf = nullptr
 
static unsigned int m_uCount = 0
 

Detailed Description

Input history class.

Constructor & Destructor Documentation

KviInputHistory::KviInputHistory ( )

Constructs the input history object.

Returns
KviInputHistory

References m_pStringList, and KviPointerList< T >::setAutoDelete().

Referenced by init().

KviInputHistory::~KviInputHistory ( )

Destroys the input history object.

References m_pStringList.

Member Function Documentation

void KviInputHistory::add ( QString *  szString)
void KviInputHistory::addRef ( )
static

Adds a reference to the class.

Returns
void

References m_uCount.

Referenced by init().

unsigned int KviInputHistory::count ( )
inline

Returns the number of instances of the class.

Returns
unsigned int

Referenced by done(), and init().

void KviInputHistory::delRef ( )
static

Removes a reference to the class.

Returns
void

References m_uCount.

Referenced by done().

void KviInputHistory::done ( )
static

Destroys the class instance.

Returns
void

References count(), delRef(), and m_pSelf.

Referenced by KviApplication::~KviApplication().

void KviInputHistory::init ( )
static

Initializes the class instance.

Returns
void

References addRef(), count(), KviInputHistory(), and m_pSelf.

Referenced by KviApplication::setup().

static KviInputHistory* KviInputHistory::instance ( )
inlinestatic
KviPointerList<QString>* KviInputHistory::list ( )
inline

Returns the list of string in the history.

Returns
KviPointerList<QString> *

Referenced by KviHistoryWindow::fill().

void KviInputHistory::load ( const QString &  szFileName)
void KviInputHistory::save ( const QString &  szFileName)

Member Data Documentation

KviInputHistory * KviInputHistory::m_pSelf = nullptr
staticprivate

Referenced by done(), and init().

KviPointerList<QString>* KviInputHistory::m_pStringList
protected
unsigned int KviInputHistory::m_uCount = 0
staticprivate

Referenced by addRef(), and delRef().


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