kde-workspace/kmediaplayer/kmediawindow.h

67 lines
1.8 KiB
C
Raw Permalink Normal View History

/* This file is part of the KDE libraries
Copyright (C) 2016 Ivailo Monev <xakepa10@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2, as published by the Free Software Foundation.
This library 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KMEDIAWINDOW_H
#define KMEDIAWINDOW_H
#include <KXmlGuiWindow>
#include <KMediaWidget>
#include <KRecentFilesAction>
#include <KConfig>
#include <QMenu>
class KMediaWindow: public KXmlGuiWindow
{
Q_OBJECT
public:
KMediaWindow(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~KMediaWindow();
public slots:
void slotOpenPath();
void slotOpenURL();
void slotOpenURL(KUrl url);
void slotClosePath();
void slotConfigure();
void slotMenubar();
void slotMenu(QPoint position);
void slotQuit();
private slots:
void slotInhibit();
void slotMaybeInhibit(bool paused);
void slotUninhibit();
void slotDelayedRestore();
protected:
// KMainWindow reimplementations
void saveProperties(KConfigGroup &configgroup) final;
void readProperties(const KConfigGroup &configgroup) final;
private:
KConfig* m_config;
KMediaWidget* m_player;
KRecentFilesAction* m_recentfiles;
QMenu* m_menu;
float m_currenttime;
bool m_playing;
uint m_inhibition;
};
#endif // KMEDIAWINDOW_H