Invest::Activity Class Reference

#include <investactivities.h>

Inheritance diagram for Invest::Activity:

Invest::Add Invest::Buy Invest::Div Invest::Reinvest Invest::Remove Invest::Sell Invest::Split
Collaboration diagram for Invest::Activity:

Collaboration graph

List of all members.

Public Member Functions

type (void) const =0
virtual void showWidgets (void) const =0
virtual bool isComplete (QString &reason) const =0
virtual bool createTransaction (MyMoneyTransaction &t, MyMoneySplit &s0, MyMoneySplit &assetAccountSplit, QValueList< MyMoneySplit > &feeSplits, QValueList< MyMoneySplit > &m_feeSplits, QValueList< MyMoneySplit > &interestSplits, QValueList< MyMoneySplit > &m_interestSplits, MyMoneySecurity &security, MyMoneySecurity &currency)=0
virtual void preloadAssetAccount (void)
virtual ~Activity ()

Protected Member Functions

 Activity (InvestTransactionEditor *editor)
QWidgethaveWidget (const QString &name) const
bool haveAssetAccount (void) const
bool haveFees (bool optional=false) const
bool haveInterest (bool optional=false) const
bool haveShares (void) const
bool havePrice (void) const
bool isMultiSelection (void) const
bool createCategorySplits (const MyMoneyTransaction &t, KMyMoneyCategory *cat, kMyMoneyEdit *amount, MyMoneyMoney factor, QValueList< MyMoneySplit > &splits, const QValueList< MyMoneySplit > &osplits) const
void createAssetAccountSplit (MyMoneySplit &split, const MyMoneySplit &stockSplit) const
MyMoneyMoney sumSplits (const MyMoneySplit &s0, const QValueList< MyMoneySplit > &feeSplits, const QValueList< MyMoneySplit > &interestSplits) const
bool haveCategoryAndAmount (const QString &category, const QString &amount, bool optional) const
void setLabelText (const QString &idx, const QString &txt) const
InvestTransactionEditor::priceModeE priceMode (void) const

Protected Attributes

QMap< QString, MyMoneyMoneym_priceInfo

Constructor & Destructor Documentation

virtual Invest::Activity::~Activity (  )  [inline, virtual]

Invest::Activity::Activity ( InvestTransactionEditor editor  )  [inline, protected]

Member Function Documentation

virtual MyMoneySplit::investTransactionTypeE Invest::Activity::type ( void   )  const [pure virtual]

virtual void Invest::Activity::showWidgets ( void   )  const [pure virtual]

virtual bool Invest::Activity::isComplete ( QString &  reason  )  const [pure virtual]

virtual bool Invest::Activity::createTransaction ( MyMoneyTransaction t,
MyMoneySplit s0,
MyMoneySplit assetAccountSplit,
QValueList< MyMoneySplit > &  feeSplits,
QValueList< MyMoneySplit > &  m_feeSplits,
QValueList< MyMoneySplit > &  interestSplits,
QValueList< MyMoneySplit > &  m_interestSplits,
MyMoneySecurity security,
MyMoneySecurity currency 
) [pure virtual]

Create a transaction t based on the split s0 and the data contained in the widgets. In multiselection mode, assetAccountSplit, feeSplits, interestSplits, security and currency are taken from the original transaction and should be used as well.

true if creation was successful, false otherwise

Implemented in Invest::Buy, Invest::Sell, Invest::Div, Invest::Reinvest, Invest::Add, Invest::Remove, and Invest::Split.

virtual void Invest::Activity::preloadAssetAccount ( void   )  [virtual]

QWidget* Invest::Activity::haveWidget ( const QString &  name  )  const [inline, protected]

bool Invest::Activity::haveAssetAccount ( void   )  const [protected]

bool Invest::Activity::haveFees ( bool  optional = false  )  const [inline, protected]

bool Invest::Activity::haveInterest ( bool  optional = false  )  const [inline, protected]

bool Invest::Activity::haveShares ( void   )  const [protected]

bool Invest::Activity::havePrice ( void   )  const [protected]

bool Invest::Activity::isMultiSelection ( void   )  const [inline, protected]

bool Invest::Activity::createCategorySplits ( const MyMoneyTransaction t,
KMyMoneyCategory cat,
kMyMoneyEdit amount,
MyMoneyMoney  factor,
QValueList< MyMoneySplit > &  splits,
const QValueList< MyMoneySplit > &  osplits 
) const [protected]

void Invest::Activity::createAssetAccountSplit ( MyMoneySplit split,
const MyMoneySplit stockSplit 
) const [protected]

MyMoneyMoney Invest::Activity::sumSplits ( const MyMoneySplit s0,
const QValueList< MyMoneySplit > &  feeSplits,
const QValueList< MyMoneySplit > &  interestSplits 
) const [protected]

bool Invest::Activity::haveCategoryAndAmount ( const QString &  category,
const QString &  amount,
bool  optional 
) const [protected]

void Invest::Activity::setLabelText ( const QString &  idx,
const QString &  txt 
) const [protected]

InvestTransactionEditor::priceModeE Invest::Activity::priceMode ( void   )  const [inline, protected]

Member Data Documentation

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

Generated on Wed Jan 26 13:10:04 2011 for KMyMoney by  doxygen 1.5.6