blob: c02caf07a3ab6f407c85d6d7b5322ca589106055 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/***************************************************************************
knewinvestmentwizard - description
-------------------
begin : Sat Dec 4 2004
copyright : (C) 2004 by Thomas Baumgart
email : Thomas Baumgart <ipwizard@users.sourceforge.net>
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KNEWINVESTMENTWIZARD_H
#define KNEWINVESTMENTWIZARD_H
// ----------------------------------------------------------------------------
// QT Includes
// ----------------------------------------------------------------------------
// KDE Includes
// ----------------------------------------------------------------------------
// Project Includes
#include "../dialogs/knewinvestmentwizarddecl.h"
#include <kmymoney/mymoneyaccount.h>
#include <kmymoney/mymoneysecurity.h>
/**
* This class contains the implementation of the new investment wizard.
*
* @author Thomas Baumgart
*/
class KNewInvestmentWizard : public KNewInvestmentWizardDecl
{
Q_OBJECT
public:
/**
* Use this constructor for the creation of a new investment
*/
KNewInvestmentWizard( TQWidget *parent = 0, const char *name = 0 );
/**
* Use this constructor for the modification of an existing investment
*/
KNewInvestmentWizard( const MyMoneyAccount& acc, TQWidget *parent = 0, const char *name = 0 );
/**
* Use this constructor for the modification of an existing security
*/
KNewInvestmentWizard( const MyMoneySecurity& sec, TQWidget *parent = 0, const char *name = 0 );
~KNewInvestmentWizard();
/**
* This method sets the name in the name widget.
*/
void setName(const TQString& name);
/**
* Depending on the constructor used, this method either
* creates all necessary objects for the investment or updates
* them.
*
* @param parentId id of parent account for the investment
*/
void createObjects(const TQString& parentId);
const MyMoneyAccount& account(void) const { return m_account; }
protected slots:
void next(void);
void slotCheckPage(void);
void slotCheckPage(const TQString&);
void slotCheckForExistingSymbol(const TQString&);
void slotSourceChanged(bool);
void slotHelp(void);
private:
void init1(void);
void init2(void);
private:
MyMoneyAccount m_account;
MyMoneySecurity m_security;
bool m_createAccount;
};
#endif
|