GUIListHelper< TLIST, TID > Class Template Reference

#include <gui_list_helper.h>

Collaboration diagram for GUIListHelper< TLIST, TID >:

Collaboration graph
[legend]
List of all members.

Public Types

 SORT_BY_ID
 SORT_BY_DESCR
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 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

Classes

struct  THelpData

Detailed Description

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

Definition at line 66 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 69 of file gui_list_helper.h.


Constructor & Destructor Documentation

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

Definition at line 110 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 
)

Definition at line 118 of file gui_list_helper.h.

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

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

Definition at line 127 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 82 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 80 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_Index2ID.

template<class TLIST, class TID>
const TID & GUIListHelper< TLIST, TID >::getCurrentItem (  )  const

Definition at line 168 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_Index2ID, and GUIListHelper< TLIST, TID >::m_List.

template<class TLIST, class TID>
void GUIListHelper< TLIST, TID >::setCurrentItem ( const TID &   )  const

Definition at line 159 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_ID2Index, and GUIListHelper< TLIST, TID >::m_List.

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

Definition at line 133 of file gui_list_helper.h.

References GUIListHelper< TLIST, TID >::m_ID2Description, GUIListHelper< TLIST, TID >::m_ID2Index, GUIListHelper< TLIST, TID >::m_Index2ID, GUIListHelper< TLIST, TID >::m_List, and GUIListHelper< TLIST, TID >::m_skey.

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


Member Data Documentation

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

Definition at line 89 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]

Definition at line 88 of file gui_list_helper.h.

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

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

Definition at line 87 of file gui_list_helper.h.

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

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

Definition at line 86 of file gui_list_helper.h.

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

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

Definition at line 85 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 Fri Jan 28 16:28:24 2011 for kradio by  doxygen 1.4.7