StatsDelegate Class Reference

#include <statsdelegate.h>

List of all members.

Public Slots

void onCustomContextMenuRequested (const QPoint &pos)
void onCommandSent (QStringList)
 Slot called when a command is sent and completed.

Public Member Functions

 StatsDelegate (QObject *parent)


Detailed Description

Delegate for the Stats widget. Only used for the moment to deal with custom context menu requests

Definition at line 16 of file statsdelegate.h.


Constructor & Destructor Documentation

StatsDelegate::StatsDelegate ( QObject *  parent  ) 

Constructs a Stats delegate with the given parent.

Parameters:
parent the Stats widget

Definition at line 22 of file statsdelegate.cpp.


Member Function Documentation

void StatsDelegate::onCustomContextMenuRequested ( const QPoint &  pos  )  [slot]

Create a context menu for a Job in the Stats widget. Let the user to kill/suspend/resume a job

Parameters:
pos point where the custom context menu was requested

Definition at line 33 of file statsdelegate.cpp.

References onCommandSent().

void StatsDelegate::onCommandSent ( QStringList  outerrcmd  )  [slot]

Slot called when a command is sent and completed.

If the command was successfully executed, refresh the Stats widget. Add it to the logs.

Parameters:
outerrcmd List of 3 strings : output stream, error stream and the command executed.

Definition at line 82 of file statsdelegate.cpp.

Referenced by onCustomContextMenuRequested().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:09 2009 for QCJM by  doxygen 1.5.4