SynchroTime
base.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------
2 // Home Office
3 // Nürnberg, Germany
4 // E-Mail: sergej1@email.ua
5 //
6 // Copyright (C) 2020 free Project SynchroTime. All rights reserved.
7 //------------------------------------------------------------------------------
8 // Project SynchroTime: Command-line client for adjust the exact time and
9 // calibrating the RTC DS3231 module via the serial interface (UART).
10 //------------------------------------------------------------------------------
11 #ifndef BASE_H
12 #define BASE_H
13 
14 //------------------------------------------------------------------------------
15 // Includes
16 //------------------------------------------------------------------------------
17 #include <QObject>
18 #include <QMetaClassInfo>
19 #include <QList>
20 #include <QTextStream>
21 
22 //------------------------------------------------------------------------------
23 // Preprocessor
24 //------------------------------------------------------------------------------
25 
26 #ifdef DOXYGEN_RUNNING
27 template<class T> class QList {private: T QList;};
31 #endif
32 
33 //------------------------------------------------------------------------------
34 // Enums
35 //------------------------------------------------------------------------------
36 
37 //------------------------------------------------------------------------------
38 // Types
39 //------------------------------------------------------------------------------
40 
41 //------------------------------------------------------------------------------
42 // Classes
43 //------------------------------------------------------------------------------
48 class Base : public QObject
49 {
50  Q_OBJECT
51 public:
52  explicit Base( QObject *parent = 0 );
53 
54  virtual QString getClassName(void);
55  QTextStream& stdOutput( void );
56 
57 private:
58 
60  QTextStream standardOutput;
61 
62 };
63 
71 template <typename T>
72 class List : public QList<T>
73 {
74 public:
75  void clearList(void);
76 };
77 
78 #endif // BASE_H
Definition: base.h:48
QTextStream standardOutput
Output stream for all messages.
Definition: base.h:60
Class List overrides QList class methods.
Definition: base.h:72
T QList
Definition: base.h:30
Definition: base.h:30