mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-31 06:02:27 +02:00
Rename the plugin to be more truthful
This commit is contained in:
parent
ef5f40864e
commit
59346f014a
@ -378,10 +378,10 @@ include_directories( . ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR}/.
|
||||
|
||||
IF( UNIX AND NOT APPLE )
|
||||
SET( libSources ${libSources}
|
||||
infosystem/infoplugins/unix/libnotifyplugin.cpp )
|
||||
infosystem/infoplugins/unix/fdonotifyplugin.cpp )
|
||||
|
||||
SET( libHeaders ${libHeaders}
|
||||
infosystem/infoplugins/unix/libnotifyplugin.h )
|
||||
infosystem/infoplugins/unix/fdonotifyplugin.h )
|
||||
ENDIF( UNIX AND NOT APPLE )
|
||||
|
||||
IF( WIN32 )
|
||||
|
@ -16,7 +16,7 @@
|
||||
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "libnotifyplugin.h"
|
||||
#include "fdonotifyplugin.h"
|
||||
|
||||
#include "utils/tomahawkutils.h"
|
||||
|
||||
@ -25,20 +25,20 @@
|
||||
|
||||
using namespace Tomahawk::InfoSystem;
|
||||
|
||||
LibNotifyPlugin::LibNotifyPlugin()
|
||||
FdoNotifyPlugin::FdoNotifyPlugin()
|
||||
: InfoPlugin()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
m_supportedPushTypes << Tomahawk::InfoSystem::InfoNotifyUser;
|
||||
}
|
||||
|
||||
LibNotifyPlugin::~LibNotifyPlugin()
|
||||
FdoNotifyPlugin::~FdoNotifyPlugin()
|
||||
{
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
}
|
||||
|
||||
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;
|
||||
if ( type != Tomahawk::InfoSystem::InfoNotifyUser || !data.canConvert< Tomahawk::InfoSystem::InfoCriteriaHash >() )
|
@ -16,8 +16,8 @@
|
||||
* along with Tomahawk. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef LIBNOTIFYPLUGIN_H
|
||||
#define LIBNOTIFYPLUGIN_H
|
||||
#ifndef FDONOTIFYPLUGIN_H
|
||||
#define FDONOTIFYPLUGIN_H
|
||||
|
||||
#include "infosystem/infosystem.h"
|
||||
#include "infosystem/infosystemworker.h"
|
||||
@ -28,13 +28,13 @@ namespace Tomahawk
|
||||
namespace InfoSystem
|
||||
{
|
||||
|
||||
class LibNotifyPlugin : public InfoPlugin
|
||||
class FdoNotifyPlugin : public InfoPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
LibNotifyPlugin();
|
||||
virtual ~LibNotifyPlugin();
|
||||
FdoNotifyPlugin();
|
||||
virtual ~FdoNotifyPlugin();
|
||||
|
||||
virtual void namChangedSlot( QNetworkAccessManager* ) {}
|
||||
|
||||
@ -63,4 +63,4 @@ protected slots:
|
||||
|
||||
}
|
||||
|
||||
#endif // LIBNOTIFYPLUGIN_H
|
||||
#endif // FDONOTIFYPLUGIN_H
|
@ -30,7 +30,7 @@
|
||||
#include "infoplugins/mac/adiumplugin.h"
|
||||
#endif
|
||||
#ifdef Q_WS_X11
|
||||
#include "infoplugins/unix/libnotifyplugin.h"
|
||||
#include "infoplugins/unix/fdonotifyplugin.h"
|
||||
#endif
|
||||
|
||||
#include "lastfm/NetworkAccessManager"
|
||||
@ -78,9 +78,9 @@ InfoSystemWorker::init( QWeakPointer< Tomahawk::InfoSystem::InfoSystemCache> cac
|
||||
registerInfoTypes( admptr, admptr.data()->supportedGetTypes(), admptr.data()->supportedPushTypes() );
|
||||
#endif
|
||||
#ifdef Q_WS_X11
|
||||
InfoPluginPtr libnotifyptr( new LibNotifyPlugin() );
|
||||
m_plugins.append( libnotifyptr );
|
||||
registerInfoTypes( libnotifyptr, libnotifyptr.data()->supportedGetTypes(), libnotifyptr.data()->supportedPushTypes() );
|
||||
InfoPluginPtr fdonotifyptr( new FdoNotifyPlugin() );
|
||||
m_plugins.append( fdonotifyptr );
|
||||
registerInfoTypes( fdonotifyptr, fdonotifyptr.data()->supportedGetTypes(), fdonotifyptr.data()->supportedPushTypes() );
|
||||
#endif
|
||||
|
||||
Q_FOREACH( InfoPluginPtr plugin, m_plugins )
|
||||
|
Loading…
x
Reference in New Issue
Block a user