Final polisihing for KDE4:
[kdemultimedia.git] / kscd / docking.h
blob3969d83827b84a69884a552026682cd6d42146fc
1 /*
2 * kPPP: A pppd Front End for the KDE project
4 * $Id$
6 * Copyright (C) 1997 Bernd Johannes Wuebben
7 * wuebben@math.cornell.edu
9 * This file was contributed by Harri Porten <porten@tu-harburg.de>
10 * Latest changes (dynamic tooltips) by Cristian Tibirna <tibirna@kde.org>
13 * This program is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this program; if not, write to the Free
25 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
29 #ifndef _DOCKING_H_
30 #define _DOCKING_H_
32 #include <ksystemtrayicon.h>
34 class QWheelEvent;
35 class QAction;
37 class KSCD;
38 class KPassivePopup;
40 class DockWidget : public KSystemTrayIcon
42 Q_OBJECT
44 public:
45 explicit DockWidget(KSCD* parent, const char *name = 0);
46 ~DockWidget();
48 public slots:
49 void setToolTip(const QString& text);
50 void createPopup(const QString& songName, bool addButtons = true);
52 private:
53 virtual void wheelEvent(QWheelEvent *e);
55 KPassivePopup* m_popup;
57 QAction* m_forwardAction;
58 QAction* m_backAction;
60 QString tip;
63 #endif