MythTV  0.26-pre
Public Member Functions | Protected Slots | Private Types | Private Member Functions | Private Attributes | Friends
ProgLister Class Reference

#include <proglist.h>

Inheritance diagram for ProgLister:
ScheduleCommon MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

 ProgLister (MythScreenStack *parent, ProgListType pltype, const QString &view, const QString &extraArg)
 ProgLister (MythScreenStack *parent, uint recid=0, const QString &title=QString())
 ~ProgLister ()
bool Create (void)
bool keyPressEvent (QKeyEvent *)
 Key event handler.
void customEvent (QEvent *)

Protected Slots

void HandleSelected (MythUIButtonListItem *item)
void HandleVisible (MythUIButtonListItem *item)
void HandleClicked (void)
void DeleteOldEpisode (bool ok)
void DeleteOldSeries (bool ok)
void RecordSelected (void)
void SetViewFromList (QString item)
void SetViewFromTime (QDateTime searchTime)
void EditScheduled (void)
void EditCustom (void)
void ShowDetails (void)
void ShowUpcoming (void)
void ShowDeleteRuleMenu (void)
void ShowDeleteOldEpisodeMenu (void)
void ShowChooseViewMenu (void)

Private Types

enum  SortBy { kTimeSort, kPrevTitleSort, kTitleSort }

Private Member Functions

void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning)
void FillViewList (const QString &view)
void FillItemList (bool restorePosition, bool updateDisp=true)
void ClearCurrentProgramInfo (void)
void UpdateDisplay (const ProgramInfo *selected=NULL)
void RestoreSelection (const ProgramInfo *selected, int selectedOffset)
void UpdateButtonList (void)
void UpdateKeywordInDB (const QString &text, const QString &oldValue)
virtual void ShowMenu (void)
void ShowDeleteItemMenu (void)
void ShowDeleteOldSeriesMenu (void)
void ShowOldRecordedMenu (void)
void SwitchToPreviousView (void)
void SwitchToNextView (void)
SortBy GetSortBy (void) const
void SortList (SortBy sortby, bool reverseSort)
ProgramInfoGetCurrent (void)
const ProgramInfoGetCurrent (void) const
bool PowerStringToSQL (const QString &qphrase, QString &output, MSqlBindings &bindings) const

Private Attributes

ProgListType m_type
uint m_recid
QString m_title
QString m_extraArg
QDateTime m_startTime
QDateTime m_searchTime
QString m_channelOrdering
RecSearchType m_searchType
QString m_view
int m_curView
QStringList m_viewList
QStringList m_viewTextList
ProgramList m_itemList
ProgramList m_itemListSave
ProgramList m_schedList
QStringList m_typeList
QStringList m_genreList
QStringList m_stationList
bool m_allowEvents
bool m_titleSort
bool m_reverseSort
bool m_useGenres
MythUITextm_schedText
MythUITextm_curviewText
MythUITextm_positionText
MythUIButtonListm_progList
MythUITextm_messageText

Friends

class PhrasePopup
class TimePopup
class PowerSearchPopup
class EditPowerSearchPopup

Detailed Description

Definition at line 31 of file proglist.h.


Member Enumeration Documentation

enum ProgLister::SortBy [private]
Enumerator:
kTimeSort 
kPrevTitleSort 
kTitleSort 

Definition at line 92 of file proglist.h.


Constructor & Destructor Documentation

ProgLister::ProgLister ( MythScreenStack parent,
ProgListType  pltype,
const QString &  view,
const QString &  extraArg 
)

Definition at line 28 of file proglist.cpp.

ProgLister::ProgLister ( MythScreenStack parent,
uint  recid = 0,
const QString &  title = QString() 
) [explicit]

Definition at line 78 of file proglist.cpp.

Definition at line 117 of file proglist.cpp.


Member Function Documentation

bool ProgLister::Create ( void  ) [virtual]
bool ProgLister::keyPressEvent ( QKeyEvent *  ) [virtual]

Key event handler.

Parameters:
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 201 of file proglist.cpp.

void ProgLister::customEvent ( QEvent *  event) [virtual]

Reimplemented from ScheduleCommon.

