summaryrefslogtreecommitdiffstats
path: root/src/kmplayerbroadcast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayerbroadcast.cpp')
-rw-r--r--src/kmplayerbroadcast.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/kmplayerbroadcast.cpp b/src/kmplayerbroadcast.cpp
index 95ecb4c..d13b40a 100644
--- a/src/kmplayerbroadcast.cpp
+++ b/src/kmplayerbroadcast.cpp
@@ -70,7 +70,7 @@ KDE_NO_CDTOR_EXPORT FFServerSetting::FFServerSetting (int i, const TQString & n,
width (w > 0 ? TQString::number (w) : TQString ()),
height (h > 0 ? TQString::number (h) : TQString ()) {}
-KDE_NO_EXPORT FFServerSetting & FFServerSetting::operator = (const FFServerSetting & fs) {
+TDE_NO_EXPORT FFServerSetting & FFServerSetting::operator = (const FFServerSetting & fs) {
format = fs.format;
audiocodec = fs.audiocodec;
audiobitrate = fs.audiobitrate;
@@ -85,7 +85,7 @@ KDE_NO_EXPORT FFServerSetting & FFServerSetting::operator = (const FFServerSetti
return *this;
}
-KDE_NO_EXPORT FFServerSetting & FFServerSetting::operator = (const TQStringList & sl) {
+TDE_NO_EXPORT FFServerSetting & FFServerSetting::operator = (const TQStringList & sl) {
if (sl.count () < 11) {
return *this;
}
@@ -108,7 +108,7 @@ KDE_NO_EXPORT FFServerSetting & FFServerSetting::operator = (const TQStringList
return *this;
}
-KDE_NO_EXPORT TQString & FFServerSetting::ffconfig (TQString & buf) {
+TDE_NO_EXPORT TQString & FFServerSetting::ffconfig (TQString & buf) {
TQString nl ("\n");
buf = TQString ("Format ") + format + nl;
if (!audiocodec.isEmpty ())
@@ -132,7 +132,7 @@ KDE_NO_EXPORT TQString & FFServerSetting::ffconfig (TQString & buf) {
return buf;
}
-KDE_NO_EXPORT const TQStringList FFServerSetting::list () {
+TDE_NO_EXPORT const TQStringList FFServerSetting::list () {
TQStringList sl;
sl.push_back (format);
sl.push_back (audiocodec);
@@ -282,7 +282,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerPrefBroadcastFormatPage::KMPlayerPrefBroadcastFormat
#undef ADDPROPERTY
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::setSettings (const FFServerSetting & fs) {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::setSettings (const FFServerSetting & fs) {
if (!fs.format.isEmpty ())
format->setCurrentText (fs.format);
audiocodec->setText (fs.audiocodec);
@@ -303,7 +303,7 @@ KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::setSettings (const FFServerS
accesslist->setItem (i, 0, new TQTableItem (accesslist, TQTableItem::Always, *it));
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::getSettings (FFServerSetting & fs) {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::getSettings (FFServerSetting & fs) {
fs.format = format->currentText ();
fs.audiocodec = audiocodec->text ();
fs.audiobitrate = audiobitrate->text ();
@@ -322,17 +322,17 @@ KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::getSettings (FFServerSetting
}
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotIndexChanged (int index) {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotIndexChanged (int index) {
slotItemHighlighted (index);
if (index >= 0 && index < (int) profiles.size ())
setSettings (*profiles[index]);
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotTextChanged (const TQString & txt) {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotTextChanged (const TQString & txt) {
save->setEnabled (txt.length ());
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotItemHighlighted (int index) {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotItemHighlighted (int index) {
if (index < 0 || index >= (int) profiles.size ()) {
load->setEnabled (false);
del->setEnabled (false);
@@ -344,7 +344,7 @@ KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotItemHighlighted (int ind
}
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotSave () {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotSave () {
for (int i = 0; i < (int) profiles.size (); ++i)
if (profiles[i]->name == profile->text ()) {
getSettings (*profiles[i]);
@@ -357,11 +357,11 @@ KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotSave () {
profilelist->insertItem (fs->name);
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotLoad () {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotLoad () {
setSettings (*profiles[profilelist->currentItem ()]);
}
-KDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotDelete () {
+TDE_NO_EXPORT void KMPlayerPrefBroadcastFormatPage::slotDelete () {
FFServerSettingList::iterator it = profiles.begin();
for (int i = 0; i < profilelist->currentItem (); i++)
++it;
@@ -412,7 +412,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerBroadcastConfig::~KMPlayerBroadcastConfig () {
stopServer ();
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::write (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::write (TDEConfig * config) {
config->setGroup (strBroadcast);
config->writeEntry (strFFServerCustomSetting, ffserversettings.list (), ';');
TQStringList sl;
@@ -423,7 +423,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::write (TDEConfig * config) {
config->writeEntry (strFFServerProfiles, sl, ';');
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::read (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::read (TDEConfig * config) {
std::for_each (ffserversettingprofiles.begin (), ffserversettingprofiles.end (), KMPlayer::Deleter<FFServerSetting>());
ffserversettingprofiles.clear ();
config->setGroup (strBroadcast);
@@ -441,7 +441,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::read (TDEConfig * config) {
}
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::sync (bool fromUI) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::sync (bool fromUI) {
if (fromUI) {
m_configpage->getSettings(ffserversettings);
} else {
@@ -450,7 +450,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::sync (bool fromUI) {
}
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::prefLocation (TQString & item, TQString & icon, TQString & tab) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::prefLocation (TQString & item, TQString & icon, TQString & tab) {
item = i18n ("Broadcasting");
icon = TQString ("share");
tab = i18n ("Profiles");
@@ -467,7 +467,7 @@ TQFrame * KMPlayerBroadcastConfig::prefPage (TQWidget * parent) {
return m_configpage;
}
-KDE_NO_EXPORT bool KMPlayerBroadcastConfig::broadcasting () const {
+TDE_NO_EXPORT bool KMPlayerBroadcastConfig::broadcasting () const {
return m_ffserver_process && m_ffserver_process->isRunning ();
}
#include <tdeglobal.h>
@@ -480,7 +480,7 @@ static const char ffserverconf[] =
"<Stream video.%s>\nFeed kmplayer.ffm\n%s\n%s%s\n</Stream>\n"
"<Stream stat.html>\nFormat status\nACL allow localhost\n</Stream>\n";
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::startServer () {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::startServer () {
if (broadcasting ()) {
stopServer ();
return;
@@ -523,7 +523,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::startServer () {
TQTimer::singleShot (500, this, TQ_SLOT (startFeed ()));
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::stopServer () {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::stopServer () {
m_endserver = true;
if (m_ffmpeg_process)
m_ffmpeg_process->stop ();
@@ -531,12 +531,12 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::stopServer () {
KMessageBox::error (m_configpage, i18n ("Failed to end ffserver process."), i18n ("Error"));
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::processOutput (TDEProcess * p, char * s, int) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::processOutput (TDEProcess * p, char * s, int) {
if (p == m_ffserver_process)
m_ffserver_out += TQString (s);
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::startFeed () {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::startFeed () {
if (!m_configpage) {
stopServer ();
return;
@@ -573,7 +573,7 @@ bail_out:
m_configpage->setCursor (TQCursor (TQt::ArrowCursor));
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::stateChange (KMPlayer::Process::State old, KMPlayer::Process::State state) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::stateChange (KMPlayer::Process::State old, KMPlayer::Process::State state) {
if (state < KMPlayer::Process::Buffering && old >KMPlayer::Process::Ready) {
if (m_configpage)
m_configpage->feedled->setState (KLed::Off);
@@ -590,7 +590,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::stateChange (KMPlayer::Process::Stat
}
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::processStopped (TDEProcess *) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::processStopped (TDEProcess *) {
kdDebug () << "ffserver process stopped" << endl;
if (m_configpage) {
m_configpage->serverled->setState (KLed::Off);
@@ -603,7 +603,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::processStopped (TDEProcess *) {
emit broadcastStopped ();
}
-KDE_NO_EXPORT void KMPlayerBroadcastConfig::sourceChanged (KMPlayer::Source *, KMPlayer::Source * source) {
+TDE_NO_EXPORT void KMPlayerBroadcastConfig::sourceChanged (KMPlayer::Source *, KMPlayer::Source * source) {
if (m_configpage)
m_configpage->startbutton->setEnabled (broadcasting () || (source && !source->videoDevice ().isEmpty ()));
}
@@ -612,7 +612,7 @@ KDE_NO_EXPORT void KMPlayerBroadcastConfig::sourceChanged (KMPlayer::Source *, K
KDE_NO_CDTOR_EXPORT KMPlayerFFServerConfig::KMPlayerFFServerConfig () {
}
-KDE_NO_EXPORT void KMPlayerFFServerConfig::write (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerFFServerConfig::write (TDEConfig * config) {
config->setGroup (strBroadcast);
config->writeEntry (strBindAddress, bindaddress);
config->writeEntry (strFFServerPort, ffserverport);
@@ -622,7 +622,7 @@ KDE_NO_EXPORT void KMPlayerFFServerConfig::write (TDEConfig * config) {
config->writeEntry (strFeedFileSize, feedfilesize);
}
-KDE_NO_EXPORT void KMPlayerFFServerConfig::read (TDEConfig * config) {
+TDE_NO_EXPORT void KMPlayerFFServerConfig::read (TDEConfig * config) {
config->setGroup (strBroadcast);
bindaddress = config->readEntry (strBindAddress, "0.0.0.0");
ffserverport = config->readNumEntry (strFFServerPort, 8090);
@@ -632,7 +632,7 @@ KDE_NO_EXPORT void KMPlayerFFServerConfig::read (TDEConfig * config) {
feedfilesize = config->readNumEntry (strFeedFileSize, 512);
}
-KDE_NO_EXPORT void KMPlayerFFServerConfig::sync (bool fromUI) {
+TDE_NO_EXPORT void KMPlayerFFServerConfig::sync (bool fromUI) {
if (fromUI) {
bindaddress = m_configpage->bindaddress->text ();
ffserverport = m_configpage->port->text ().toInt ();
@@ -650,13 +650,13 @@ KDE_NO_EXPORT void KMPlayerFFServerConfig::sync (bool fromUI) {
}
}
-KDE_NO_EXPORT void KMPlayerFFServerConfig::prefLocation (TQString & item, TQString & icon, TQString & tab) {
+TDE_NO_EXPORT void KMPlayerFFServerConfig::prefLocation (TQString & item, TQString & icon, TQString & tab) {
item = i18n ("Broadcasting");
icon = TQString ("share");
tab = i18n ("FFServer");
}
-KDE_NO_EXPORT TQFrame *KMPlayerFFServerConfig::prefPage (TQWidget * parent) {
+TDE_NO_EXPORT TQFrame *KMPlayerFFServerConfig::prefPage (TQWidget * parent) {
if (!m_configpage)
m_configpage = new KMPlayerPrefBroadcastPage (parent);
return m_configpage;