Référence de la classe KoOnlyLastPolicy

#include <KoExecutePolicy.h>

Graphe d'héritage de KoOnlyLastPolicy:

[légende]
Graphe de collaboration de KoOnlyLastPolicy:
[légende]
Liste de tous les membres

Fonctions membres privées

void schedule (KoAction *action, KoJobsListPolicy *jobsList, QVariant *params)

Description détaillée

This policy will enqueue the action; but will remove others that would call the same target method. In the case of a delayed-initialisation action being executed from one or even several actions it is unwanted to let the actions queue-up and be executed serially; this policy will prevent that. (Example) Consider having a list of items that will be previed when you click it. The creation of the preview is a slow process. In this example it is possible for the user to select 5 items in a row which will then be previewed one after another; making the update of the preview incredably slow. If you use this policy only the last action will be executed and the other actions will be discarded. Effect is that only the last preview will be generated and the first 4 ignored.

Définition à la ligne 73 du fichier KoExecutePolicy.h.


Documentation des fonctions membres

void KoOnlyLastPolicy::schedule ( KoAction action,
KoJobsListPolicy jobsList,
QVariant *  params 
) [private, virtual]

schedule an action according to policy.

Paramètres:
action the action to be scheduled.
jobsList the list of jobs currently associated with the action.
params a parameters object that belongs with the current action.

Implémente KoExecutePolicy.

Définition à la ligne 28 du fichier KoExecutePolicy.cpp.

Références ActionJob::action(), ActionJob::ActionJob(), KoJobsListPolicy::addJob(), ActionJob::EnableOff, ActionJob::EnableOn, KoJobsListPolicy::free(), KoAction::isEnabled(), KoJobsListPolicy::jobs(), KoJobsListPolicy::lock(), KoJobsListPolicy::unlock(), et KoAction::weaver().

Voici le graphe d'appel pour cette fonction :


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:46:55 2006 pour KPlato par  doxygen 1.5.1-p1