MattyNotes
mattynote.h
Go to the documentation of this file.
1 
2 #ifndef MATTYNOTE_H
3 #define MATTYNOTE_H
4 
5 #ifdef _MSC_VER
6 #pragma once
7 #endif // _MSC_VER
8 
9 #include <QDateTime>
10 
11 class MattyNote
12 {
13 public:
14  MattyNote();
15  MattyNote(struct MattyNoteRow RowFromDb);
16 
17  ~MattyNote();
18 
19  void constructNote(struct MattyNoteRow RowFromDb);
20 
21  void setTitle(const QString & Title);
22  void setType(const QString & TypeName);
23  void setType(int TypeId);
24  void setText(const QString & Text);
25  void setEventTime(const QString & EventTime); // Warning! Input format must be:
26  void setEventDate(const QString & EventDate); // Warning! Input format must be:
27 
28  QString getTitle() const;
29  QString getType() const;
30  QString getText() const;
31  QString getEventTime() const; // Format:
32  QString getEventDate() const; // Format:
33  //QString getEvDayofWeek();
34  QString getCrTime() const; // Format:
35  QString getCrDate() const; // Format:
36  //QString getCrDayOfWeek();
37  int getTypeId() const;
38  int getNoteId() const;
39  QDateTime getEventTimeAndDate() const;
40  QDateTime getCrTimeAndDate() const;
41 private:
42  int NoteId;
44  QString NoteTitle;
45  QString NoteType;
46  QString NoteText;
47  QString NoteEventTime; // Format:
48  QString NoteEventDate; // Format:
49  QString NoteEvDayOfWeek;
50  QString NoteCrTime;
51  QString NoteCrDate;
52  QString NoteCrDayOfWeek;
53  QDateTime EventTimeAndDate;
54  QDateTime CrTimeAndDate; // Automaticly set in constructor of MattyNote
55 };
56 
57 #endif // MATTYNOTE_H
QDateTime CrTimeAndDate
Definition: mattynote.h:54
int NoteTypeId
Definition: mattynote.h:43
int NoteId
Definition: mattynote.h:42
~MattyNote()
Definition: mattynote.cpp:25
QString NoteEventDate
Definition: mattynote.h:48
void setTitle(const QString &Title)
Definition: mattynote.cpp:42
QString getEventTime() const
Definition: mattynote.cpp:96
void constructNote(struct MattyNoteRow RowFromDb)
Definition: mattynote.cpp:29
QString NoteCrTime
Definition: mattynote.h:50
QString NoteType
Definition: mattynote.h:45
void setText(const QString &Text)
Definition: mattynote.cpp:59
QString NoteCrDayOfWeek
Definition: mattynote.h:52
Definition: dbmanager.h:19
QString getCrTime() const
Definition: mattynote.cpp:106
QDateTime getCrTimeAndDate() const
Definition: mattynote.cpp:126
void setEventDate(const QString &EventDate)
Definition: mattynote.cpp:70
QString NoteEventTime
Definition: mattynote.h:47
QString NoteCrDate
Definition: mattynote.h:51
int getTypeId() const
Definition: mattynote.cpp:86
QDateTime EventTimeAndDate
Definition: mattynote.h:53
int getNoteId() const
Definition: mattynote.cpp:116
void setEventTime(const QString &EventTime)
Definition: mattynote.cpp:64
QString getEventDate() const
Definition: mattynote.cpp:101
QString NoteText
Definition: mattynote.h:46
QString getTitle() const
Definition: mattynote.cpp:76
QString getType() const
Definition: mattynote.cpp:81
void setType(const QString &TypeName)
Definition: mattynote.cpp:47
QString NoteEvDayOfWeek
Definition: mattynote.h:49
QDateTime getEventTimeAndDate() const
Definition: mattynote.cpp:121
QString NoteTitle
Definition: mattynote.h:44
Definition: mattynote.h:11
MattyNote()
Definition: mattynote.cpp:5
QString getCrDate() const
Definition: mattynote.cpp:111
QString getText() const
Definition: mattynote.cpp:91