Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Tasking::Forever Class Referencefinal

#include <tasktree.h>

Inheritance diagram for Tasking::Forever:
Collaboration diagram for Tasking::Forever:

Public Member Functions

 Forever (const GroupItems &children)
 Forever (std::initializer_list< GroupItem > children)
Public Member Functions inherited from Tasking::ExecutableItem
Group withTimeout (std::chrono::milliseconds timeout, const std::function< void()> &handler={}) const
 Attaches TimeoutTask to a copy of this ExecutableItem, elapsing after timeout in milliseconds, with an optionally provided timeout handler, and returns the coupled item.
Group withLog (const QString &logName) const
 Attaches a custom debug printout to a copy of this ExecutableItem, issued on task startup and after the task is finished, and returns the coupled item.
template<typename SenderSignalPairGetter>
Group withCancel (SenderSignalPairGetter &&getter, std::initializer_list< GroupItem > postCancelRecipe={}) const
template<typename SenderSignalPairGetter>
Group withAccept (SenderSignalPairGetter &&getter) const
Public Member Functions inherited from Tasking::GroupItem
template<typename StorageStruct>
 GroupItem (const Storage< StorageStruct > &storage)
 Constructs a GroupItem element holding the storage object.
 GroupItem (const GroupItems &children)
 Constructs a GroupItem element with a given list of items.
 GroupItem (std::initializer_list< GroupItem > children)

Additional Inherited Members

Public Types inherited from Tasking::GroupItem
using GroupSetupHandler = std::function<SetupResult()>
using GroupDoneHandler = std::function<DoneResult(DoneWith)>
Protected Types inherited from Tasking::GroupItem
enum class  Type {
  List , Group , GroupData , Storage ,
  TaskHandler
}
using InterfaceCreateHandler = std::function<TaskInterface *(void)>
using InterfaceSetupHandler = std::function<SetupResult(TaskInterface &)>
using InterfaceDoneHandler = std::function<DoneResult(const TaskInterface &, DoneWith)>
Protected Member Functions inherited from Tasking::ExecutableItem
 ExecutableItem ()=default
 ExecutableItem (const TaskHandler &handler)
Protected Member Functions inherited from Tasking::GroupItem
 GroupItem (const Loop &loop)
 GroupItem ()=default
 GroupItem (Type type)
 GroupItem (const GroupData &data)
 GroupItem (const TaskHandler &handler)
void addChildren (const GroupItems &children)
Static Protected Member Functions inherited from Tasking::GroupItem
static GroupItem groupHandler (const GroupHandler &handler)
template<typename Result, typename Function, typename ... Args, typename DecayedFunction = std::decay_t<Function>>
static constexpr bool isInvocable ()

Detailed Description

Definition at line 500 of file tasktree.h.

Constructor & Destructor Documentation

◆ Forever() [1/2]

Tasking::Forever::Forever ( const GroupItems & children)
inlineexplicit

Definition at line 503 of file tasktree.h.

◆ Forever() [2/2]

Tasking::Forever::Forever ( std::initializer_list< GroupItem > children)
inlineexplicit

Definition at line 505 of file tasktree.h.


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