OpenCPN Partial API docs
Loading...
Searching...
No Matches
peer_client.h File Reference

Peer client non-gui abstraction. More...

#include <functional>
#include <string>
#include <vector>
#include "model/route.h"
#include "model/track.h"
#include "model/semantic_vers.h"
#include "observable_evtvar.h"

Go to the source code of this file.

Classes

struct  PeerData
 

Enumerations

enum class  PeerDlgResult { Ok , Cancel , HasPincode }
 
enum class  PeerDlg {
  PinConfirm , InvalidHttpResponse , ErrorReturn , TransferOk ,
  ActivateUnsupported , JsonParseError , BadPincode
}
 

Functions

void GetApiVersion (PeerData &peer_data)
 
bool SendNavobjects (PeerData &peer_data)
 Send data to server peer.
 
bool CheckNavObjects (PeerData &peer_data)
 Check if server peer deems that writing these objects can be accepted i.
 

Detailed Description

Peer client non-gui abstraction.

Definition in file peer_client.h.

Enumeration Type Documentation

◆ PeerDlg

enum class PeerDlg
strong

Definition at line 40 of file peer_client.h.

◆ PeerDlgResult

enum class PeerDlgResult
strong

Definition at line 38 of file peer_client.h.

Function Documentation

◆ CheckNavObjects()

bool CheckNavObjects ( PeerData peer_data)

Check if server peer deems that writing these objects can be accepted i.

e., that the object(s) does not exist or can be overwritten.

Definition at line 458 of file peer_client.cpp.

◆ GetApiVersion()

void GetApiVersion ( PeerData peer_data)

Definition at line 238 of file peer_client.cpp.

◆ SendNavobjects()

bool SendNavobjects ( PeerData peer_data)

Send data to server peer.

Definition at line 441 of file peer_client.cpp.