KScheduledListItem Class Reference

#include <kscheduledlistitem.h>

Inheritance diagram for KScheduledListItem:

KListViewItem
Collaboration diagram for KScheduledListItem:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 KScheduledListItem (KListView *parent, const QString &description, const QPixmap &pixmap=QPixmap(), const QString &sortKey=QString())
 KScheduledListItem (KScheduledListItem *parent, const MyMoneySchedule &schedule)
 ~KScheduledListItem ()
const QString & scheduleId (void) const
int compare (QListViewItem *i, int col, bool ascending) const

Protected Member Functions

void paintCell (QPainter *p, const QColorGroup &cg, int column, int width, int align)

Private Attributes

MyMoneySchedule m_schedule
QString m_sortKey
MyMoneyMoney m_amount


Detailed Description

The list view item that describes a scheduled transaction.

Author:
Michael Edwardes

Constructor & Destructor Documentation

KScheduledListItem::KScheduledListItem ( KListView parent,
const QString &  description,
const QPixmap &  pixmap = QPixmap(),
const QString &  sortKey = QString() 
)

This constructor is used to create a child of the main list view widget.

The child should be a descriptor for the schedule type and one of Bill, Deposit or Transfer.

Other types may be added in the future.

Parameters:
parent The list view to be a child of.
description The (translated) description.
pixmap A pixmap for the entry
sortKey a sortkey, if empty, description will be used.
See also:
MyMoneySchedule

KScheduledListItem::KScheduledListItem ( KScheduledListItem parent,
const MyMoneySchedule schedule 
)

This constructor is used to create a child of one of the children created by the above method.

This child describes a schedule and represents the data in schedule.

Parameters:
parent The list view item to be a child of.
schedule The schedule to be represented.
See also:
MyMoneySchedule

KScheduledListItem::~KScheduledListItem (  ) 

Standard destructor.


Member Function Documentation

const QString& KScheduledListItem::scheduleId ( void   )  const [inline]

Returns the schedule id for the instance being represented. To be used selection slots by the view.

Returns an empty string for the top level items.

Returns:
The schedule id.

int KScheduledListItem::compare ( QListViewItem i,
int  col,
bool  ascending 
) const

void KScheduledListItem::paintCell ( QPainter *  p,
const QColorGroup &  cg,
int  column,
int  width,
int  align 
) [protected]


Member Data Documentation

QString KScheduledListItem::m_sortKey [private]


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

Generated on Wed Jan 26 13:08:47 2011 for KMyMoney by  doxygen 1.5.6