2 This program is free software; you can redistribute it and/or modify
3 it under the terms of the GNU General Public License as published by
4 the Free Software Foundation; either version 2 of the License, or
5 (at your option) any later version.
9 tracktooltip.h - Provides an interface to a plain QWidget, which is independent of KDE (bypassed to X11)
10 begin: Tue 10 Feb 2004
11 copyright: (C) 2004 by Christian Muehlhaeuser
15 #ifndef TRACKTOOLTIP_H
16 #define TRACKTOOLTIP_H
19 #include <q3ptrlist.h>
21 #include "metabundle.h"
26 class TrackToolTip
: public QObject
, public Amarok::ToolTipClient
32 static TrackToolTip
* instance();
34 void addToWidget( QWidget
*widget
);
35 void removeFromWidget( QWidget
*widget
);
37 void setTrack( const MetaBundle
&tags
, bool force
= false );
38 void setPos( int pos
);
42 virtual QPair
<QString
, QRect
> toolTipText( QWidget
*, const QPoint
& ) const;
45 void slotCoverChanged( const QString
&artist
, const QString
&album
);
46 void slotImageChanged( const QString
&remoteURL
);
47 void slotUpdate( const QString
&url
= QString() );
48 void slotMoodbarEvent( void );
51 QString
tooltip() const;
54 static TrackToolTip
*s_instance
;
55 Q3PtrList
<QWidget
> m_widgets
;