From d56db5f4e4a8e0d572bf3d682619bb25aebe4120 Mon Sep 17 00:00:00 2001 From: erihel Date: Thu, 19 Jul 2012 19:19:21 +0200 Subject: * Chaned plugin interface * Added plugin class for plugin loading * Added plugin loading test --- src/sound/sound.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/sound/sound.h') diff --git a/src/sound/sound.h b/src/sound/sound.h index 598ffe3..1bf9ae5 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -26,7 +26,7 @@ #include -#include +#include /*! * Maximum possible audio volume @@ -145,13 +145,10 @@ enum SoundNext * @brief Sound plugin interface * */ -class CSoundInterface : public CPlugin +class CSoundInterface : public CPluginInterface { public: - CSoundInterface() { - //CInstanceManager::getInstance().AddInstance(CLASS_SOUND, this); - //m_iMan->AddInstance(CLASS_SOUND, this); - }; + CSoundInterface() {}; virtual ~CSoundInterface() = 0; /** Function to initialize sound device -- cgit v1.2.3-1-g7c22 From f1d1cdceee3ec49546ba800a1b53a2dfb9c21e11 Mon Sep 17 00:00:00 2001 From: erihel Date: Thu, 9 Aug 2012 21:21:14 +0200 Subject: Changes after merge --- src/sound/sound.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sound/sound.h') diff --git a/src/sound/sound.h b/src/sound/sound.h index d323918..f18a76a 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -26,7 +26,7 @@ #include -#include +#include #include @@ -148,7 +148,7 @@ enum SoundNext * @brief Sound plugin interface * */ -class CSoundInterface : public CPlugin +class CSoundInterface : public CPluginInterface { public: CSoundInterface() { -- cgit v1.2.3-1-g7c22 From 62b545128f37746c343760e464872655b5523c6f Mon Sep 17 00:00:00 2001 From: erihel Date: Sun, 12 Aug 2012 18:37:11 +0200 Subject: * Final changes to plugin interface * Added doxygen comments to plugin manager and plugin loader --- src/sound/sound.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/sound/sound.h') diff --git a/src/sound/sound.h b/src/sound/sound.h index f18a76a..45ec7e1 100644 --- a/src/sound/sound.h +++ b/src/sound/sound.h @@ -15,10 +15,10 @@ // * You should have received a copy of the GNU General Public License // * along with this program. If not, see http://www.gnu.org/licenses/. -// soundinterface.h +// sound.h /** - * @file sound/soundinterface.h + * @file sound/sound.h * @brief Sound plugin interface */ @@ -39,7 +39,7 @@ /** * \public - * \enum Sound sound/soundinterface.h + * \enum Sound sound/sound.h * \brief Sound enum representing sound file **/ enum Sound @@ -131,7 +131,7 @@ enum Sound /** * \public - * \enum SoundNext sound/soundinterface.h + * \enum SoundNext sound/sound.h * \brief Enum representing operation that will be performend on a sound at given time **/ enum SoundNext -- cgit v1.2.3-1-g7c22