OpenCPN Partial API docs
udev_rule_mgr.h File Reference

Access checks for comm devices and dongle. More...

#include <string>
#include <wx/window.h>

Go to the source code of this file.

Functions

bool CheckDongleAccess (wxWindow *parent)
 Runs checks and if required dialogs to make dongle accessible.
 
bool CheckSerialAccess (wxWindow *parent, const std::string device)
 Run checks and possible dialogs to ensure device is accessible. More...
 
void DestroyDeviceNotFoundDialogs ()
 Destroy all open "Device not found" dialog windows.
 

Detailed Description

Access checks for comm devices and dongle.

Only making anything useful on Linux.

Definition in file udev_rule_mgr.h.

Function Documentation

◆ CheckSerialAccess()

bool CheckSerialAccess ( wxWindow *  parent,
const std::string  device 
)

Run checks and possible dialogs to ensure device is accessible.

Parameters
parentDialogs parent window
deviceFull device path
Returns
True if device can be accessed read/write.

Definition at line 54 of file udev_rule_mgr.cpp.