[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmplayer/0.11] src: Fix only have no-export for the implementation member functions
From: Koos Vriezen <koos.vriezen () gmail ! com>
Date: 2016-09-18 10:07:08
Message-ID: E1blZ08-0004dW-90 () code ! kde ! org
[Download RAW message or body]
Git commit df367cb43faa4fd2e9784404c6196f8a2e3a307a by Koos Vriezen.
Committed on 18/09/2016 at 10:04.
Pushed by vriezen into branch '0.11'.
Fix only have no-export for the implementation member functions
gcc-6 gives lots of 'visibility attribute ignored because it conflicts
with previous declaration [-Wattributes]' warnings. Making all these
members exported functions.
M +8 -8 src/kmplayerconfig.h
M +23 -23 src/kmplayercontrolpanel.h
M +3 -2 src/kmplayerpartbase.cpp
M +24 -24 src/kmplayerpartbase.h
M +1 -1 src/kmplayerplaylist.cpp
M +8 -8 src/kmplayerplaylist.h
M +32 -32 src/kmplayerprocess.h
M +5 -5 src/kmplayersource.h
M +17 -17 src/kmplayerview.h
M +1 -1 src/mediaobject.cpp
M +13 -13 src/mediaobject.h
M +21 -21 src/playlistview.h
M +16 -16 src/playmodel.h
M +42 -42 src/viewarea.h
http://commits.kde.org/kmplayer/df367cb43faa4fd2e9784404c6196f8a2e3a307a
diff --git a/src/kmplayerconfig.h b/src/kmplayerconfig.h
index b2c9b6b..822dc5c 100644
--- a/src/kmplayerconfig.h
+++ b/src/kmplayerconfig.h
@@ -42,13 +42,13 @@ class PartBase;
class Preferences;
class View;
-class OutputDriver {
+class KDE_NO_EXPORT OutputDriver {
public:
const char * driver;
const QString description;
};
-class ColorSetting {
+class KDE_NO_EXPORT ColorSetting {
public:
QString title;
QString option;
@@ -63,7 +63,7 @@ public:
} target;
};
-class FontSetting {
+class KDE_NO_EXPORT FontSetting {
public:
QString title;
QString option; // for ini file
@@ -101,13 +101,13 @@ public:
class KMPLAYER_EXPORT Settings : public QObject {
Q_OBJECT
public:
- Settings (PartBase *, KSharedConfigPtr part);
- ~Settings ();
+ Settings (PartBase *, KSharedConfigPtr part) KDE_NO_CDTOR_EXPORT;
+ ~Settings () KDE_NO_CDTOR_EXPORT;
bool createDialog () KDE_NO_EXPORT;
void show (const char * pagename = 0L);
void addPage (PreferencesPage *);
void removePage (PreferencesPage *);
- void applyColorSetting (bool only_changed_ones);
+ void applyColorSetting (bool only_changed_ones) KDE_NO_EXPORT;
Preferences *configDialog() const { return configdialog; }
View * defaultView ();
KSharedConfigPtr kconfig () { return m_config; }
@@ -196,8 +196,8 @@ public slots:
void readConfig () KDE_NO_EXPORT;
void writeConfig ();
private slots:
- void okPressed ();
- void getHelp ();
+ void okPressed () KDE_NO_EXPORT;
+ void getHelp () KDE_NO_EXPORT;
private:
Preferences * configdialog;
KSharedConfigPtr m_config;
diff --git a/src/kmplayercontrolpanel.h b/src/kmplayercontrolpanel.h
index 5b89a83..0afb8fa 100644
--- a/src/kmplayercontrolpanel.h
+++ b/src/kmplayercontrolpanel.h
@@ -58,12 +58,12 @@ protected:
class KMPLAYER_EXPORT KMPlayerPopupMenu : public KMenu {
Q_OBJECT
public:
- KMPlayerPopupMenu (QWidget *, const QString &title);
+ KMPlayerPopupMenu(QWidget*, const QString& title) KDE_NO_CDTOR_EXPORT;
KDE_NO_CDTOR_EXPORT ~KMPlayerPopupMenu () {}
signals:
void mouseLeft ();
protected:
- void leaveEvent (QEvent *);
+ void leaveEvent(QEvent*) KDE_NO_EXPORT;
};
/*
@@ -72,17 +72,17 @@ protected:
class KMPLAYER_EXPORT VolumeBar : public QWidget {
Q_OBJECT
public:
- VolumeBar (QWidget * parent, View * view);
- ~VolumeBar ();
+ VolumeBar(QWidget* parent, View* view) KDE_NO_CDTOR_EXPORT;
+ ~VolumeBar() KDE_NO_CDTOR_EXPORT;
KDE_NO_EXPORT int value () const { return m_value; }
void setValue (int v);
signals:
void volumeChanged (int); // 0 - 100
protected:
- void wheelEvent (QWheelEvent * e);
- void paintEvent (QPaintEvent *);
- void mousePressEvent (QMouseEvent * e);
- void mouseMoveEvent (QMouseEvent * e);
+ void wheelEvent(QWheelEvent* e) KDE_NO_EXPORT;
+ void paintEvent(QPaintEvent*) KDE_NO_EXPORT;
+ void mousePressEvent(QMouseEvent* e) KDE_NO_EXPORT;
+ void mouseMoveEvent(QMouseEvent* e) KDE_NO_EXPORT;
private:
View * m_view;
int m_value;
@@ -102,16 +102,16 @@ public:
button_red, button_green, button_yellow, button_blue,
button_last
};
- ControlPanel (QWidget * parent, View * view);
+ ControlPanel(QWidget* parent, View* view) KDE_NO_CDTOR_EXPORT;
KDE_NO_CDTOR_EXPORT ~ControlPanel () {}
void showPositionSlider (bool show);
void enableSeekButtons (bool enable);
void enableRecordButtons (bool enable);
void setPlaying (bool play);
- void setRecording (bool record);
+ void setRecording (bool record) KDE_NO_EXPORT;
void setAutoControls (bool b);
- void setPalette (const QPalette &);
- int preferredHeight ();
+ void setPalette (const QPalette &) KDE_NO_EXPORT;
+ int preferredHeight () KDE_NO_EXPORT;
KDE_NO_EXPORT bool autoControls () const { return m_auto_controls; }
KDE_NO_EXPORT QSlider * positionSlider () const { return m_posSlider; }
KDE_NO_EXPORT QSlider * contrastSlider () const { return m_contrastSlider; }
@@ -146,19 +146,19 @@ public:
KMPlayerPopupMenu *audioMenu;
KMPlayerPopupMenu *subtitleMenu;
public slots:
- void setLanguages (const QStringList & al, const QStringList & sl);
- void actionToggled (QAction*);
- void showPopupMenu ();
- void showLanguageMenu ();
- void setPlayingProgress (int position, int length);
- void setLoadingProgress (int pos);
+ void setLanguages(const QStringList& al, const QStringList& sl) KDE_NO_EXPORT;
+ void actionToggled(QAction*) KDE_NO_EXPORT;
+ void showPopupMenu() KDE_NO_EXPORT;
+ void showLanguageMenu() KDE_NO_EXPORT;
+ void setPlayingProgress(int position, int length) KDE_NO_EXPORT;
+ void setLoadingProgress(int pos) KDE_NO_EXPORT;
protected:
- void timerEvent (QTimerEvent * e);
- void setupPositionSlider (bool show);
+ void timerEvent(QTimerEvent* e) KDE_NO_EXPORT;
+ void setupPositionSlider(bool show) KDE_NO_EXPORT;
private slots:
- void buttonMouseEntered ();
- void buttonClicked ();
- void menuMouseLeft ();
+ void buttonMouseEntered() KDE_NO_EXPORT;
+ void buttonClicked() KDE_NO_EXPORT;
+ void menuMouseLeft() KDE_NO_EXPORT;
private:
enum { progress_loading, progress_playing } m_progress_mode;
int m_progress_length;
diff --git a/src/kmplayerpartbase.cpp b/src/kmplayerpartbase.cpp
index df43446..fd7b363 100644
--- a/src/kmplayerpartbase.cpp
+++ b/src/kmplayerpartbase.cpp
@@ -260,7 +260,7 @@ KDE_NO_EXPORT void PartBase::showControls (bool show) {
show ? View::CP_Show : View::CP_Hide);
}
-KDE_NO_EXPORT QString PartBase::getStatus () {
+QString PartBase::getStatus () {
QString rval = "Waiting";
if (source() && source()->document()) {
if (source()->document()->unfinished ())
@@ -271,7 +271,7 @@ KDE_NO_EXPORT QString PartBase::getStatus () {
return rval;
}
-KDE_NO_EXPORT QString PartBase::doEvaluate (const QString &) {
+QString PartBase::doEvaluate (const QString &) {
return "undefined";
}
@@ -470,6 +470,7 @@ qlonglong PartBase::length () const {
bool PartBase::openUrl (const KUrl &url) {
kDebug () << "PartBase::openUrl " << url.url() << url.isValid ();
+ fprintf(stderr, "PartBase::openUrl %s pretty %s valid %d\n", \
qPrintable(url.url()), qPrintable(url.prettyUrl()), url.isValid ()); if (!m_view) \
return false; stop ();
Source * src = (url.isEmpty () ? m_sources ["urlsource"] : (!url.protocol \
().compare ("kmplayer") && m_sources.contains (url.host ()) ? m_sources [url.host ()] \
: m_sources ["urlsource"]));
diff --git a/src/kmplayerpartbase.h b/src/kmplayerpartbase.h
index 33cb3ac..9190db7 100644
--- a/src/kmplayerpartbase.h
+++ b/src/kmplayerpartbase.h
@@ -71,7 +71,7 @@ public:
virtual void setUrl (const QString &url);
virtual bool authoriseUrl (const QString &url);
virtual void init ();
- virtual void activate ();
+ virtual void activate () KDE_NO_EXPORT;
virtual void deactivate ();
virtual void forward ();
virtual void backward ();
@@ -122,9 +122,9 @@ public:
void updateStatus (const QString & msg);
// these are called from Process
- void changeURL (const QString & url);
+ void changeURL (const QString & url) KDE_NO_EXPORT;
void updateTree (bool full=true, bool force=false);
- void setLanguages (const QStringList & alang, const QStringList & slang);
+ void setLanguages(const QStringList& alang, const QStringList& slang) \
KDE_NO_EXPORT; void recorderPlaying ();
void recorderStopped ();
void stopRecording ();
@@ -143,15 +143,15 @@ public slots:
void adjustVolume (int incdec);
bool playing () const;
void showConfigDialog ();
- void showPlayListWindow ();
- void slotPlayerMenu (QAction*);
+ void showPlayListWindow () KDE_NO_EXPORT;
+ void slotPlayerMenu (QAction*) KDE_NO_EXPORT;
void back ();
void forward ();
- void addBookMark (const QString & title, const QString & url);
- void volumeChanged (int);
+ void addBookMark (const QString & title, const QString & url) KDE_NO_EXPORT;
+ void volumeChanged (int) KDE_NO_EXPORT;
void increaseVolume ();
void decreaseVolume ();
- void setPosition (int position, int length);
+ void setPosition(int position, int length) KDE_NO_EXPORT;
virtual void setLoaded (int percentage);
virtual void processCreated (Process *);
public:
@@ -160,11 +160,11 @@ public:
virtual bool hasLength (void) const;
virtual qlonglong length (void) const;
virtual void seek (qlonglong);
- void toggleFullScreen ();
- bool isPlaying ();
+ void toggleFullScreen () KDE_NO_EXPORT;
+ bool isPlaying () KDE_NO_EXPORT;
virtual QString doEvaluate (const QString &script);
- void showControls (bool show);
+ void showControls (bool show) KDE_NO_EXPORT;
QString getStatus ();
signals:
void sourceChanged (KMPlayer::Source * old, KMPlayer::Source * nw);
@@ -188,22 +188,22 @@ protected:
virtual void playingStarted ();
virtual void playingStopped ();
protected slots:
- void posSliderPressed ();
- void posSliderReleased ();
- void positionValueChanged (int val);
- void contrastValueChanged (int val);
- void brightnessValueChanged (int val);
- void hueValueChanged (int val);
- void saturationValueChanged (int val);
- void sourceHasChangedAspects ();
- void fullScreen ();
- void playListItemClicked (const QModelIndex &);
- void playListItemActivated (const QModelIndex &);
+ void posSliderPressed () KDE_NO_EXPORT;
+ void posSliderReleased () KDE_NO_EXPORT;
+ void positionValueChanged (int val) KDE_NO_EXPORT;
+ void contrastValueChanged (int val) KDE_NO_EXPORT;
+ void brightnessValueChanged (int val) KDE_NO_EXPORT;
+ void hueValueChanged (int val) KDE_NO_EXPORT;
+ void saturationValueChanged (int val) KDE_NO_EXPORT;
+ void sourceHasChangedAspects () KDE_NO_EXPORT;
+ void fullScreen () KDE_NO_EXPORT;
+ void playListItemClicked (const QModelIndex &) KDE_NO_EXPORT;
+ void playListItemActivated (const QModelIndex &) KDE_NO_EXPORT;
void slotPlayingStarted ();
void slotPlayingStopped ();
void settingsChanged ();
- void audioSelected (QAction*);
- void subtitleSelected (QAction*);
+ void audioSelected (QAction*) KDE_NO_EXPORT;
+ void subtitleSelected (QAction*) KDE_NO_EXPORT;
protected:
KUrl m_docbase;
NodePtr m_record_doc;
diff --git a/src/kmplayerplaylist.cpp b/src/kmplayerplaylist.cpp
index 30df77a..0208474 100644
--- a/src/kmplayerplaylist.cpp
+++ b/src/kmplayerplaylist.cpp
@@ -570,7 +570,7 @@ namespace KMPlayer {
};
}
-KDE_NO_EXPORT QString ParamValue::value () {
+QString ParamValue::value() {
return modifications && modifications->size ()
? modifications->back () : val;
}
diff --git a/src/kmplayerplaylist.h b/src/kmplayerplaylist.h
index 869f0f9..c43ee7e 100644
--- a/src/kmplayerplaylist.h
+++ b/src/kmplayerplaylist.h
@@ -435,7 +435,7 @@ public:
Document * document ();
virtual Mrl * mrl ();
virtual Node *childFromTag (const QString & tag);
- void characterData (const QString & s);
+ void characterData(const QString& s) KDE_NO_EXPORT;
QString innerText () const;
QString innerXML () const;
QString outerXML () const;
@@ -466,7 +466,7 @@ public:
/*
* Dispatch Event to all connectors of MessageType
*/
- void deliver (MessageType msg, void *content);
+ void deliver(MessageType msg, void *content) KDE_NO_EXPORT;
/**
* Alternative to event handling is the Visitor pattern
*/
@@ -516,14 +516,14 @@ public:
virtual void reset ();
virtual void clear ();
void clearChildren ();
- void replaceChild (NodePtr _new, NodePtr old);
+ void replaceChild(NodePtr _new, NodePtr old) KDE_NO_EXPORT;
/*
* Get rid of whitespace only text nodes
*/
void normalize ();
KDE_NO_EXPORT bool isDocument () const { return m_doc == m_self; }
- NodeList childNodes () const;
+ NodeList childNodes() const KDE_NO_EXPORT;
void setState (State nstate);
/*
* Open tag is found by parser, attributes are set
@@ -534,7 +534,7 @@ public:
*/
virtual void closed ();
protected:
- Node (NodePtr & d, short _id=0);
+ Node(NodePtr& d, short _id=0) KDE_NO_CDTOR_EXPORT;
NodePtr m_doc;
public:
State state;
@@ -890,7 +890,7 @@ public:
*/
class KMPLAYER_EXPORT TextNode : public Node {
public:
- TextNode (NodePtr & d, const QString & s, short _id = id_node_text);
+ TextNode(NodePtr& d, const QString& s, short _id = id_node_text) \
KDE_NO_CDTOR_EXPORT; KDE_NO_CDTOR_EXPORT ~TextNode () {}
void appendText (const QString & s);
void setText (const QString & txt) { text = txt; }
@@ -906,7 +906,7 @@ protected:
*/
class KMPLAYER_EXPORT CData : public TextNode {
public:
- CData (NodePtr & d, const QString & s);
+ CData(NodePtr& d, const QString& s) KDE_NO_CDTOR_EXPORT;
KDE_NO_CDTOR_EXPORT ~CData () {}
const char * nodeName () const { return "#cdata"; }
};
@@ -933,7 +933,7 @@ class KMPLAYER_EXPORT GenericURL : public Mrl {
public:
GenericURL(NodePtr &d, const QString &s, const QString &n=QString ());
KDE_NO_EXPORT const char * nodeName () const { return "url"; }
- void closed ();
+ void closed() KDE_NO_EXPORT;
};
/**
diff --git a/src/kmplayerprocess.h b/src/kmplayerprocess.h
index 187a37a..b09559e 100644
--- a/src/kmplayerprocess.h
+++ b/src/kmplayerprocess.h
@@ -80,7 +80,7 @@ public:
WId widget ();
void setSource (Source * src) { m_source = src; }
void setState (IProcess::State newstate);
- virtual bool grabPicture (const QString &file, int frame);
+ virtual bool grabPicture (const QString &file, int frame) KDE_NO_EXPORT;
Mrl *mrl () const;
virtual bool ready ();
@@ -101,7 +101,7 @@ public:
signals:
void grabReady (const QString & path);
protected slots:
- void rescheduledStateChanged ();
+ void rescheduledStateChanged () KDE_NO_EXPORT;
void result (KJob *);
void processStateChanged (QProcess::ProcessState);
protected:
@@ -128,19 +128,19 @@ class MPlayerBase : public Process {
public:
MPlayerBase (QObject *parent, ProcessInfo *, Settings *);
~MPlayerBase ();
- void initProcess ();
- virtual void stop ();
- virtual void quit ();
+ void initProcess () KDE_NO_EXPORT;
+ virtual void stop () KDE_NO_EXPORT;
+ virtual void quit () KDE_NO_EXPORT;
protected:
- bool sendCommand (const QString &);
+ bool sendCommand (const QString &) KDE_NO_EXPORT;
bool removeQueued (const char *cmd);
QList<QByteArray> commands;
bool m_needs_restarted;
protected slots:
- virtual void processStopped ();
+ virtual void processStopped () KDE_NO_EXPORT;
private slots:
- void dataWritten (qint64);
- void processStopped (int, QProcess::ExitStatus);
+ void dataWritten (qint64) KDE_NO_EXPORT;
+ void processStopped (int, QProcess::ExitStatus) KDE_NO_EXPORT;
};
/*
@@ -155,28 +155,28 @@ public:
class KDE_EXPORT MPlayer : public MPlayerBase {
Q_OBJECT
public:
- MPlayer (QObject *parent, ProcessInfo *pinfo, Settings *settings);
- ~MPlayer ();
+ MPlayer (QObject *parent, ProcessInfo *pinfo, Settings *settings) \
KDE_NO_CDTOR_EXPORT; + ~MPlayer () KDE_NO_CDTOR_EXPORT;
- virtual void init ();
- virtual bool grabPicture (const QString &file, int pos);
+ virtual void init () KDE_NO_EXPORT;
+ virtual bool grabPicture (const QString &file, int pos) KDE_NO_EXPORT;
virtual void setAudioLang (int id);
virtual void setSubtitle (int id);
- virtual bool deMediafiedPlay ();
- virtual void stop ();
- virtual void pause ();
- virtual void unpause ();
- virtual bool seek (int pos, bool absolute);
- virtual void volume (int pos, bool absolute);
- virtual bool saturation (int pos, bool absolute);
- virtual bool hue (int pos, bool absolute);
- virtual bool contrast (int pos, bool absolute);
- virtual bool brightness (int pos, bool absolute);
- bool ready ();
+ virtual bool deMediafiedPlay () KDE_NO_EXPORT;
+ virtual void stop () KDE_NO_EXPORT;
+ virtual void pause () KDE_NO_EXPORT;
+ virtual void unpause () KDE_NO_EXPORT;
+ virtual bool seek (int pos, bool absolute) KDE_NO_EXPORT;
+ virtual void volume (int pos, bool absolute) KDE_NO_EXPORT;
+ virtual bool saturation (int pos, bool absolute) KDE_NO_EXPORT;
+ virtual bool hue (int pos, bool absolute) KDE_NO_EXPORT;
+ virtual bool contrast (int pos, bool absolute) KDE_NO_EXPORT;
+ virtual bool brightness (int pos, bool absolute) KDE_NO_EXPORT;
+ bool ready () KDE_NO_EXPORT;
protected:
- void processStopped ();
+ void processStopped () KDE_NO_EXPORT;
private slots:
- void processOutput ();
+ void processOutput () KDE_NO_EXPORT;
private:
QString m_process_output;
QString m_grab_file;
@@ -389,14 +389,14 @@ public:
class KMPLAYER_EXPORT FFMpeg : public Process {
Q_OBJECT
public:
- FFMpeg (QObject *parent, ProcessInfo *pinfo, Settings *settings);
- ~FFMpeg ();
- virtual void init ();
+ FFMpeg (QObject *parent, ProcessInfo *pinfo, Settings *settings) \
KDE_NO_CDTOR_EXPORT; + ~FFMpeg () KDE_NO_CDTOR_EXPORT;
+ virtual void init () KDE_NO_EXPORT;
virtual bool deMediafiedPlay ();
- virtual void stop ();
- virtual void quit ();
+ virtual void stop () KDE_NO_EXPORT;
+ virtual void quit () KDE_NO_EXPORT;
private slots:
- void processStopped (int, QProcess::ExitStatus);
+ void processStopped (int, QProcess::ExitStatus) KDE_NO_EXPORT;
};
/*
diff --git a/src/kmplayersource.h b/src/kmplayersource.h
index e1d4b52..f760d38 100644
--- a/src/kmplayersource.h
+++ b/src/kmplayersource.h
@@ -92,7 +92,7 @@ public:
virtual void setUrl (const QString &url);
void insertURL (NodePtr mrl, const QString & url, const QString & \
title=QString()); KDE_NO_EXPORT void setSubURL (const KUrl & url) { m_sub_url = url; \
}
- void setLanguages (LangInfoPtr alang, LangInfoPtr slang);
+ void setLanguages(LangInfoPtr alang, LangInfoPtr slang) KDE_NO_EXPORT;
KDE_NO_EXPORT void setWidth (int w) { m_width = w; }
KDE_NO_EXPORT void setHeight (int h) { m_height = h; }
virtual void setDimensions (NodePtr, int w, int h);
@@ -100,14 +100,14 @@ public:
/* setLength (len) set length in deci-seconds */
void setLength (NodePtr, int len);
/* setPosition (pos) set position in deci-seconds */
- void setPosition (int pos);
+ void setPosition(int pos) KDE_NO_EXPORT;
virtual void setIdentified (bool b = true);
KDE_NO_EXPORT void setAutoPlay (bool b) { m_auto_play = b; }
KDE_NO_EXPORT bool autoPlay () const { return m_auto_play; }
KDE_NO_EXPORT void setAvoidRedirects (bool b) { m_avoid_redirects = b; }
KDE_NO_EXPORT bool avoidRedirects () const { return m_avoid_redirects; }
void setTitle (const QString & title);
- void setLoading (int percentage);
+ void setLoading(int percentage) KDE_NO_EXPORT;
virtual QString prettyName ();
virtual void activate () = 0;
@@ -129,8 +129,8 @@ signals:
void titleChanged (const QString & title);
public slots:
void slotActivate ();
- void setAudioLang (int);
- void setSubtitle (int);
+ void setAudioLang(int) KDE_NO_EXPORT;
+ void setSubtitle(int) KDE_NO_EXPORT;
protected:
void timerEvent (QTimerEvent *);
/**
diff --git a/src/kmplayerview.h b/src/kmplayerview.h
index b3266bd..3ac0df4 100644
--- a/src/kmplayerview.h
+++ b/src/kmplayerview.h
@@ -53,7 +53,7 @@ typedef KStatusBar StatusBar;
/*
* The console GUI
*/
-class TextEdit : public QTextEdit {
+class KDE_NO_EXPORT TextEdit : public QTextEdit {
public:
TextEdit (QWidget * parent, View * view);
protected:
@@ -65,7 +65,7 @@ private:
/*
* The infowindow GUI
*/
-class InfoWindow : public QTextEdit {
+class KDE_NO_EXPORT InfoWindow : public QTextEdit {
public:
InfoWindow (QWidget * parent, View * view);
KDE_NO_EXPORT View * view () const { return m_view; }
@@ -98,13 +98,13 @@ public:
SB_Hide, SB_Show, SB_Only /* no video widget */
};
- View (QWidget *parent);
- ~View();
+ View(QWidget* parent) KDE_NO_CDTOR_EXPORT;
+ ~View() KDE_NO_CDTOR_EXPORT;
void addText (const QString &, bool eol=false);
- void init (KActionCollection * ac, bool transparent);
+ void init(KActionCollection* ac, bool transparent) KDE_NO_EXPORT;
void initDock (QWidget *central);
- void reset ();
+ void reset() KDE_NO_EXPORT;
//void print(QPrinter *pPrinter);
TextEdit * console () const { return m_multiedit; }
@@ -120,12 +120,12 @@ public:
void setKeepSizeRatio (bool b);
void setControlPanelMode (ControlPanelMode m);
void setStatusBarMode (StatusBarMode m);
- void setEraseColor (const QColor &);
+ void setEraseColor(const QColor&) KDE_NO_EXPORT;
KDE_NO_EXPORT ControlPanelMode controlPanelMode () const { return \
m_controlpanel_mode; }
KDE_NO_EXPORT StatusBarMode statusBarMode () const { return m_statusbar_mode; }
- void delayedShowButtons (bool show);
+ void delayedShowButtons(bool show) KDE_NO_EXPORT;
bool isFullScreen () const;
- int statusBarHeight () const KMPLAYER_NO_MBR_EXPORT;
+ int statusBarHeight() const KMPLAYER_NO_EXPORT;
KDE_NO_EXPORT bool editMode () const { return m_edit_mode; }
#ifndef KMPLAYER_WITH_CAIRO
bool setPicture (const QString & path);
@@ -133,18 +133,18 @@ public:
void setNoInfoMessages (bool b) { m_no_info = b; }
void setViewOnly ();
void setEditMode (TopPlayItem *, bool enable=true);
- void dragEnterEvent (QDragEnterEvent *);
- void dropEvent (QDropEvent *);
+ void dragEnterEvent(QDragEnterEvent*) KDE_NO_EXPORT;
+ void dropEvent(QDropEvent*) KDE_NO_EXPORT;
KDE_NO_EXPORT void emitPictureClicked () { emit pictureClicked (); }
/* raise video widget, might (auto) hides panel */
- void videoStart ();
- void playingStart ();
+ void videoStart() KDE_NO_EXPORT;
+ void playingStart() KDE_NO_EXPORT;
/* shows panel */
- void playingStop ();
- void mouseMoved (int x, int y) KMPLAYER_NO_MBR_EXPORT;
+ void playingStop() KDE_NO_EXPORT;
+ void mouseMoved(int x, int y) KMPLAYER_NO_EXPORT;
public slots:
void fullScreen ();
- void updateLayout ();
+ void updateLayout() KDE_NO_EXPORT;
void toggleShowPlaylist ();
void toggleVideoConsoleWindow ();
void setInfoMessage (const QString & msg);
@@ -156,7 +156,7 @@ signals:
void windowVideoConsoleToggled (bool show);
protected:
void leaveEvent (QEvent *) KDE_NO_EXPORT;
- void timerEvent (QTimerEvent *) KDE_NO_EXPORT;
+ void timerEvent(QTimerEvent*) KDE_NO_EXPORT;
private:
// console output
TextEdit * m_multiedit;
diff --git a/src/mediaobject.cpp b/src/mediaobject.cpp
index ec0c521..c4f663b 100644
--- a/src/mediaobject.cpp
+++ b/src/mediaobject.cpp
@@ -407,7 +407,7 @@ KDE_NO_EXPORT void MediaInfo::killWGet () {
/**
* Gets contents from url and puts it in m_data
*/
-KDE_NO_EXPORT bool MediaInfo::wget (const QString &str, const QString &domain) {
+bool MediaInfo::wget(const QString& str, const QString& domain) {
clearData ();
url = str;
diff --git a/src/mediaobject.h b/src/mediaobject.h
index c9053e8..c75336a 100644
--- a/src/mediaobject.h
+++ b/src/mediaobject.h
@@ -194,7 +194,7 @@ public:
virtual void pause () {}
virtual void unpause () {}
virtual void stop () {}
- virtual void destroy ();
+ virtual void destroy() KDE_NO_EXPORT;
Mrl *mrl ();
@@ -214,11 +214,11 @@ public:
MediaInfo (Node *node, MediaManager::MediaType type);
~MediaInfo ();
- bool wget (const QString &url, const QString &from_domain=QString ());
- void killWGet ();
- void clearData ();
- QString mimetype ();
- bool downloading () const;
+ bool wget(const QString& url, const QString& from_domain=QString());
+ void killWGet() KDE_NO_EXPORT;
+ void clearData() KDE_NO_EXPORT;
+ QString mimetype() KDE_NO_EXPORT;
+ bool downloading() const KDE_NO_EXPORT;
void create ();
QByteArray &rawData () { return data; }
@@ -229,15 +229,15 @@ public:
MediaManager::MediaType type;
private slots:
- void slotResult (KJob *);
- void slotData (KIO::Job *, const QByteArray &qb);
- void slotMimetype (KIO::Job *job, const QString &mimestr);
- void cachePreserveRemoved (const QString &);
+ void slotResult(KJob*) KDE_NO_EXPORT;
+ void slotData(KIO::Job*, const QByteArray& qb) KDE_NO_EXPORT;
+ void slotMimetype (KIO::Job* job, const QString& mimestr) KDE_NO_EXPORT;
+ void cachePreserveRemoved(const QString&) KDE_NO_EXPORT;
private:
- void ready ();
- bool readChildDoc ();
- void setMimetype (const QString &);
+ void ready() KDE_NO_EXPORT;
+ bool readChildDoc() KDE_NO_EXPORT;
+ void setMimetype(const QString&) KDE_NO_EXPORT;
Node *node;
KIO::Job *job;
diff --git a/src/playlistview.h b/src/playlistview.h
index 54e48b6..ddd0397 100644
--- a/src/playlistview.h
+++ b/src/playlistview.h
@@ -48,18 +48,18 @@ class TopPlayItem;
class KMPLAYER_EXPORT PlayListView : public QTreeView {
Q_OBJECT
public:
- PlayListView (QWidget * parent, View * view, KActionCollection * ac);
- ~PlayListView ();
+ PlayListView(QWidget* parent, View* view, KActionCollection* ac) \
KDE_NO_CDTOR_EXPORT; + ~PlayListView() KDE_NO_CDTOR_EXPORT;
void selectItem (const QString & txt);
- void showAllNodes (TopPlayItem *, bool show=true);
+ void showAllNodes(TopPlayItem*, bool show=true) KDE_NO_EXPORT;
void setActiveForegroundColor (const QColor & c) { m_active_color = c; }
const QColor & activeColor () const { return m_active_color; }
TopPlayItem *rootItem (int id) const;
- void setFont (const QFont &);
+ void setFont(const QFont&) KDE_NO_EXPORT;
PlayItem *selectedItem () const;
NodePtr lastDragNode () const { return m_last_drag; }
int lastDragTreeId () const { return last_drag_tree_id; }
- bool isDragValid (QDropEvent *de);
+ bool isDragValid(QDropEvent* de) KDE_NO_EXPORT;
void paintCell (const QAbstractItemDelegate *,
QPainter *, const QStyleOptionViewItem&, const QModelIndex);
QModelIndex index (PlayItem *item) const;
@@ -69,23 +69,23 @@ signals:
void prepareMenu (KMPlayer::PlayItem * item, QMenu * menu);
void dropped (QDropEvent *event, KMPlayer::PlayItem *item);
protected:
- void dragEnterEvent (QDragEnterEvent *event);
- void dropEvent (QDropEvent *event);
- void dragMoveEvent (QDragMoveEvent *event);
- void drawBranches(QPainter *, const QRect &, const QModelIndex &) const {}
- void contextMenuEvent (QContextMenuEvent *event);
+ void dragEnterEvent(QDragEnterEvent* event) KDE_NO_EXPORT;
+ void dropEvent(QDropEvent* event) KDE_NO_EXPORT;
+ void dragMoveEvent(QDragMoveEvent* event) KDE_NO_EXPORT;
+ void drawBranches(QPainter*, const QRect&, const QModelIndex&) const \
KDE_NO_EXPORT {} + void contextMenuEvent(QContextMenuEvent* event) KDE_NO_EXPORT;
private slots:
- void slotItemExpanded (const QModelIndex&);
- void copyToClipboard ();
- void addBookMark ();
- void toggleShowAllNodes ();
- void slotCurrentItemChanged (QModelIndex, QModelIndex);
- void modelUpdating (const QModelIndex &);
- void modelUpdated (const QModelIndex&, const QModelIndex&, bool, bool);
- void renameSelected ();
- void slotFind ();
- void slotFindOk ();
- void slotFindNext ();
+ void slotItemExpanded(const QModelIndex&) KDE_NO_EXPORT;
+ void copyToClipboard() KDE_NO_EXPORT;
+ void addBookMark() KDE_NO_EXPORT;
+ void toggleShowAllNodes() KDE_NO_EXPORT;
+ void slotCurrentItemChanged(QModelIndex, QModelIndex) KDE_NO_EXPORT;
+ void modelUpdating(const QModelIndex&) KDE_NO_EXPORT;
+ void modelUpdated(const QModelIndex&, const QModelIndex&, bool, bool) \
KDE_NO_EXPORT; + void renameSelected() KDE_NO_EXPORT;
+ void slotFind() KDE_NO_EXPORT;
+ void slotFindOk() KDE_NO_EXPORT;
+ void slotFindNext() KDE_NO_EXPORT;
private:
View * m_view;
QMenu * m_itemmenu;
diff --git a/src/playmodel.h b/src/playmodel.h
index b81f023..119a45e 100644
--- a/src/playmodel.h
+++ b/src/playmodel.h
@@ -112,24 +112,24 @@ public:
Moveable = 0x10, Deleteable = 0x20
};
- PlayModel (QObject *parent, KIconLoader *);
- ~PlayModel ();
+ PlayModel(QObject *parent, KIconLoader *) KDE_NO_CDTOR_EXPORT;
+ ~PlayModel() KDE_NO_CDTOR_EXPORT;
- QVariant data (const QModelIndex &index, int role) const;
- bool setData (const QModelIndex&, const QVariant& v, int role);
- Qt::ItemFlags flags (const QModelIndex &index) const;
+ QVariant data (const QModelIndex &index, int role) const KMPLAYER_NO_EXPORT;
+ bool setData (const QModelIndex&, const QVariant& v, int role) \
KMPLAYER_NO_EXPORT; + Qt::ItemFlags flags (const QModelIndex &index) const \
KMPLAYER_NO_EXPORT; QVariant headerData (int section, Qt::Orientation orientation,
- int role = Qt::DisplayRole) const;
+ int role = Qt::DisplayRole) const KMPLAYER_NO_EXPORT;
QModelIndex index (int row, int column,
- const QModelIndex &parent = QModelIndex()) const;
- QModelIndex parent (const QModelIndex &index) const;
- bool hasChildren (const QModelIndex& parent = QModelIndex ()) const;
- int rowCount (const QModelIndex &parent = QModelIndex()) const;
- int columnCount (const QModelIndex &parent = QModelIndex()) const;
+ const QModelIndex &parent = QModelIndex()) const KMPLAYER_NO_EXPORT;
+ QModelIndex parent (const QModelIndex &index) const KMPLAYER_NO_EXPORT;
+ bool hasChildren (const QModelIndex& parent = QModelIndex ()) const \
KMPLAYER_NO_EXPORT; + int rowCount (const QModelIndex &parent = QModelIndex()) \
const KMPLAYER_NO_EXPORT; + int columnCount (const QModelIndex &parent = \
QModelIndex()) const KMPLAYER_NO_EXPORT;
- PlayItem *rootItem () const { return root_item; }
- QModelIndex indexFromItem (PlayItem *item) const;
- PlayItem *itemFromIndex (const QModelIndex& index) const;
+ PlayItem *rootItem () const KMPLAYER_NO_EXPORT { return root_item; }
+ QModelIndex indexFromItem (PlayItem *item) const KMPLAYER_NO_EXPORT;
+ PlayItem *itemFromIndex (const QModelIndex& index) const KMPLAYER_NO_EXPORT;
int addTree (NodePtr r, const QString &src, const QString &ico, int flgs);
PlayItem *updateTree (TopPlayItem *ritem, NodePtr active);
@@ -141,12 +141,12 @@ public slots:
void updateTree (int id, NodePtr root, NodePtr active, bool sel, bool open);
private slots:
- void updateTrees ();
+ void updateTrees() KMPLAYER_NO_EXPORT;
private:
PlayItem *populate (Node *e, Node *focus,
TopPlayItem *root, PlayItem *item,
- PlayItem **curitem);
+ PlayItem **curitem) KMPLAYER_NO_EXPORT;
SharedPtr <TreeUpdate> tree_update;
QPixmap auxiliary_pix;
QPixmap config_pix;
diff --git a/src/viewarea.h b/src/viewarea.h
index 6e0eeee..b5f526c 100644
--- a/src/viewarea.h
+++ b/src/viewarea.h
@@ -42,18 +42,18 @@ class ViewerAreaPrivate;
class KMPLAYER_EXPORT ViewArea : public QWidget {
Q_OBJECT
public:
- ViewArea (QWidget *parent, View *view, bool paint_bg);
- ~ViewArea ();
+ ViewArea(QWidget* parent, View *view, bool paint_bg) KDE_NO_CDTOR_EXPORT;
+ ~ViewArea() KDE_NO_CDTOR_EXPORT;
KDE_NO_EXPORT bool isFullScreen () const { return m_fullscreen; }
KDE_NO_EXPORT bool isMinimalMode () const { return m_minimal; }
KDE_NO_EXPORT KActionCollection * actionCollection () const { return \
m_collection; }
KDE_NO_EXPORT QRect topWindowRect () const { return m_topwindow_rect; }
- Surface *getSurface (Mrl *mrl);
- void mouseMoved ();
- void scheduleRepaint (const IRect &rect);
- ConnectionList *updaters ();
- void resizeEvent (QResizeEvent *);
- void enableUpdaters (bool enable, unsigned int off_time);
+ Surface *getSurface(Mrl* mrl) KDE_NO_EXPORT;
+ void mouseMoved() KDE_NO_EXPORT;
+ void scheduleRepaint(const IRect& rect) KDE_NO_EXPORT;
+ ConnectionList* updaters() KDE_NO_EXPORT;
+ void resizeEvent(QResizeEvent*) KDE_NO_EXPORT;
+ void enableUpdaters(bool enable, unsigned int off_time) KDE_NO_EXPORT;
void minimalMode ();
IViewer *createVideoWidget ();
void destroyVideoWidget (IViewer *widget);
@@ -61,27 +61,27 @@ public:
signals:
void fullScreenChanged ();
public slots:
- void fullScreen ();
- void accelActivated ();
- void scale (int);
+ void fullScreen() KDE_NO_EXPORT;
+ void accelActivated() KDE_NO_EXPORT;
+ void scale(int) KDE_NO_EXPORT;
protected:
- void showEvent (QShowEvent *);
- void keyPressEvent (QKeyEvent *);
- void mouseMoveEvent (QMouseEvent *);
- void mousePressEvent (QMouseEvent *);
- void mouseDoubleClickEvent (QMouseEvent *);
- void dragEnterEvent (QDragEnterEvent *);
- void dropEvent (QDropEvent *);
- void contextMenuEvent (QContextMenuEvent * e);
- void paintEvent (QPaintEvent *);
- void timerEvent (QTimerEvent * e);
- void closeEvent (QCloseEvent * e);
- bool x11Event (XEvent *e);
+ void showEvent(QShowEvent*) KDE_NO_EXPORT;
+ void keyPressEvent(QKeyEvent*) KDE_NO_EXPORT;
+ void mouseMoveEvent(QMouseEvent*) KDE_NO_EXPORT;
+ void mousePressEvent(QMouseEvent*) KDE_NO_EXPORT;
+ void mouseDoubleClickEvent(QMouseEvent*) KDE_NO_EXPORT;
+ void dragEnterEvent(QDragEnterEvent*) KDE_NO_EXPORT;
+ void dropEvent(QDropEvent*) KDE_NO_EXPORT;
+ void contextMenuEvent(QContextMenuEvent* e) KDE_NO_EXPORT;
+ void paintEvent(QPaintEvent*) KDE_NO_EXPORT;
+ void timerEvent(QTimerEvent* e) KDE_NO_EXPORT;
+ void closeEvent(QCloseEvent* e) KDE_NO_EXPORT;
+ bool x11Event(XEvent* e) KDE_NO_EXPORT;
QPaintEngine *paintEngine () const;
private:
- void syncVisual ();
- void updateSurfaceBounds ();
- void stopTimers ();
+ void syncVisual() KDE_NO_EXPORT;
+ void updateSurfaceBounds() KDE_NO_EXPORT;
+ void stopTimers() KDE_NO_EXPORT;
QByteArray m_dock_state;
ConnectionList m_updaters;
@@ -108,10 +108,10 @@ private:
class KMPLAYER_NO_EXPORT VideoOutput : public QX11EmbedContainer, public IViewer {
Q_OBJECT
public:
- VideoOutput(QWidget *parent, View * view);
- ~VideoOutput();
+ VideoOutput(QWidget* parent, View* view) KDE_NO_CDTOR_EXPORT;
+ ~VideoOutput() KDE_NO_CDTOR_EXPORT;
- int heightForWidth (int w) const;
+ int heightForWidth(int w) const KDE_NO_EXPORT;
virtual WindowId windowHandle ();
virtual WindowId clientHandle ();
@@ -120,26 +120,26 @@ public:
virtual void setAspect (float a);
virtual float aspect () { return m_aspect; }
virtual void useIndirectWidget (bool);
- virtual void setMonitoring (Monitor m);
- virtual void map ();
- virtual void unmap ();
+ virtual void setMonitoring(Monitor m) KDE_NO_EXPORT;
+ virtual void map() KDE_NO_EXPORT;
+ virtual void unmap() KDE_NO_EXPORT;
KDE_NO_EXPORT long inputMask () const { return m_input_mask; }
void sendKeyEvent (int key);
- void setBackgroundColor (const QColor & c);
- void resetBackgroundColor ();
- void setCurrentBackgroundColor (const QColor & c);
+ void setBackgroundColor(const QColor& c) KDE_NO_EXPORT;
+ void resetBackgroundColor() KDE_NO_EXPORT;
+ void setCurrentBackgroundColor(const QColor& c) KDE_NO_EXPORT;
KDE_NO_EXPORT View * view () const { return m_view; }
public slots:
void sendConfigureEvent ();
- void embedded ();
- void fullScreenChanged ();
+ void embedded() KDE_NO_EXPORT;
+ void fullScreenChanged() KDE_NO_EXPORT;
protected:
- void resizeEvent (QResizeEvent *);
- void timerEvent (QTimerEvent *) KDE_NO_EXPORT;
- void dragEnterEvent (QDragEnterEvent *);
- void dropEvent (QDropEvent *);
- void contextMenuEvent (QContextMenuEvent * e);
+ void resizeEvent(QResizeEvent*) KDE_NO_EXPORT;
+ void timerEvent(QTimerEvent*) KDE_NO_EXPORT;
+ void dragEnterEvent(QDragEnterEvent*) KDE_NO_EXPORT;
+ void dropEvent(QDropEvent*) KDE_NO_EXPORT;
+ void contextMenuEvent(QContextMenuEvent* e) KDE_NO_EXPORT;
//virtual void windowChanged( WId w );
private:
WId m_plain_window;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic