Home | History | Annotate | Download | only in dbus

Lines Matching defs:signal

375   // Registers a D-Bus signal that has a specified number and types (|Args|) of
377 // used to send the signal on this interface when needed:
380 auto signal = itf->RegisterSignal<int, bool>("MySignal");
382 signal.
383 if (signal.lock()->Send(12, true)) { ... }
385 // Or if the signal signature is long or complex, you can alias the
386 // DBusSignal<Args...> signal type and use RegisterSignalOfType method
391 auto signal = itf->RegisterSignalOfType<MySignal>("MySignal");
393 // Send the Interface.MySig(12, true) signal.
394 if (signal.lock()->Send(12, true)) { ... }
396 // If the signal with the given name was already registered, the existing
397 // copy of the signal proxy object is returned as long as the method signature
398 // of the original signal matches the current call. If it doesn't, the method
401 // RegisterSignalOfType can be used to create a signal if the type of the
406 auto signal = std::make_shared<DBusSignalType>(
408 AddSignalImpl(signal_name, signal);
409 return signal;
412 // For simple signal arguments, you can specify their types directly in
414 // auto signal = itf->RegisterSignal<int>("SignalName");
415 // This will create a callback signal object that expects one int argument.
451 // Helper to add a signal object to the |signals_| map.
455 const std::shared_ptr<DBusSignalBase>& signal);
493 // Signal registration map.
551 // Sends a signal from the exported D-Bus object.
552 bool SendSignal(dbus::Signal* signal);