retro-imager/src/linux/networkmanagerapi.h
Floris Bos 6dc2f3e58e Refactor WLAN PSK retrieval code
- Reduce platform specific code in ImageWriter class,
  and move that to seperate classes.
- Use API calls to get current SSID on Windows and Linux instead
  of launching command line utilities.
2023-03-10 18:37:22 +01:00

22 lines
431 B
C++

#ifndef NETWORKMANAGERAPI_H
#define NETWORKMANAGERAPI_H
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2022 Raspberry Pi Ltd
*/
#include "wlancredentials.h"
class NetworkManagerApi : public WlanCredentials
{
public:
NetworkManagerApi();
virtual QByteArray getSSID();
virtual QByteArray getPSK();
protected:
QByteArray _getSSIDofInterface(const QByteArray &iface);
};
#endif // NETWORKMANAGERAPI_H