Public Slots | Signals | Public Member Functions | Private Member Functions | Private Attributes

addshowdialog Class Reference

The add show dialog that is presented when the user chooses the menu item in the main Show Tracker 2 window. More...

#include <addshowdialog.h>

List of all members.

Public Slots

void ProcessSearchResults (QNetworkReply *netreply)
 Processes search results.
void Search ()
 Searches using the text from the query textbox.
void AddShow ()
 Adds a show using the selected item in the results listbox.
void EnableSearch (const QString &text)
 Enables/Disables search depending on the text parameter.
void EnableAdd ()
 Enables/Disables adding depending on whether an item is selected from the list.

Signals

void AddedShow (QString showId)
 This signal is emitted when a show is selected to be added.

Public Member Functions

 addshowdialog (QWidget *parent=0)
 Initialises the dialog.
 ~addshowdialog ()

Private Member Functions

void GetSearchResults (QString showname)
 Gets search results.

Private Attributes

Ui::addshowdialogClass ui
QDomDocument searchResults
 The search results for the last search query.

Detailed Description

The add show dialog that is presented when the user chooses the menu item in the main Show Tracker 2 window.


Constructor & Destructor Documentation

addshowdialog::addshowdialog ( QWidget *  parent = 0  ) 

Initialises the dialog.

Initialises the dialog and connects all signals.

Parameters:
parent Must be the ShowTracker2 instance
addshowdialog::~addshowdialog (  ) 

Member Function Documentation

void addshowdialog::AddedShow ( QString  showId  )  [signal]

This signal is emitted when a show is selected to be added.

Parameters:
showId The show ID belonging to the show to add
void addshowdialog::AddShow (  )  [slot]

Adds a show using the selected item in the results listbox.

See also:
AddedShow()
void addshowdialog::EnableAdd (  )  [slot]

Enables/Disables adding depending on whether an item is selected from the list.

void addshowdialog::EnableSearch ( const QString &  text  )  [slot]

Enables/Disables search depending on the text parameter.

Parameters:
text The text to check
void addshowdialog::GetSearchResults ( QString  showname  )  [private]

Gets search results.

Requests the search results from the server for showname

Parameters:
showname The show name that the user is searching for
See also:
ProcessSearchResults()
void addshowdialog::ProcessSearchResults ( QNetworkReply *  netreply  )  [slot]

Processes search results.

Processes the search results found from the GetSearchResults() function

Parameters:
netreply The network reply that contains the XML data
See also:
GetSearchResults()
void addshowdialog::Search (  )  [slot]

Searches using the text from the query textbox.

See also:
GetSearchResults()

Member Data Documentation

QDomDocument addshowdialog::searchResults [private]

The search results for the last search query.

Ui::addshowdialogClass addshowdialog::ui [private]

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