![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IIDLETASKMGR } |
| enum | IdleTaskEvents { SleepEvent, WakeEvent, MouseClickEvent, KeyEvent, AppOutOfFocus, AppInFocus } |
| enum | ApplicationStateFlags { kInBackground = 1, kModalDialogUp = 2, kMenuUp = 4, kMouseTracking = 8, kUserActive = 16, kApplicationMinimized = 32, kMainThreadTaskQueued = 64 } |
| typedef enum IIdleTaskMgr::ApplicationStateFlags | ApplicationStateFlags |
Public Member Functions | |
| virtual void | SetApplicationState (uint32 flags)=0 |
| virtual uint32 | GetApplicationState ()=0 |
| virtual void | AddTask (IIdleTask *newTask, uint32 initialMillisecondDelay=0)=0 |
| virtual uint32 | RemoveTask (IIdleTask *taskToRemove)=0 |
| virtual uint32 | RunOverdueTasks (const char *(*EventsPendingFunction)())=0 |
| uint32 | RunAllTasks (const char *(*EventsPendingFunction)()) |
| virtual void | Shutdown ()=0 |
| virtual IPMUnknown * | QueryRunningTask (PMIID iid)=0 |
| virtual bool16 | GetSleepFlag ()=0 |
| virtual void | SetSleepFlag (bool16 sleepFlag)=0 |
| virtual void | SetSleepFlagOnEvents (IdleTaskEvents idleTaskEvent)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
The state of the application
| pure virtual |
Add a new task to the list of active tasks. Note that it is illegal to add the same task twice.
| newTask | is the new task |
| initialMillisecondDelay | is the number of milliseconds to wait until the first time this task is run |
| pure virtual |
Get the application state flags
| pure virtual |
FOR INTERNAL USE ONLY Returns Sleep Flag used for disabling idletasks while going to sleep.
| pure virtual |
Query the current task for a particular interface
| iid | is the interface to query on the current task |
| pure virtual |
Remove a task from the list of tasks to run. Note that it is significantly more efficient to have a task remove itself when its RunTask method is called.
| taskToRemove | is the task to remove |
| inline |
Run the idle tasks. Iterates through the list of idle tasks, calling Run() on each one.
| EventsPendingFunction | is a function that returns the name of a pending event or nil if none |
| pure virtual |
Run the idle tasks. Iterates through the list of idle tasks, calling Run() on each one.
| EventsPendingFunction | is a function that returns the name of a pending event or nil if none |
| pure virtual |
Set the application state flags
| pure virtual |
FOR INTERNAL USE ONLY [Deprecated] Sets Sleep Flag used for disabling idletasks while going to sleep.
| sleepFlag,Bypass | call to RunOverdueTasks() if set to kTrue, else execute RunOverdueTasks() normally. |
| pure virtual |
FOR INTERNAL USE ONLY Sets Sleep Flag used for disabling idletasks while going to sleep.
| idleTaskEvent,Bypass | call to RunOverdueTasks() on wake,keydown and mouseclick event. |
| pure virtual |
Remove all idle tasks, in preparation for shutdown