Na ovoj stranici

Tasking::TaskInterface Class

class Tasking::TaskInterface

TaskInterface je apstraktna bazna klasa za implementaciju prilagođenih adaptera zadataka. Više...

Header: #include <solutions/tasking/tasktree.h>
Inherits: QObject

Napomena: Sve funkcije u ovoj klasi su reentrantne.

Signali

void done(Tasking::DoneResult result)

Detaljan opis

Za implementaciju prilagođenog adaptera zadataka naslijedite svoj adapter od predloška klase TaskAdapter<Task>. TaskAdapter automatski stvara i uništava instancu prilagođenog zadatka te povezuje adapter s danim tipom Task.

Dokumentacija funkcija člana

[private signal] void TaskInterface::done(Tasking::DoneResult result)

Emitirajte ovaj signal iz podklase klase TaskAdapter<Task>, kada je Task dovršen. Proslijedite DoneResult::Success kao argument za result kada zadatak završi uspješno; inače, ako dođe do pogreške, proslijedite DoneResult::Error.

Napomena: Ovo je privatni signal. Može se koristiti u signalnim vezama, ali ga korisnik ne može emitirati.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.