18#include <swsendercontrol.h>
19#include <swradiyomainwidget.h>
26 _header->setText(
"Sender" );
27 _itemList->setFocus();
28 _sourceType = SWPlayableItem::SWWEBSTREAM;
33SWSenderControl::~SWSenderControl()
39void SWSenderControl::loadEntryList(
const QString& folderHint )
45 QString mediafile = readResource( folderHint );
46 QTextStream medialist( &mediafile );
48 while( !medialist.atEnd() )
50 QString line = medialist.readLine();
51 QStringList entry = line.split(
';');
52 if( entry.size() == 2 )
54 QListWidgetItem* item =
new QListWidgetItem( entry[0] );
55 item->setData( SWListControlRole, entry[1] );
56 _itemList->addItem( item );
61 if( _itemList->count() > 0 )
64 _itemList->setCurrentRow( _idx );
71void SWSenderControl::saveSettings()