theshell/shell/kdeconnect/kdeconnectwidget.h
2018-05-15 23:24:22 +10:00

114 lines
2.7 KiB
C++

#ifndef KDECONNECTWIDGET_H
#define KDECONNECTWIDGET_H
#include <QWidget>
#include <QDBusInterface>
#include <QDBusConnectionInterface>
#include <QListView>
#include <QLabel>
#include <QStackedWidget>
#include <QCommandLinkButton>
#include <QDBusPendingCallWatcher>
#include <QMessageBox>
#include <ttoast.h>
#include <QFileDialog>
#include <QCheckBox>
#include <QPlainTextEdit>
#include <QLineEdit>
#include <QDBusServiceWatcher>
#include <QProcess>
#include <QInputDialog>
#include "kdeconnectdevicesmodel.h"
namespace Ui {
class KdeConnectWidget;
}
class KdeConnectWidget : public QWidget
{
Q_OBJECT
public:
explicit KdeConnectWidget(QWidget *parent = 0);
~KdeConnectWidget();
private slots:
void kdeConnectAnnouncedNameChanged(QString name);
void kdeConnectOnline();
void kdeConnectGone();
void selectedDeviceChanged(QModelIndex current, QModelIndex previous);
void on_pingButton_clicked();
void on_locateButton_clicked();
void on_pairButton_clicked();
void updateCurrentDevice();
void on_sendFileButton_clicked();
void on_settingsButton_clicked();
void on_backButton_clicked();
void on_pluginBatteryMonitor_toggled(bool checked);
void on_pluginVirtualInput_toggled(bool checked);
void on_pluginClipboard_toggled(bool checked);
void on_pluginInhibitScreensaver_toggled(bool checked);
void on_pluginMultimediaControlReceiver_toggled(bool checked);
void on_pluginPauseMedia_toggled(bool checked);
void on_pluginPing_toggled(bool checked);
void on_pluginNotifications_toggled(bool checked);
void on_pluginBrowseFilesystem_toggled(bool checked);
void on_pluginRemoteKeyboard_toggled(bool checked);
void on_pluginRingPhone_toggled(bool checked);
void on_pluginRunCommands_toggled(bool checked);
void on_pluginSendNotifications_toggled(bool checked);
void on_pluginSendReceive_toggled(bool checked);
void on_pluginTelephony_toggled(bool checked);
void on_smsButton_clicked();
void on_smsMessage_textChanged();
void on_backButton_3_clicked();
void on_sendSMSButton_clicked();
void on_startkdeConnectButton_clicked();
void on_encryptionButton_clicked();
void on_smsNumber_textEdited(const QString &arg1);
void on_renameButton_clicked();
private:
Ui::KdeConnectWidget *ui;
QDBusInterface* daemon;
QDBusServiceWatcher* watcher;
QString currentId;
KdeConnectDevicesModel* devicesModel;
void changeEvent(QEvent* event);
};
#endif // KDECONNECTWIDGET_H