Xonotic
DataSource Class Reference
+ Inheritance diagram for DataSource:
+ Collaboration diagram for DataSource:

Public Member Functions

virtual void DataSource ::destroy ()
 cleanup on shutdown. More...
 
virtual void DataSource ::getEntry ()
 get entry i passing name and icon through returns if it is not null returns DataSource_false if out of bounds otherwise returns an entity or DataSource_true More...
 
virtual void DataSource ::indexOf ()
 return the index of the first match for find. More...
 
virtual void DataSource ::reload ()
 reload all entries matching filter returning how many matches were found More...
 

Static Public Attributes

static entity false = NULL
 
static entity true = NEW(Object)
 

Detailed Description

Definition at line 3 of file datasource.qh.

Member Function Documentation

◆ DataSource ::destroy()

virtual void DataSource::DataSource ::destroy ( )
inlinevirtual

cleanup on shutdown.

optional

Definition at line 17 of file datasource.qh.

References ENDCLASS.

17 { }

◆ DataSource ::getEntry()

virtual void DataSource::DataSource ::getEntry ( )
inlinevirtual

get entry i passing name and icon through returns if it is not null returns DataSource_false if out of bounds otherwise returns an entity or DataSource_true

Definition at line 11 of file datasource.qh.

11 { return DataSource_false; }

◆ DataSource ::indexOf()

virtual void DataSource::DataSource ::indexOf ( )
inlinevirtual

return the index of the first match for find.

optional

Definition at line 13 of file datasource.qh.

13 { return -1; }

◆ DataSource ::reload()

virtual void DataSource::DataSource ::reload ( )
inlinevirtual

reload all entries matching filter returning how many matches were found

Definition at line 15 of file datasource.qh.

15 { return 0; }

Member Data Documentation

◆ false

entity DataSource::false = NULL
static

Definition at line 5 of file datasource.qh.

◆ true

entity DataSource::true = NEW(Object)
static

Definition at line 4 of file datasource.qh.


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