kdeconnect-kde/indicator/systray_actions/connectivity_action.h
2021-06-17 15:03:21 +00:00

35 lines
No EOL
894 B
C++

/*
* SPDX-FileCopyrightText: 2016 Aleix Pol Gonzalez <aleixpol@kde.org>
* SPDX-FileCopyrightText: 2020 Piyush Aggarwal <piyushaggarwal002@gmail.com>
*
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
*/
#ifndef CONNECTIVITYACTION_H
#define CONNECTIVITYACTION_H
#include <QMenu>
#include <QFileDialog>
#include <KLocalizedString>
#include "interfaces/dbusinterfaces.h"
#include <dbushelper.h>
class ConnectivityAction : public QAction
{
Q_OBJECT
public:
ConnectivityAction(DeviceDbusInterface* device);
void update();
private Q_SLOTS:
void setCellularNetworkStrength(int cellularNetworkStrength);
void setCellularNetworkType(QString cellularNetworkType);
private:
ConnectivityReportDbusInterface m_connectivityiface;
QString m_cellularNetworkType;
int m_cellularNetworkStrength = -1;
};
#endif // CONNECTIVITYACTION_H