kde-workspace/plasma/applets/quicklaunch/launcher.h
Ivailo Monev af45159765 generic: replace forward declarations with headers inclusions
this was done with namefsck script from Katie, solves namespace issues

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-05 02:36:36 +00:00

68 lines
2.3 KiB
C++

/***************************************************************************
* Copyright (C) 2008 by Lukas Appelhans <l.appelhans@gmx.de> *
* Copyright (C) 2010 - 2011 by Ingomar Wesp <ingomar@wesp.name> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#ifndef QUICKLAUNCH_LAUNCHER_H
#define QUICKLAUNCH_LAUNCHER_H
// Qt
#include <QtCore/qnamespace.h>
#include <QtGlobal>
#include <QtCore/QObject>
// KDE
#include <KUrl>
// Plasma
#include <Plasma/IconWidget>
// Own
#include "launcherdata.h"
#include <QGraphicsItem>
namespace Quicklaunch {
class Launcher : public Plasma::IconWidget
{
Q_OBJECT
public:
explicit Launcher(const LauncherData &data, QGraphicsItem *parent = 0);
void setNameVisible(bool enable);
bool isNameVisible() const;
void setLauncherData(const LauncherData &data);
LauncherData launcherData() const;
KUrl url() const;
public Q_SLOTS:
void execute();
void toolTipAboutToShow();
void toolTipHidden();
private:
void updateToolTipContent();
LauncherData m_data;
bool m_nameVisible;
};
}
#endif /* QUICKLAUNCH_LAUNCHER_H */