OpenCPN Partial API docs
udev_rule_mgr.cpp File Reference

Implement udev_rule_mgr.h. More...

#include "config.h"
#include <algorithm>
#include <cassert>
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <wx/button.h>
#include <wx/checkbox.h>
#include <wx/dcclient.h>
#include <wx/dialog.h>
#include <wx/frame.h>
#include <wx/panel.h>
#include <wx/sizer.h>
#include <wx/statline.h>
#include <wx/stattext.h>
#include <wx/textctrl.h>
#include "model/linux_devices.h"
#include "model/logger.h"
#include "model/ocpn_utils.h"
#include "gui_lib.h"
#include "udev_rule_mgr.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

Implement udev_rule_mgr.h.

Definition in file udev_rule_mgr.cpp.

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.