The follow is a header file of a simple dialog generated with QCreator. On the two method/function definitions I get the following errors:

QFXINFO has not be declared
QIFT was not declared in this scope

This is probably a c++ issue, but what am I doing wrong?

Qt Code:
  1. #ifndef DIALOG_H
  2. #define DIALOG_H
  3.  
  4. #include <QDialog>
  5. #include <QList>
  6.  
  7. namespace Ui {
  8. class Dialog;
  9. }
  10.  
  11. class Dialog : public QDialog
  12. {
  13. Q_OBJECT
  14.  
  15. public:
  16. explicit Dialog(QWidget *parent = 0);
  17. ~Dialog();
  18.  
  19. void readQFX(QString fileName, QFXINFO qfxInfo, QList<QIFT> qifTL);
  20. void writeQIF(QString filename, QFXINFO qfxInfo, QList<QIFT> qifTL);
  21.  
  22.  
  23. private:
  24. Ui::Dialog *ui;
  25.  
  26. // Define a QIF transaction
  27. struct QIFT
  28. {
  29. QString cleared; // value = C* set by program for all trans.
  30. QString date; // value form qfx <DTPOSTED>
  31. QString memo; // taken from qfx <NAME>
  32. QString ckNum; // taken from qfx <CHECKNUM>
  33. QString amt; // taken from qfx <TRNAMT>
  34. };
  35.  
  36. QList<QIFT> qifTL; // list of QFX2QIF transactions
  37.  
  38. // Define QFX info record
  39. struct QFXINFO
  40. {
  41. QString org; // value = (C1 for Capital One for example).
  42. QString type; // value = bank or credit card
  43. QString startDate; // transaction start date
  44. QString stopDate; // transaction stop date
  45. };
  46.  
  47. QFXINFO qfxInfo;
  48.  
  49.  
  50.  
  51. private slots:
  52. void on_donePB_pressed();
  53. void on_QFXSourcePB_pressed();
  54. void on_saveFolderPB_pressed();
  55. void on_reformatePB_pressed();
  56.  
  57. };
  58.  
  59. #endif // DIALOG_H
To copy to clipboard, switch view to plain text mode