diff options
Diffstat (limited to 'examples/mediaplayer/spview.h')
-rw-r--r-- | examples/mediaplayer/spview.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/mediaplayer/spview.h b/examples/mediaplayer/spview.h new file mode 100644 index 0000000..53b8c09 --- /dev/null +++ b/examples/mediaplayer/spview.h @@ -0,0 +1,36 @@ +#ifndef SPVIEW_H +#define SPVIEW_H +#include <QObject> +#include <QUrl> +#include "spmodel.h" +#include "ui_mediaplayer.h" + +class SPView : public QWidget, public virtual Ui::mediaPlayerWidget +{ + Q_OBJECT + Q_PROPERTY(QString currentItem READ currentItem) + Q_PROPERTY(int itemCount READ itemCount) + Q_PROPERTY(int currentIndex READ currentIndex) + public slots: + void setModel (SPModel*); + void showAlbums (); + void showArtists (); + void showGenres (); + void showSongs (); + void showPlaylists(); + void setTotalTime (int); + void setCurrentTime (int); + + + public: + SPView(QWidget*); + virtual ~SPView (); + QString currentItem () const; + int itemCount () const; + int currentIndex() const; + + private: + class SPViewPvt* pvt; +}; + +#endif |