summaryrefslogtreecommitdiffstats
path: root/src/kmplayerpartbase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayerpartbase.cpp')
-rw-r--r--src/kmplayerpartbase.cpp96
1 files changed, 48 insertions, 48 deletions
diff --git a/src/kmplayerpartbase.cpp b/src/kmplayerpartbase.cpp
index f12427a..feaeca5 100644
--- a/src/kmplayerpartbase.cpp
+++ b/src/kmplayerpartbase.cpp
@@ -87,15 +87,15 @@ using namespace KMPlayer;
KDE_NO_CDTOR_EXPORT BookmarkOwner::BookmarkOwner (PartBase * player)
: m_player (player) {}
-KDE_NO_EXPORT void BookmarkOwner::openBookmarkURL (const TQString & url) {
+TDE_NO_EXPORT void BookmarkOwner::openBookmarkURL (const TQString & url) {
m_player->openURL (KURL (url));
}
-KDE_NO_EXPORT TQString BookmarkOwner::currentTitle () const {
+TDE_NO_EXPORT TQString BookmarkOwner::currentTitle () const {
return m_player->source ()->prettyName ();
}
-KDE_NO_EXPORT TQString BookmarkOwner::currentURL () const {
+TDE_NO_EXPORT TQString BookmarkOwner::currentURL () const {
return m_player->source ()->url ().url ();
}
@@ -149,7 +149,7 @@ void PartBase::showConfigDialog () {
m_settings->show ("URLPage");
}
-KDE_NO_EXPORT void PartBase::showPlayListWindow () {
+TDE_NO_EXPORT void PartBase::showPlayListWindow () {
// note, this is also the slot of application's view_playlist action, but
// anyhow, actions don't work for the fullscreen out-of-the-box, so ...
if (m_view->viewArea ()->isFullScreen ())
@@ -160,7 +160,7 @@ KDE_NO_EXPORT void PartBase::showPlayListWindow () {
m_view->toggleShowPlaylist ();
}
-KDE_NO_EXPORT void PartBase::addBookMark (const TQString & t, const TQString & url) {
+TDE_NO_EXPORT void PartBase::addBookMark (const TQString & t, const TQString & url) {
KBookmarkGroup b = m_bookmark_manager->root ();
b.addBookmark (m_bookmark_manager, t, KURL (url));
m_bookmark_manager->emitChanged (b);
@@ -360,7 +360,7 @@ void PartBase::setRecorder (const char * name) {
m_recorder = recorder;
}
-KDE_NO_EXPORT void PartBase::slotPlayerMenu (int id) {
+TDE_NO_EXPORT void PartBase::slotPlayerMenu (int id) {
bool playing = m_process->playing ();
const char * srcname = m_source->name ();
TQPopupMenu * menu = m_view->controlPanel ()->playerMenu ();
@@ -468,7 +468,7 @@ void PartBase::setSource (Source * _source) {
emit sourceChanged (old_source, m_source);
}
-KDE_NO_EXPORT void PartBase::changeURL (const TQString & url) {
+TDE_NO_EXPORT void PartBase::changeURL (const TQString & url) {
emit urlChanged (url);
}
@@ -586,7 +586,7 @@ void PartBase::playingStopped () {
m_bPosSliderPressed = false;
}
-KDE_NO_EXPORT void PartBase::setPosition (int position, int length) {
+TDE_NO_EXPORT void PartBase::setPosition (int position, int length) {
if (m_view && !m_bPosSliderPressed)
emit positioned (position, length);
}
@@ -617,7 +617,7 @@ void PartBase::forward () {
m_source->forward ();
}
-KDE_NO_EXPORT void PartBase::playListItemClicked (TQListViewItem * item) {
+TDE_NO_EXPORT void PartBase::playListItemClicked (TQListViewItem * item) {
if (!item)
return;
PlayListItem * vi = static_cast <PlayListItem *> (item);
@@ -636,7 +636,7 @@ KDE_NO_EXPORT void PartBase::playListItemClicked (TQListViewItem * item) {
updateTree (); // items already deleted
}
-KDE_NO_EXPORT void PartBase::playListItemExecuted (TQListViewItem * item) {
+TDE_NO_EXPORT void PartBase::playListItemExecuted (TQListViewItem * item) {
if (m_in_update_tree) return;
if (m_view->editMode ()) return;
PlayListItem * vi = static_cast <PlayListItem *> (item);
@@ -712,11 +712,11 @@ void PartBase::setLanguages (const TQStringList & al, const TQStringList & sl) {
emit languagesUpdated (al, sl);
}
-KDE_NO_EXPORT void PartBase::audioSelected (int id) {
+TDE_NO_EXPORT void PartBase::audioSelected (int id) {
emit audioIsSelected (id);
}
-KDE_NO_EXPORT void PartBase::subtitleSelected (int id) {
+TDE_NO_EXPORT void PartBase::subtitleSelected (int id) {
emit subtitleIsSelected (id);
}
@@ -810,45 +810,45 @@ void PartBase::decreaseVolume () {
m_view->controlPanel ()->volumeBar ()->setValue (m_view->controlPanel ()->volumeBar ()->value () - 2);
}
-KDE_NO_EXPORT void PartBase::posSliderPressed () {
+TDE_NO_EXPORT void PartBase::posSliderPressed () {
m_bPosSliderPressed=true;
}
-KDE_NO_EXPORT void PartBase::posSliderReleased () {
+TDE_NO_EXPORT void PartBase::posSliderReleased () {
m_bPosSliderPressed=false;
const TQSlider * posSlider = ::tqt_cast<const TQSlider *> (sender ());
if (posSlider)
m_process->seek (posSlider->value(), true);
}
-KDE_NO_EXPORT void PartBase::volumeChanged (int val) {
+TDE_NO_EXPORT void PartBase::volumeChanged (int val) {
if (m_process) {
m_settings->volume = val;
m_process->volume (val, true);
}
}
-KDE_NO_EXPORT void PartBase::contrastValueChanged (int val) {
+TDE_NO_EXPORT void PartBase::contrastValueChanged (int val) {
m_settings->contrast = val;
m_process->contrast (val, true);
}
-KDE_NO_EXPORT void PartBase::brightnessValueChanged (int val) {
+TDE_NO_EXPORT void PartBase::brightnessValueChanged (int val) {
m_settings->brightness = val;
m_process->brightness (val, true);
}
-KDE_NO_EXPORT void PartBase::hueValueChanged (int val) {
+TDE_NO_EXPORT void PartBase::hueValueChanged (int val) {
m_settings->hue = val;
m_process->hue (val, true);
}
-KDE_NO_EXPORT void PartBase::saturationValueChanged (int val) {
+TDE_NO_EXPORT void PartBase::saturationValueChanged (int val) {
m_settings->saturation = val;
m_process->saturation (val, true);
}
-KDE_NO_EXPORT void PartBase::sourceHasChangedAspects () {
+TDE_NO_EXPORT void PartBase::sourceHasChangedAspects () {
if (m_view && m_source) {
//kdDebug () << "sourceHasChangedAspects " << m_source->aspect () << endl;
m_view->viewer ()->setAspect (m_source->aspect ());
@@ -857,30 +857,30 @@ KDE_NO_EXPORT void PartBase::sourceHasChangedAspects () {
emit sourceDimensionChanged ();
}
-KDE_NO_EXPORT void PartBase::positionValueChanged (int pos) {
+TDE_NO_EXPORT void PartBase::positionValueChanged (int pos) {
TQSlider * slider = ::tqt_cast <TQSlider *> (sender ());
if (slider && slider->isEnabled ())
m_process->seek (pos, true);
}
-KDE_NO_EXPORT void PartBase::fullScreen () {
+TDE_NO_EXPORT void PartBase::fullScreen () {
if (m_view)
m_view->fullScreen ();
}
-KDE_NO_EXPORT void PartBase::toggleFullScreen () {
+TDE_NO_EXPORT void PartBase::toggleFullScreen () {
m_view->fullScreen ();
}
-KDE_NO_EXPORT void PartBase::minimalMode () {
+TDE_NO_EXPORT void PartBase::minimalMode () {
emit toggleMinimalMode ();
}
-KDE_NO_EXPORT bool PartBase::isPlaying () {
+TDE_NO_EXPORT bool PartBase::isPlaying () {
return playing ();
}
-KDE_NO_EXPORT bool PartBase::isPaused () {
+TDE_NO_EXPORT bool PartBase::isPaused () {
NodePtr doc = m_source ? m_source->document () : 0L;
return doc && doc->state == Node::state_deferred;
}
@@ -917,7 +917,7 @@ void Source::init () {
m_recordcmd.truncate (0);
}
-KDE_NO_EXPORT void Source::setLanguages (const TQStringList & alang, const TQStringList & slang) {
+TDE_NO_EXPORT void Source::setLanguages (const TQStringList & alang, const TQStringList & slang) {
m_player->setLanguages (alang, slang);
}
@@ -968,12 +968,12 @@ void Source::setLength (NodePtr, int len) {
m_player->setPosition (m_position, m_length);
}
-KDE_NO_EXPORT void Source::setPosition (int pos) {
+TDE_NO_EXPORT void Source::setPosition (int pos) {
m_position = pos;
m_player->setPosition (pos, m_length);
}
-KDE_NO_EXPORT void Source::setLoading (int percentage) {
+TDE_NO_EXPORT void Source::setLoading (int percentage) {
m_player->setLoaded (percentage);
}
@@ -1012,13 +1012,13 @@ void Source::setTitle (const TQString & title) {
emit titleChanged (title);
}
-KDE_NO_EXPORT void Source::setAudioLang (int id) {
+TDE_NO_EXPORT void Source::setAudioLang (int id) {
View * v = static_cast <View *> (m_player->view());
if (v && m_player->process ())
m_player->process ()->setAudioLang (id, v->controlPanel ()->audioMenu ()->text (id));
}
-KDE_NO_EXPORT void Source::setSubtitle (int id) {
+TDE_NO_EXPORT void Source::setSubtitle (int id) {
View * v = static_cast <View *> (m_player->view());
if (v && m_player->process ())
m_player->process ()->setSubtitle (id, v->controlPanel ()->subtitleMenu ()->text (id));
@@ -1496,7 +1496,7 @@ bool URLSource::hasLength () {
return !!length ();
}
-KDE_NO_EXPORT void URLSource::activate () {
+TDE_NO_EXPORT void URLSource::activate () {
if (activated)
return;
activated = true;
@@ -1508,7 +1508,7 @@ KDE_NO_EXPORT void URLSource::activate () {
play ();
}
-KDE_NO_EXPORT void URLSource::stopResolving () {
+TDE_NO_EXPORT void URLSource::stopResolving () {
if (m_resolve_info) {
for (SharedPtr <ResolveInfo> ri = m_resolve_info; ri; ri = ri->next)
ri->job->kill ();
@@ -1602,7 +1602,7 @@ static bool isPlayListMime (const TQString & mime) {
!strcmp (mimestr, "application/x-mplayer2"));
}
-KDE_NO_EXPORT void URLSource::read (NodePtr root, TQTextStream & textstream) {
+TDE_NO_EXPORT void URLSource::read (NodePtr root, TQTextStream & textstream) {
TQString line;
do {
line = textstream.readLine ();
@@ -1679,7 +1679,7 @@ KDE_NO_EXPORT void URLSource::read (NodePtr root, TQTextStream & textstream) {
}
}
-KDE_NO_EXPORT void URLSource::kioData (TDEIO::Job * job, const TQByteArray & d) {
+TDE_NO_EXPORT void URLSource::kioData (TDEIO::Job * job, const TQByteArray & d) {
SharedPtr <ResolveInfo> rinfo = m_resolve_info;
while (rinfo && rinfo->job != job)
rinfo = rinfo->next;
@@ -1711,7 +1711,7 @@ KDE_NO_EXPORT void URLSource::kioData (TDEIO::Job * job, const TQByteArray & d)
}
}
-KDE_NO_EXPORT void URLSource::kioMimetype (TDEIO::Job * job, const TQString & mimestr) {
+TDE_NO_EXPORT void URLSource::kioMimetype (TDEIO::Job * job, const TQString & mimestr) {
SharedPtr <ResolveInfo> rinfo = m_resolve_info;
while (rinfo && rinfo->job != job)
rinfo = rinfo->next;
@@ -1725,7 +1725,7 @@ KDE_NO_EXPORT void URLSource::kioMimetype (TDEIO::Job * job, const TQString & mi
job->kill (false);
}
-KDE_NO_EXPORT void URLSource::kioResult (TDEIO::Job * job) {
+TDE_NO_EXPORT void URLSource::kioResult (TDEIO::Job * job) {
SharedPtr <ResolveInfo> previnfo, rinfo = m_resolve_info;
while (rinfo && rinfo->job != job) {
previnfo = rinfo;
@@ -1925,7 +1925,7 @@ RemoteObjectPrivate::~RemoteObjectPrivate () {
clear ();
}
-KDE_NO_EXPORT bool RemoteObjectPrivate::download (const TQString & str) {
+TDE_NO_EXPORT bool RemoteObjectPrivate::download (const TQString & str) {
url = str;
KURL kurl (str);
if (kurl.isLocalFile ()) {
@@ -1960,7 +1960,7 @@ KDE_NO_EXPORT bool RemoteObjectPrivate::download (const TQString & str) {
return false;
}
-KDE_NO_EXPORT void RemoteObjectPrivate::clear () {
+TDE_NO_EXPORT void RemoteObjectPrivate::clear () {
if (job) {
job->kill (); // quiet, no result signal
job = 0L;
@@ -1972,7 +1972,7 @@ KDE_NO_EXPORT void RemoteObjectPrivate::clear () {
}
}
-KDE_NO_EXPORT void RemoteObjectPrivate::slotResult (TDEIO::Job * kjob) {
+TDE_NO_EXPORT void RemoteObjectPrivate::slotResult (TDEIO::Job * kjob) {
if (!kjob->error ())
memory_cache->add (url, data);
else
@@ -1981,7 +1981,7 @@ KDE_NO_EXPORT void RemoteObjectPrivate::slotResult (TDEIO::Job * kjob) {
remote_object->remoteReady (data);
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
void RemoteObjectPrivate::cachePreserveRemoved (const TQString & str) {
if (str == url && !memory_cache->isPreserved (str)) {
preserve_wait = false;
@@ -1991,7 +1991,7 @@ void RemoteObjectPrivate::cachePreserveRemoved (const TQString & str) {
}
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
void RemoteObjectPrivate::slotData (TDEIO::Job*, const TQByteArray& qb) {
if (qb.size ()) {
int old_size = data.size ();
@@ -2000,7 +2000,7 @@ void RemoteObjectPrivate::slotData (TDEIO::Job*, const TQByteArray& qb) {
}
}
-KDE_NO_EXPORT
+TDE_NO_EXPORT
void RemoteObjectPrivate::slotMimetype (TDEIO::Job *, const TQString & m) {
mime = m;
}
@@ -2015,19 +2015,19 @@ KDE_NO_CDTOR_EXPORT RemoteObject::~RemoteObject () {
/**
* abort previous wget job
*/
-KDE_NO_EXPORT void RemoteObject::killWGet () {
+TDE_NO_EXPORT void RemoteObject::killWGet () {
d->clear (); // assume data is invalid
}
/**
* Gets contents from url and puts it in m_data
*/
-KDE_NO_EXPORT bool RemoteObject::wget (const TQString & url) {
+TDE_NO_EXPORT bool RemoteObject::wget (const TQString & url) {
clear ();
return d->download (url);
}
-KDE_NO_EXPORT TQString RemoteObject::mimetype () {
+TDE_NO_EXPORT TQString RemoteObject::mimetype () {
if (d->data.size () > 0 && d->mime.isEmpty ()) {
int accuraty;
KMimeType::Ptr mime = KMimeType::findByContent (d->data, &accuraty);
@@ -2037,14 +2037,14 @@ KDE_NO_EXPORT TQString RemoteObject::mimetype () {
return d->mime;
}
-KDE_NO_EXPORT void RemoteObject::clear () {
+TDE_NO_EXPORT void RemoteObject::clear () {
killWGet ();
d->url.truncate (0);
d->mime.truncate (0);
d->data.resize (0);
}
-KDE_NO_EXPORT bool RemoteObject::downloading () const {
+TDE_NO_EXPORT bool RemoteObject::downloading () const {
return !!d->job;
}