Qt 4.8
Public Functions | Static Private Functions | Properties | Friends | List of all members
QDeclarativeNotifier Class Reference

#include <qdeclarativenotifier_p.h>

Public Functions

void notify ()
 
 QDeclarativeNotifier ()
 
 ~QDeclarativeNotifier ()
 

Static Private Functions

static void emitNotify (QDeclarativeNotifierEndpoint *)
 

Properties

QDeclarativeNotifierEndpointendpoints
 

Friends

class QDeclarativeNotifierEndpoint
 

Detailed Description

Definition at line 51 of file qdeclarativenotifier_p.h.

Constructors and Destructors

◆ QDeclarativeNotifier()

QDeclarativeNotifier::QDeclarativeNotifier ( )
inline

Definition at line 127 of file qdeclarativenotifier_p.h.

128 : endpoints(0)
129 {
130 }
QDeclarativeNotifierEndpoint * endpoints

◆ ~QDeclarativeNotifier()

QDeclarativeNotifier::~QDeclarativeNotifier ( )
inline

Definition at line 132 of file qdeclarativenotifier_p.h.

133 {
135  while (endpoint) {
137  endpoint = n->next;
138 
139  n->next = 0;
140  n->prev = 0;
141  n->notifier = 0;
142  if (n->disconnected) *n->disconnected = 0;
143  n->disconnected = 0;
144  }
145  endpoints = 0;
146 }
QDeclarativeNotifierEndpoint ** disconnected
QDeclarativeNotifierEndpoint ** prev
QDeclarativeNotifierEndpoint * endpoints

Functions

◆ emitNotify()

void QDeclarativeNotifier::emitNotify ( QDeclarativeNotifierEndpoint endpoint)
staticprivate

Definition at line 47 of file qdeclarativenotifier.cpp.

Referenced by notify().

48 {
50 
51  QDeclarativeNotifierEndpoint **oldDisconnected = n->disconnected;
52  n->disconnected = &endpoint;
53 
54  if (n->next)
55  emitNotify(n->next);
56 
57  if (endpoint) {
58  void *args[] = { 0 };
59 
61  endpoint->targetMethod, args);
62 
63  if (endpoint)
64  endpoint->asNotifier()->disconnected = oldDisconnected;
65  }
66 
67  if (oldDisconnected) *oldDisconnected = endpoint;
68 }
static int metacall(QObject *, Call, int, void **)
QDeclarativeNotifierEndpoint ** disconnected
static void emitNotify(QDeclarativeNotifierEndpoint *)

◆ notify()

void QDeclarativeNotifier::notify ( )
inline

Definition at line 148 of file qdeclarativenotifier_p.h.

149 {
151 }
static void emitNotify(QDeclarativeNotifierEndpoint *)
QDeclarativeNotifierEndpoint * endpoints

Friends and Related Functions

◆ QDeclarativeNotifierEndpoint

Definition at line 59 of file qdeclarativenotifier_p.h.

Properties

◆ endpoints

QDeclarativeNotifierEndpoint* QDeclarativeNotifier::endpoints
private

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