|
|
@ -76,18 +76,21 @@ KStreamRipper::KStreamRipper( TQWidget* parent, const char* name )
|
|
|
|
nameList = appConfig->readListEntry( "names" );
|
|
|
|
nameList = appConfig->readListEntry( "names" );
|
|
|
|
urlList = appConfig->readListEntry( "urls" );
|
|
|
|
urlList = appConfig->readListEntry( "urls" );
|
|
|
|
descList = appConfig->readListEntry( "descs" );
|
|
|
|
descList = appConfig->readListEntry( "descs" );
|
|
|
|
TQStringList::iterator iter1, iter2, iter3;
|
|
|
|
size_t numEntries = nameList.size();
|
|
|
|
iter1 = nameList.begin();
|
|
|
|
if (urlList.size() < numEntries)
|
|
|
|
iter2 = urlList.begin();
|
|
|
|
{
|
|
|
|
iter3 = descList.begin();
|
|
|
|
numEntries = urlList.size();
|
|
|
|
|
|
|
|
}
|
|
|
|
for( ; iter1 != nameList.end() && iter2 != urlList.end() && iter3 != descList.end(); ++iter1, ++iter2, ++iter3 )
|
|
|
|
for(size_t idx = 0; idx < numEntries; ++idx)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ProcessListViewItem * procItem = new ProcessListViewItem( m_streamsListView, *iter1, "", "");
|
|
|
|
ProcessListViewItem * procItem = new ProcessListViewItem( m_streamsListView, nameList[idx], "", "");
|
|
|
|
procItem->setRenameEnabled(0, true);
|
|
|
|
procItem->setRenameEnabled(0, true);
|
|
|
|
ProcessController *pc = procItem->getProcessController();
|
|
|
|
ProcessController *pc = procItem->getProcessController();
|
|
|
|
pc->setUrl( *iter2 );
|
|
|
|
pc->setUrl( urlList[idx] );
|
|
|
|
pc->setDescription( *iter3 );
|
|
|
|
if (idx < descList.size())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pc->setDescription( descList[idx] );
|
|
|
|
|
|
|
|
}
|
|
|
|
connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
|
|
|
|
connect(pc, TQT_SIGNAL(stopRipSignal(ProcessController*)), this, TQT_SLOT(ripStopped(ProcessController*)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|