Definition at line 1598 of file proglist.cpp.

void ProgLister::HandleSelected ( MythUIButtonListItem item) [protected, slot]

Definition at line 1560 of file proglist.cpp.

Referenced by Create().

void ProgLister::HandleVisible ( MythUIButtonListItem item) [protected, slot]

Definition at line 1510 of file proglist.cpp.

Referenced by Create().

void ProgLister::HandleClicked ( void  ) [protected, slot]

Definition at line 607 of file proglist.cpp.

Referenced by Create().

void ProgLister::DeleteOldEpisode ( bool  ok) [protected, slot]

Definition at line 670 of file proglist.cpp.

Referenced by ShowDeleteOldEpisodeMenu().

void ProgLister::DeleteOldSeries ( bool  ok) [protected, slot]

Definition at line 703 of file proglist.cpp.

Referenced by ShowDeleteOldSeriesMenu().

void ProgLister::RecordSelected ( void  ) [protected, slot]

Definition at line 596 of file proglist.cpp.

Referenced by keyPressEvent(), and ShowMenu().

void ProgLister::SetViewFromList ( QString  item) [protected, slot]

Definition at line 523 of file proglist.cpp.

Referenced by EditPowerSearchPopup::okClicked(), and ShowChooseViewMenu().

void ProgLister::SetViewFromTime ( QDateTime  searchTime) [protected, slot]

Definition at line 509 of file proglist.cpp.

Referenced by ShowChooseViewMenu().

void ProgLister::EditScheduled ( void  ) [inline, protected, slot]

Definition at line 63 of file proglist.h.

Referenced by keyPressEvent(), and ShowMenu().

void ProgLister::EditCustom ( void  ) [inline, protected, slot]

Definition at line 64 of file proglist.h.

Referenced by keyPressEvent(), and ShowMenu().

void ProgLister::ShowDetails ( void  ) [inline, protected, slot]

Definition at line 66 of file proglist.h.

Referenced by keyPressEvent(), and ShowMenu().

void ProgLister::ShowUpcoming ( void  ) [protected, slot]

Definition at line 759 of file proglist.cpp.

Referenced by keyPressEvent(), and ShowMenu().

void ProgLister::ShowDeleteRuleMenu ( void  ) [protected, slot]

Definition at line 627 of file proglist.cpp.

Referenced by ShowDeleteItemMenu(), and ShowMenu().

Definition at line 658 of file proglist.cpp.

Referenced by customEvent(), ShowDeleteItemMenu(), and ShowMenu().

void ProgLister::ShowChooseViewMenu ( void  ) [protected, slot]

Definition at line 429 of file proglist.cpp.

Referenced by customEvent(), and ShowMenu().

void ProgLister::Load ( void  ) [private, virtual]

Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning)

Warning:
This method should only load data, it should NEVER perform UI routines or segfaults WILL result. This includes assinging data to any widgets, calling methods on a widget or anything else which triggers redraws. The safest and recommended approach is to avoid any interaction with a libmythui class or class member.

Reimplemented from MythScreenType.

Definition at line 189 of file proglist.cpp.

void ProgLister::FillViewList ( const QString &  view) [private]

Definition at line 766 of file proglist.cpp.

Referenced by Load(), and EditPowerSearchPopup::okClicked().

void ProgLister::FillItemList ( bool  restorePosition,
bool  updateDisp = true 
) [private]

Definition at line 1100 of file proglist.cpp.

Referenced by customEvent(), DeleteOldEpisode(), DeleteOldSeries(), and Load().

Definition at line 1448 of file proglist.cpp.

Referenced by HandleSelected(), and UpdateDisplay().

void ProgLister::UpdateDisplay ( const ProgramInfo selected = NULL) [private]

Definition at line 1459 of file proglist.cpp.

Referenced by customEvent(), and FillItemList().

void ProgLister::RestoreSelection ( const ProgramInfo selected,
int  selectedOffset 
) [private]

Definition at line 1482 of file proglist.cpp.

Referenced by UpdateDisplay().

Definition at line 1543 of file proglist.cpp.

Referenced by UpdateDisplay().

