1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Rename the plugin to be more truthful

This commit is contained in:
Jeff Mitchell
2011-06-21 17:45:39 -04:00
parent ef5f40864e
commit 59346f014a
4 changed files with 16 additions and 16 deletions

View File

@@ -378,10 +378,10 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/.
IF( UNIX AND NOT APPLE ) IF( UNIX AND NOT APPLE )
SET( libSources ${libSources} SET( libSources ${libSources}
infosystem/infoplugins/unix/libnotifyplugin.cpp ) infosystem/infoplugins/unix/fdonotifyplugin.cpp )
SET( libHeaders ${libHeaders} SET( libHeaders ${libHeaders}
infosystem/infoplugins/unix/libnotifyplugin.h ) infosystem/infoplugins/unix/fdonotifyplugin.h )
ENDIF( UNIX AND NOT APPLE ) ENDIF( UNIX AND NOT APPLE )
IF( WIN32 ) IF( WIN32 )

View File

@@ -16,7 +16,7 @@
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>. * along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "libnotifyplugin.h" #include "fdonotifyplugin.h"
#include "utils/tomahawkutils.h" #include "utils/tomahawkutils.h"
@@ -25,20 +25,20 @@
using namespace Tomahawk::InfoSystem; using namespace Tomahawk::InfoSystem;
LibNotifyPlugin::LibNotifyPlugin() FdoNotifyPlugin::FdoNotifyPlugin()
: InfoPlugin() : InfoPlugin()
{ {
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
m_supportedPushTypes << Tomahawk::InfoSystem::InfoNotifyUser; m_supportedPushTypes << Tomahawk::InfoSystem::InfoNotifyUser;
} }
LibNotifyPlugin::~LibNotifyPlugin() FdoNotifyPlugin::~FdoNotifyPlugin()
{ {
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
} }
void void
LibNotifyPlugin::pushInfo( const QString caller, const Tomahawk::InfoSystem::InfoType type, const QVariant data ) FdoNotifyPlugin::pushInfo( const QString caller, const Tomahawk::InfoSystem::InfoType type, const QVariant data )
{ {
qDebug() << Q_FUNC_INFO; qDebug() << Q_FUNC_INFO;
if ( type != Tomahawk::InfoSystem::InfoNotifyUser || !data.canConvert< Tomahawk::InfoSystem::InfoCriteriaHash >() ) if ( type != Tomahawk::InfoSystem::InfoNotifyUser || !data.canConvert< Tomahawk::InfoSystem::InfoCriteriaHash >() )

View File

@@ -16,8 +16,8 @@
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>. * along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef LIBNOTIFYPLUGIN_H #ifndef FDONOTIFYPLUGIN_H
#define LIBNOTIFYPLUGIN_H #define FDONOTIFYPLUGIN_H
#include "infosystem/infosystem.h" #include "infosystem/infosystem.h"
#include "infosystem/infosystemworker.h" #include "infosystem/infosystemworker.h"
@@ -28,13 +28,13 @@ namespace Tomahawk
namespace InfoSystem namespace InfoSystem
{ {
class LibNotifyPlugin : public InfoPlugin class FdoNotifyPlugin : public InfoPlugin
{ {
Q_OBJECT Q_OBJECT
public: public:
LibNotifyPlugin(); FdoNotifyPlugin();
virtual ~LibNotifyPlugin(); virtual ~FdoNotifyPlugin();
virtual void namChangedSlot( QNetworkAccessManager* ) {} virtual void namChangedSlot( QNetworkAccessManager* ) {}
@@ -63,4 +63,4 @@ protected slots:
} }
#endif // LIBNOTIFYPLUGIN_H #endif // FDONOTIFYPLUGIN_H

View File

@@ -30,7 +30,7 @@
#include "infoplugins/mac/adiumplugin.h" #include "infoplugins/mac/adiumplugin.h"
#endif #endif
#ifdef Q_WS_X11 #ifdef Q_WS_X11
#include "infoplugins/unix/libnotifyplugin.h" #include "infoplugins/unix/fdonotifyplugin.h"
#endif #endif
#include "lastfm/NetworkAccessManager" #include "lastfm/NetworkAccessManager"
@@ -78,9 +78,9 @@ InfoSystemWorker::init( QWeakPointer< Tomahawk::InfoSystem::InfoSystemCache> cac
registerInfoTypes( admptr, admptr.data()->supportedGetTypes(), admptr.data()->supportedPushTypes() ); registerInfoTypes( admptr, admptr.data()->supportedGetTypes(), admptr.data()->supportedPushTypes() );
#endif #endif
#ifdef Q_WS_X11 #ifdef Q_WS_X11
InfoPluginPtr libnotifyptr( new LibNotifyPlugin() ); InfoPluginPtr fdonotifyptr( new FdoNotifyPlugin() );
m_plugins.append( libnotifyptr ); m_plugins.append( fdonotifyptr );
registerInfoTypes( libnotifyptr, libnotifyptr.data()->supportedGetTypes(), libnotifyptr.data()->supportedPushTypes() ); registerInfoTypes( fdonotifyptr, fdonotifyptr.data()->supportedGetTypes(), fdonotifyptr.data()->supportedPushTypes() );
#endif #endif
Q_FOREACH( InfoPluginPtr plugin, m_plugins ) Q_FOREACH( InfoPluginPtr plugin, m_plugins )