From 567bcd1f0863aa9dd6400a76275d4ac355a0d4f5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 3 Jul 2011 12:04:32 +0000 Subject: added some api fuctions git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2262 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/uihelper.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/qmmpui/uihelper.h') diff --git a/src/qmmpui/uihelper.h b/src/qmmpui/uihelper.h index efc623bb7..ec33250e8 100644 --- a/src/qmmpui/uihelper.h +++ b/src/qmmpui/uihelper.h @@ -25,6 +25,9 @@ #include #include #include +#include +#include +#include class QAction; class QMenu; @@ -82,6 +85,11 @@ public: * @param parent Parent widget */ QMenu *createMenu(MenuType type, const QString &title = QString(), QWidget *parent = 0); + + void addFile(QWidget *parent = qApp->activeWindow(), + PlayListModel *model = PlayListManager::instance()->selectedPlayList()); + void addDirectory(QWidget *parent = qApp->activeWindow(), + PlayListModel *model = PlayListManager::instance()->selectedPlayList()); /*! * Returns a pointer to the object's instance. */ @@ -118,6 +126,7 @@ private: QList m_playlistActions; QPointer m_toolsMenu; QPointer m_playlistMenu; + QString m_lastDir; static UiHelper* m_instance; }; -- cgit v1.2.3-13-gbd6f