OpenCPN Partial API docs
Loading...
Searching...
No Matches
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.
 
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

◆ CheckDongleAccess()

bool CheckDongleAccess ( wxWindow *  parent)

Runs checks and if required dialogs to make dongle accessible.

Definition at line 56 of file udev_rule_mgr.cpp.

◆ 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 57 of file udev_rule_mgr.cpp.

◆ DestroyDeviceNotFoundDialogs()

void DestroyDeviceNotFoundDialogs ( )

Destroy all open "Device not found" dialog windows.

Definition at line 60 of file udev_rule_mgr.cpp.