RADLib
RADical C++ application framework
RADUi::SearchBoxModel Class Reference

Search box model. More...

#include <RADAppKit.h>

+ Inheritance diagram for RADUi::SearchBoxModel:
+ Collaboration diagram for RADUi::SearchBoxModel:

Public Member Functions

void setQuery (std::string query)
 Sets query text. More...
 
const std::string & query () const
 Returns query text. More...
 
void setCaseSensitive (bool caseSensitive)
 Sets case sensitivity. More...
 
bool caseSensitive () const
 Returns case sensitivity. More...
 
- Public Member Functions inherited from RADCore::RADObject
 RADObject ()
 Creates a RADObject bound to the current thread. More...
 
virtual ~RADObject ()
 Disconnects tracked event links and releases lifetime token. More...
 
void registerLink (const ConnectionRecord &record)
 Registers a connection for cleanup when this object is destroyed. More...
 
std::thread::id threadId () const
 Returns the thread id this object is currently associated with. More...
 
EventLoopassociatedEventLoop () const
 Returns the associated event loop, if any. More...
 
ThreadAffinity threadAffinity () const
 Returns both thread id and associated loop atomically. More...
 
std::weak_ptr< void > lifetimeToken () const
 Returns a weak token used to drop queued callbacks after destruction. More...
 
void moveToThread (std::thread::id tId, EventLoop *loop=nullptr)
 Moves the object's affinity to tId and optional loop. More...
 

Public Attributes

RADCore::Event< void() > changed
 Raised when search state changes. More...
 

Detailed Description

Search box model.

Member Function Documentation

◆ caseSensitive()

bool RADUi::SearchBoxModel::caseSensitive ( ) const

Returns case sensitivity.

◆ query()

const std::string& RADUi::SearchBoxModel::query ( ) const

Returns query text.

◆ setCaseSensitive()

void RADUi::SearchBoxModel::setCaseSensitive ( bool  caseSensitive)

Sets case sensitivity.

◆ setQuery()

void RADUi::SearchBoxModel::setQuery ( std::string  query)

Sets query text.

Member Data Documentation

◆ changed

RADCore::Event<void () > RADUi::SearchBoxModel::changed

Raised when search state changes.


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