void ProgLister::UpdateKeywordInDB ( const QString &  text,
const QString &  oldValue 
) [private]

Definition at line 384 of file proglist.cpp.

Referenced by PhrasePopup::okClicked(), and EditPowerSearchPopup::okClicked().

void ProgLister::ShowMenu ( void  ) [private, virtual]

Reimplemented from MythScreenType.

Definition at line 289 of file proglist.cpp.

Definition at line 619 of file proglist.cpp.

Referenced by keyPressEvent().

Definition at line 691 of file proglist.cpp.

Referenced by customEvent().

Definition at line 724 of file proglist.cpp.

Referenced by HandleClicked().

Definition at line 337 of file proglist.cpp.

Referenced by keyPressEvent().

Definition at line 360 of file proglist.cpp.

Referenced by keyPressEvent().

Definition at line 1415 of file proglist.cpp.

Referenced by FillItemList().

void ProgLister::SortList ( SortBy  sortby,
bool  reverseSort 
) [private]

Definition at line 1424 of file proglist.cpp.

Referenced by FillItemList().

const ProgramInfo * ProgLister::GetCurrent ( void  ) const [private]

Definition at line 580 of file proglist.cpp.

bool ProgLister::PowerStringToSQL ( const QString &  qphrase,
QString &  output,
MSqlBindings bindings 
) const [private]

Friends And Related Function Documentation

friend class PhrasePopup [friend]

Definition at line 33 of file proglist.h.

Referenced by ShowChooseViewMenu().

friend class TimePopup [friend]

Definition at line 34 of file proglist.h.

friend class PowerSearchPopup [friend]

Definition at line 35 of file proglist.h.

Referenced by ShowChooseViewMenu().

friend class EditPowerSearchPopup [friend]

Definition at line 36 of file proglist.h.


Member Data Documentation

Definition at line 104 of file proglist.h.

Referenced by FillItemList().

QString ProgLister::m_title [private]

Definition at line 105 of file proglist.h.

Referenced by FillItemList().

QString ProgLister::m_extraArg [private]

Definition at line 106 of file proglist.h.

Referenced by FillItemList().

QDateTime ProgLister::m_startTime [private]

Definition at line 107 of file proglist.h.

Referenced by FillItemList(), and FillViewList().

QDateTime ProgLister::m_searchTime [private]
QString ProgLister::m_channelOrdering [private]

Definition at line 109 of file proglist.h.

Referenced by FillViewList().

Definition at line 111 of file proglist.h.

Referenced by FillViewList(), ProgLister(), ShowChooseViewMenu(), and UpdateKeywordInDB().

QString ProgLister::m_view [private]

Definition at line 113 of file proglist.h.

Referenced by Load().

QStringList ProgLister::m_viewList [private]
QStringList ProgLister::m_viewTextList [private]

Definition at line 119 of file proglist.h.

Referenced by FillItemList(), and ~ProgLister().

Definition at line 120 of file proglist.h.

Referenced by FillItemList().

QStringList ProgLister::m_typeList [private]

Definition at line 122 of file proglist.h.

QStringList ProgLister::m_genreList [private]

Definition at line 123 of file proglist.h.

QStringList ProgLister::m_stationList [private]

Definition at line 124 of file proglist.h.

Definition at line 126 of file proglist.h.

Referenced by keyPressEvent().

Definition at line 127 of file proglist.h.

Referenced by customEvent(), FillItemList(), GetSortBy(), keyPressEvent(), and RestoreSelection().

Definition at line 128 of file proglist.h.

Referenced by customEvent(), FillItemList(), keyPressEvent(), and RestoreSelection().

Definition at line 129 of file proglist.h.

Referenced by FillItemList(), and FillViewList().

Definition at line 131 of file proglist.h.

Referenced by Create().

Definition at line 132 of file proglist.h.

Referenced by Create(), FillItemList(), and UpdateDisplay().

Definition at line 133 of file proglist.h.

Referenced by ClearCurrentProgramInfo(), Create(), HandleSelected(), and UpdateButtonList().

Definition at line 135 of file proglist.h.

Referenced by Create(), and UpdateDisplay().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends