Clementine-audio-player-Mac.../src/ui/wiimotedevshortcutgrabber.h

56 lines
1.6 KiB
C
Raw Normal View History

2010-08-29 17:21:50 +02:00
/* This file is part of Clementine.
Clementine 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 3 of the License, or
(at your option) any later version.
Clementine 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 Clementine. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef WIIMOTEDEVSHORTCUTGRABBER_H
#define WIIMOTEDEVSHORTCUTGRABBER_H
#include <QDialog>
#include <boost/scoped_ptr.hpp>
#include "dbus/wiimotedev.h"
2010-08-29 17:21:50 +02:00
#include "ui/wiimotedevshortcutsconfig.h"
2010-08-29 17:21:50 +02:00
class Ui_WiimotedevShortcutGrabber;
class WiimotedevShortcutGrabber : public QDialog {
Q_OBJECT
public:
WiimotedevShortcutGrabber(quint32 action = 0, QWidget* parent = 0);
2010-08-29 17:21:50 +02:00
~WiimotedevShortcutGrabber();
WiimotedevShortcutsConfig::Shortcut shortcut;
private slots:
void DbusWiimoteGeneralButtons(uint id, qulonglong value);
void RememberSwingChecked(bool checked);
2010-08-29 17:21:50 +02:00
private:
quint32 pref_action_;
2010-08-29 17:21:50 +02:00
Ui_WiimotedevShortcutGrabber* ui_;
WiimotedevShortcutsConfig* config_;
boost::scoped_ptr<OrgWiimotedevDeviceEventsInterface> wiimotedev_iface_;
2010-08-29 17:21:50 +02:00
quint32 wiimotedev_device_;
quint64 wiimotedev_buttons_;
quint32 action;
quint64 remember_wiimote_shifts_;
quint64 remember_nunchuk_shifts_;
2010-08-29 17:21:50 +02:00
};
#endif // WIIMOTEDEVSHORTCUTGRABBER_H