MoleQueue 0.9.0
Loading...
Searching...
No Matches
JobItemModel Class Reference

#include <jobitemmodel.h>

Inheritance diagram for JobItemModel:

Public Types

enum  ColumnNames {
  MOLEQUEUE_ID = 0 ,
  JOB_TITLE ,
  NUM_CORES ,
  QUEUE_NAME ,
  PROGRAM_NAME ,
  JOB_STATE ,
  COLUMN_COUNT
}
enum  UserRoles { FetchJobRole = Qt::UserRole }

Public Slots

void jobUpdated (const MoleQueue::Job &job)

Signals

void rowCountChanged ()

Public Member Functions

 JobItemModel (QObject *parentObject=0)
void setJobManager (JobManager *jobManager)
JobManagerjobManager () const
QModelIndex parent (const QModelIndex &) const
int rowCount (const QModelIndex &theModelIndex=QModelIndex()) const
int columnCount (const QModelIndex &modelIndex=QModelIndex()) const
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
QVariant data (const QModelIndex &modelIndex, int role=Qt::DisplayRole) const
bool removeRows (int row, int count, const QModelIndex &)
bool insertRows (int row, int count, const QModelIndex &)
Qt::ItemFlags flags (const QModelIndex &modelIndex) const
QModelIndex index (int row, int column, const QModelIndex &modelIndex=QModelIndex()) const

Protected Attributes

JobManagerm_jobManager

Detailed Description

Item model for interacting with jobs.

Member Function Documentation

◆ removeRows()

bool removeRows ( int row,
int count,
const QModelIndex &  )

Remove the rows from the model. Does not modify the underlying data structure.

See also
JobManager::removeJob()

◆ insertRows()

bool insertRows ( int row,
int count,
const QModelIndex &  )

Insert rows into the model. Does not modify the underlying data structure.

See also
JobManager::newJob()

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