Emergency 20 Dokumentation  4.2.0
WarblerTweetHelper.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
15 #include <qsf/job/JobProxy.h>
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23  class FreeplayEvent;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public methods ]
47  //[-------------------------------------------------------]
48  public:
54 
60 
61  void initialize(const std::string& message, FreeplayEvent& freeplayEvent, const std::string& cameraEntityTag, const std::string& tweeterEntityTag, bool makeTweetPersonNow = false);
62 
63  inline bool wasTweeted() const { return mWasTweeted; }
64 
65  void tweetDelayed(const qsf::Time& delayTime);
66  void tweetNow();
67  void makeTweetPerson();
68 
69 
70  //[-------------------------------------------------------]
71  //[ Private data ]
72  //[-------------------------------------------------------]
73  private:
74  bool mWasTweeted;
75  bool mMadeTweetPerson;
76  std::string mMessage;
77  FreeplayEvent* mFreeplayEvent;
78  std::string mCameraEntityTag;
79  std::string mTweeterEntityTag;
80 
81  qsf::JobProxy mDelayJobProxy;
82 
83 
84  };
85 
86 
87 //[-------------------------------------------------------]
88 //[ Namespace ]
89 //[-------------------------------------------------------]
90 } // em5
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
#define EM5_API_EXPORT
Definition: Export.h:28
bool wasTweeted() const
Definition: WarblerTweetHelper.h:63
Helper class for warbler tweets.
Definition: WarblerTweetHelper.h:41
Abstract EMERGENCY 5 freeplay event base class.
Definition: FreeplayEvent.h:66
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32