FlightGear next
LauncherNotificationsController Class Reference

#include <LauncherNotificationsController.hxx>

Inherits QObject.

Classes

class  NotificationsModel
 

Public Slots

void dismissIndex (int index)
 
void postNotification (QString id, QUrl source, QJSValue args={})
 

Public Member Functions

 LauncherNotificationsController (QObject *pr, QQmlEngine *qmlEngine)
 
 ~LauncherNotificationsController ()
 
QAbstractItemModel * notifications () const
 
Q_INVOKABLE QJSValue argsForIndex (int index) const
 
QJSEngine * jsEngine ()
 

Static Public Member Functions

static LauncherNotificationsControllerinstance ()
 

Properties

QAbstractItemModel * active
 

Detailed Description

Definition at line 30 of file LauncherNotificationsController.hxx.

Constructor & Destructor Documentation

◆ LauncherNotificationsController()

LauncherNotificationsController::LauncherNotificationsController ( QObject * pr,
QQmlEngine * qmlEngine )

Definition at line 105 of file LauncherNotificationsController.cxx.

◆ ~LauncherNotificationsController()

LauncherNotificationsController::~LauncherNotificationsController ( )

Definition at line 115 of file LauncherNotificationsController.cxx.

Member Function Documentation

◆ argsForIndex()

QJSValue LauncherNotificationsController::argsForIndex ( int index) const

Definition at line 130 of file LauncherNotificationsController.cxx.

◆ dismissIndex

void LauncherNotificationsController::dismissIndex ( int index)
slot

Definition at line 145 of file LauncherNotificationsController.cxx.

◆ instance()

LauncherNotificationsController * LauncherNotificationsController::instance ( )
static

Definition at line 120 of file LauncherNotificationsController.cxx.

◆ jsEngine()

QJSEngine * LauncherNotificationsController::jsEngine ( )

Definition at line 140 of file LauncherNotificationsController.cxx.

◆ notifications()

QAbstractItemModel * LauncherNotificationsController::notifications ( ) const

Definition at line 125 of file LauncherNotificationsController.cxx.

◆ postNotification

void LauncherNotificationsController::postNotification ( QString id,
QUrl source,
QJSValue args = {} )
slot

Definition at line 162 of file LauncherNotificationsController.cxx.

Property Documentation

◆ active

QAbstractItemModel* LauncherNotificationsController::active
read

Definition at line 34 of file LauncherNotificationsController.hxx.


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