GUIListHelper< TLIST, TID > Class Template Reference

#include <gui_list_helper.h>

List of all members.

Classes

struct  THelpData

Public Types

enum  SORT_KEY { SORT_BY_ID, SORT_BY_DESCR }

Public Member Functions

 GUIListHelper (TLIST *list, SORT_KEY skey)
 GUIListHelper (TLIST *list, const QMap< TID, QString > &data, SORT_KEY skey)
 ~GUIListHelper ()
void setList (TLIST *list)
void setData (const QMap< TID, QString > &data)
void setCurrentItem (const TID &) const
const TID getCurrentItem () const
int count () const
bool contains (const TID &id) const

Protected Attributes

SORT_KEY m_skey
TLIST * m_List
QMap< int, TID > m_Index2ID
QMap< TID, int > m_ID2Index
QMap< TID, QString > m_ID2Description


Detailed Description

template<class TLIST, class TID>
class GUIListHelper< TLIST, TID >

Definition at line 73 of file gui_list_helper.h.


Member Enumeration Documentation

template<class TLIST , class TID >
enum GUIListHelper::SORT_KEY

Enumerator:
SORT_BY_ID 
SORT_BY_DESCR 

Definition at line 76 of file gui_list_helper.h.


Constructor & Destructor Documentation

template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
SORT_KEY  skey 
) [inline]

Definition at line 119 of file gui_list_helper.h.

template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::GUIListHelper ( TLIST *  list,
const QMap< TID, QString > &  data,
SORT_KEY  skey 
) [inline]

Definition at line 127 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::setData().

template<class TLIST , class TID >
GUIListHelper< TLIST, TID >::~GUIListHelper (  )  [inline]

Definition at line 142 of file gui_list_helper.h.


Member Function Documentation

template<class TLIST , class TID >
bool GUIListHelper< TLIST, TID >::contains ( const TID &  id  )  const [inline]

Definition at line 91 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_ID2Index.

template<class TLIST , class TID >
int GUIListHelper< TLIST, TID >::count (  )  const [inline]

Definition at line 89 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_Index2ID.

template<class TLIST , class TID >
const TID GUIListHelper< TLIST, TID >::getCurrentItem (  )  const [inline]

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setCurrentItem ( const TID &  id  )  const [inline]

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setData ( const QMap< TID, QString > &  data  )  [inline]

template<class TLIST , class TID >
void GUIListHelper< TLIST, TID >::setList ( TLIST *  list  )  [inline]

Definition at line 135 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_List.


Member Data Documentation

template<class TLIST , class TID >
QMap<TID, QString> GUIListHelper< TLIST, TID >::m_ID2Description [protected]

Definition at line 98 of file gui_list_helper.h.

Referenced by GUIListHelper< TLIST, TID >::setData().

template<class TLIST , class TID >
QMap<TID, int> GUIListHelper< TLIST, TID >::m_ID2Index [protected]

template<class TLIST , class TID >
QMap<int, TID> GUIListHelper< TLIST, TID >::m_Index2ID [protected]

template<class TLIST , class TID >
TLIST* GUIListHelper< TLIST, TID >::m_List [protected]

template<class TLIST , class TID >
SORT_KEY GUIListHelper< TLIST, TID >::m_skey [protected]

Definition at line 94 of file gui_list_helper.h.

Referenced by GUIListHelper< TLIST, TID >::setData().


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

Generated on Tue Jun 2 19:19:59 2009 for kradio4 by  doxygen 1.5.8