Classes | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
DeviceList Class Reference

#include <device_list.h>

Inheritance diagram for DeviceList:
Inheritance graph
[legend]

Classes

struct  DeviceListData
 

Public Member Functions

void add (const char *name, const char *manufacturer, const char *model, const char *sn, const char *ip, const char *mac, const char *interface, bool reachable)
 
void clear ()
 
 DeviceList (int x, int y, int w, int h)
 
void filter (const char *filter_value)
 
void filterRCDevices (bool filter_rc)
 
std::string getCell (int r, int c)
 
std::vector< std::pair< std::string, std::string > > getCurrentNameMACList (bool only_rc_visard)
 
std::string getSelectedMAC ()
 
int getSelectedRow ()
 
void getSorting (int &sort_col, bool &sort_down)
 
bool isRCVisardSelected ()
 
bool isReachableRCDeviceSelected ()
 
void openWebGUI (int r)
 
void setSelectionChangeCallback (Fl_Callback *_cb, void *p)
 
void setSorting (int sort_col, bool sort_down)
 

Protected Member Functions

void draw_cell (TableContext context, int ROW, int COL, int X, int Y, int W, int H)
 
int handle (int event)
 

Private Member Functions

bool addDeviceIndex (size_t i)
 
void notifySelectionChange ()
 
void sortColumn (int c)
 
void updateDeviceIndices ()
 

Private Attributes

Fl_Callback * cb
 
std::vector< DeviceListDatadevice
 
bool filter_rc
 
std::string filter_value
 
std::vector< size_t > index
 
bool new_discovery
 
std::set< std::string > previous_mac_list
 
int sort_col
 
bool sort_down
 
void * user
 

Detailed Description

Definition at line 22 of file device_list.h.

Constructor & Destructor Documentation

◆ DeviceList()

DeviceList::DeviceList ( int  x,
int  y,
int  w,
int  h 
)

Definition at line 20 of file device_list.cc.

Member Function Documentation

◆ add()

void DeviceList::add ( const char *  name,
const char *  manufacturer,
const char *  model,
const char *  sn,
const char *  ip,
const char *  mac,
const char *  interface,
bool  reachable 
)

Definition at line 79 of file device_list.cc.

◆ addDeviceIndex()

bool DeviceList::addDeviceIndex ( size_t  i)
private

Definition at line 496 of file device_list.cc.

◆ clear()

void DeviceList::clear ( )

Definition at line 59 of file device_list.cc.

◆ draw_cell()

void DeviceList::draw_cell ( TableContext  context,
int  ROW,
int  COL,
int  X,
int  Y,
int  W,
int  H 
)
protected

Definition at line 356 of file device_list.cc.

◆ filter()

void DeviceList::filter ( const char *  filter_value)

Definition at line 259 of file device_list.cc.

◆ filterRCDevices()

void DeviceList::filterRCDevices ( bool  filter_rc)

Definition at line 249 of file device_list.cc.

◆ getCell()

std::string DeviceList::getCell ( int  r,
int  c 
)

Definition at line 218 of file device_list.cc.

◆ getCurrentNameMACList()

std::vector< std::pair< std::string, std::string > > DeviceList::getCurrentNameMACList ( bool  only_rc_visard)

Definition at line 203 of file device_list.cc.

◆ getSelectedMAC()

std::string DeviceList::getSelectedMAC ( )

Definition at line 191 of file device_list.cc.

◆ getSelectedRow()

int DeviceList::getSelectedRow ( )

Definition at line 164 of file device_list.cc.

◆ getSorting()

void DeviceList::getSorting ( int &  sort_col,
bool &  sort_down 
)

Definition at line 269 of file device_list.cc.

◆ handle()

int DeviceList::handle ( int  event)
protected

Definition at line 288 of file device_list.cc.

◆ isRCVisardSelected()

bool DeviceList::isRCVisardSelected ( )

Definition at line 185 of file device_list.cc.

◆ isReachableRCDeviceSelected()

bool DeviceList::isReachableRCDeviceSelected ( )

Definition at line 178 of file device_list.cc.

◆ notifySelectionChange()

void DeviceList::notifySelectionChange ( )
private

Definition at line 469 of file device_list.cc.

◆ openWebGUI()

void DeviceList::openWebGUI ( int  r)

Definition at line 228 of file device_list.cc.

◆ setSelectionChangeCallback()

void DeviceList::setSelectionChangeCallback ( Fl_Callback *  _cb,
void *  p 
)
inline

Definition at line 33 of file device_list.h.

◆ setSorting()

void DeviceList::setSorting ( int  sort_col,
bool  sort_down 
)

Definition at line 278 of file device_list.cc.

◆ sortColumn()

void DeviceList::sortColumn ( int  c)
private

Definition at line 477 of file device_list.cc.

◆ updateDeviceIndices()

void DeviceList::updateDeviceIndices ( )
private

Definition at line 547 of file device_list.cc.

Member Data Documentation

◆ cb

Fl_Callback* DeviceList::cb
private

Definition at line 78 of file device_list.h.

◆ device

std::vector<DeviceListData> DeviceList::device
private

Definition at line 75 of file device_list.h.

◆ filter_rc

bool DeviceList::filter_rc
private

Definition at line 83 of file device_list.h.

◆ filter_value

std::string DeviceList::filter_value
private

Definition at line 84 of file device_list.h.

◆ index

std::vector<size_t> DeviceList::index
private

Definition at line 76 of file device_list.h.

◆ new_discovery

bool DeviceList::new_discovery
private

Definition at line 65 of file device_list.h.

◆ previous_mac_list

std::set<std::string> DeviceList::previous_mac_list
private

Definition at line 64 of file device_list.h.

◆ sort_col

int DeviceList::sort_col
private

Definition at line 81 of file device_list.h.

◆ sort_down

bool DeviceList::sort_down
private

Definition at line 82 of file device_list.h.

◆ user

void* DeviceList::user
private

Definition at line 79 of file device_list.h.


The documentation for this class was generated from the following files:


rcdiscover
Author(s): Heiko Hirschmueller , Raphael Schaller
autogenerated on Thu Aug 1 2024 02:55:56