Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CountdownToCommandSegmentFormLogic.h
Go to the documentation of this file.
1 #ifndef COUNTDOWNTOCOMMANDSEGMENTFORMLOGIC_H
2 #define COUNTDOWNTOCOMMANDSEGMENTFORMLOGIC_H
3 
4 #include <QString>
5 
6 #include "GeneralFormLogic.h"
7 
9 {
10  QString lineNumber;
11  QString tripNumber;
12  QStringList arrivalTimes;
13  QStringList busStops;
15 
17  {
18  lineNumber = "";
19  tripNumber = "";
20  arrivalTimes.clear();
21  busStops.clear();
22  isFollowingCommandSegment = false;
23  }
24 };
25 
27 {
28  Q_OBJECT
29 public:
32 
33  void SetTextCommandNumberCaptionLabel( const QString &text );
34  void SetTextCommandNumberLabel( const QString &text );
35  void SetVisibleProgressImageLabel( bool visible );
36 
37  void AddCommandSegment( const CommandSegmentData &commandSegmentData );
38  void ShowCommandSegments();
39  void ClearCommandSegments();
40  void SetTimeToDeparture( const QString &timeToDeparture );
41  void SetDepartureCaption( const QString &departureCaption );
42 
43  bool eventFilter( QObject *object, QEvent *event );
44 
45 signals:
47 
48 private:
50 
51  class DataClass;
52  QSharedPointer<DataClass> d;
53 
55 };
56 
57 #endif // COUNTDOWNTOCOMMANDSEGMENTFORMLOGIC_H
void SetVisibleProgressImageLabel(bool visible)
Definition: CountdownToCommandSegmentFormLogic.cpp:69
Definition: GeneralFormLogic.h:7
QStringList busStops
Definition: CountdownToCommandSegmentFormLogic.h:13
virtual ~CountdownToCommandSegmentFormLogic()
Definition: CountdownToCommandSegmentFormLogic.cpp:55
bool eventFilter(QObject *object, QEvent *event)
Definition: CountdownToCommandSegmentFormLogic.cpp:127
void ClearCommandSegments()
Definition: CountdownToCommandSegmentFormLogic.cpp:102
QString tripNumber
Definition: CountdownToCommandSegmentFormLogic.h:11
void SetTextCommandNumberLabel(const QString &text)
Definition: CountdownToCommandSegmentFormLogic.cpp:64
void SetDepartureCaption(const QString &departureCaption)
Definition: CountdownToCommandSegmentFormLogic.cpp:122
void SetTimeToDeparture(const QString &timeToDeparture)
Definition: CountdownToCommandSegmentFormLogic.cpp:107
void AddCommandSegment(const CommandSegmentData &commandSegmentData)
Definition: CountdownToCommandSegmentFormLogic.cpp:74
void SetTextCommandNumberCaptionLabel(const QString &text)
Definition: CountdownToCommandSegmentFormLogic.cpp:59
QStringList arrivalTimes
Definition: CountdownToCommandSegmentFormLogic.h:12
void ShowCommandSegments()
Definition: CountdownToCommandSegmentFormLogic.cpp:87
CountdownToCommandSegmentFormLogic()
Definition: CountdownToCommandSegmentFormLogic.cpp:38
bool isFollowingCommandSegment
Definition: CountdownToCommandSegmentFormLogic.h:14
CommandSegmentData()
Definition: CountdownToCommandSegmentFormLogic.h:16
QString lineNumber
Definition: CountdownToCommandSegmentFormLogic.h:10
Definition: CountdownToCommandSegmentFormLogic.h:8
Definition: CountdownToCommandSegmentFormLogic.cpp:17
Definition: CountdownToCommandSegmentFormLogic.h:26