source/MainGUI.cpp
/**
 * Slot: Executed when the GameListDownloser has successfully downloded 
 * and parsed the game list.
 * 
 * @param gameList The list with game list entries.
 */
Executed when the GameListDownloser has successfully downloded
and parsed the game list.

@param gameList The list with game list entries.
Executed when the GameListDownloser has successfully downloded and parsed the game list . @param gameList The list with game list entries .
void MainGUI::onGameListDownloadFinished(QList<GameListEntry> gameList)
{
    widget.gameList->clear();
    foreach (GameListEntry gameListEntry, gameList)
    {
        QListWidgetItem* gameListItem = new QListWidgetItem();
        gameListItem->setData(GamelistDelegate::BOTNAME, gameListEntry.getHostname());
        gameListItem->setData(GamelistDelegate::GAMENAME, gameListEntry.getGamename());
        gameListItem->setData(GamelistDelegate::OPEN_SLOTS, gameListEntry.getOpenSlotCount());
        widget.gameList->addItem(gameListItem);
    }
}
void MainGUI :: onGameListDownloadFinished ( QList < GameListEntry > gameList ) { widget . gameList -> clear ( ) ; foreach ( GameListEntry gameListEntry , gameList ) { QListWidgetItem * gameListItem = new QListWidgetItem ( ) ; gameListItem -> setData ( GamelistDelegate :: BOTNAME , gameListEntry . getHostname ( ) ) ; gameListItem -> setData ( GamelistDelegate :: GAMENAME , gameListEntry . getGamename ( ) ) ; gameListItem -> setData ( GamelistDelegate :: OPEN_SLOTS , gameListEntry . getOpenSlotCount ( ) ) ; widget . gameList -> addItem ( gameListItem ) ; } }
Slot: Executed when the GameListDownloser has successfully downloded
 and parsed the game list.
Slot : Executed when the GameListDownloser has successfully downloded and parsed the game list .