#include <DispatchingTextMessagesBusinessLogic.h>
|
| | DispatchingTextMessagesBusinessLogic () |
| |
| virtual | ~DispatchingTextMessagesBusinessLogic () |
| |
| void | OnNewPredefinedMessagesReceived (const PredefinedMessages &predefinedMessages, const DispatchingTextMessagesReceiver::ReceivedMessageNotificationType receivedMessageNotificationType) |
| | OnNewPredefinedMessagesReceived - methods stores new received predefined messages and ReceivedMessageNotificationType (this class is primary holder) More...
|
| |
| PredefinedMessages | GetPredefinedMessages () const |
| | GetPredefinedMessages - predefined messages texts are used for option to predefine texts, which user can send to dispatching without need to manually edit text. More...
|
| |
| bool | GetReadTextMessages (QList< TextMessage > &textMessagesList) const |
| |
| bool | GetUnreadTextMessages (QList< TextMessage > &textMessagesList) const |
| |
| bool | GetLastReceivedUnreadTextMessageToWriteAnswer (TextMessage &textMessage) const |
| |
| bool | GetAnsweredTextMessages (QList< TextMessage > &textMessagesList) const |
| |
| bool | GetUnreadTextMessageByMessageTimeAndID (const QDateTime &messageTime, const uint32_t messageID, QString &messageText, PredefinedMessages &messageAnswersMap) const |
| |
| bool | CreateTextMessageAnswerFile (const QString &messageText, const uint32_t messageID, const QDateTime messageTime) const |
| | CreateTextMessageAnswerFile - method creates and stores new file that represents text message that we sent to dispatching. More...
|
| |
| bool | MoveUnreadTextMessageToReadMessagesDirectory (const QDateTime messageTime, const uint32_t messageID) const |
| |
| bool | DeleteTextMessage (const QDateTime messageTime, const uint32_t messageID, const bool isReceivedMessage) |
| |
| DispatchingTextMessagesReceiver::ReceivedMessageNotificationType | GetReceivedTextMessageNotificationType () const |
| | GetReceivedTextMessageNotificationType. More...
|
| |
| bool | GetUnreadTextMessagesCount (int &unreadMessagesCount) |
| |
| | BusinessLogic (ApplicationDefines::BusinessLogicType businessLogicType, ApplicationDefines::BusinessLogicLifeTimeType businessLogicLifeTimeType) |
| |
| virtual | ~BusinessLogic () |
| |
| ApplicationDefines::BusinessLogicType | GetBusinessLogicType () const |
| |
| ApplicationDefines::BusinessLogicLifeTimeType | GetBusinessLogicLifeTimeType () const |
| |
| DispatchingTextMessagesBusinessLogic::DispatchingTextMessagesBusinessLogic |
( |
| ) |
|
| DispatchingTextMessagesBusinessLogic::~DispatchingTextMessagesBusinessLogic |
( |
| ) |
|
|
virtual |
| bool DispatchingTextMessagesBusinessLogic::CreateTextMessageAnswerFile |
( |
const QString & |
messageText, |
|
|
const uint32_t |
messageID, |
|
|
const QDateTime |
messageTime |
|
) |
| const |
CreateTextMessageAnswerFile - method creates and stores new file that represents text message that we sent to dispatching.
- Parameters
-
| messageText | - sent message text |
| messageID | - sent message ID |
| messageTime | - message sent time |
- Returns
- true on success, false on failure
| bool DispatchingTextMessagesBusinessLogic::DeleteTextMessage |
( |
const QDateTime |
messageTime, |
|
|
const uint32_t |
messageID, |
|
|
const bool |
isReceivedMessage |
|
) |
| |
| bool DispatchingTextMessagesBusinessLogic::GetAnsweredTextMessages |
( |
QList< TextMessage > & |
textMessagesList | ) |
const |
| bool DispatchingTextMessagesBusinessLogic::GetLastReceivedUnreadTextMessageToWriteAnswer |
( |
TextMessage & |
textMessage | ) |
const |
GetPredefinedMessages - predefined messages texts are used for option to predefine texts, which user can send to dispatching without need to manually edit text.
- Returns
- predefined messages map
| bool DispatchingTextMessagesBusinessLogic::GetReadTextMessages |
( |
QList< TextMessage > & |
textMessagesList | ) |
const |
GetReceivedTextMessageNotificationType.
- Returns
- - method returns if received text message should be displayed, should be displayed in some states or shouldn't be displayed at all
| bool DispatchingTextMessagesBusinessLogic::GetUnreadTextMessageByMessageTimeAndID |
( |
const QDateTime & |
messageTime, |
|
|
const uint32_t |
messageID, |
|
|
QString & |
messageText, |
|
|
PredefinedMessages & |
messageAnswersMap |
|
) |
| const |
| bool DispatchingTextMessagesBusinessLogic::GetUnreadTextMessages |
( |
QList< TextMessage > & |
textMessagesList | ) |
const |
| bool DispatchingTextMessagesBusinessLogic::GetUnreadTextMessagesCount |
( |
int & |
unreadMessagesCount | ) |
|
| bool DispatchingTextMessagesBusinessLogic::IsMessageCreatedOrAnsweredEarlier |
( |
const TextMessage & |
textMessage1, |
|
|
const TextMessage & |
textMessage2 |
|
) |
| |
|
static |
| bool DispatchingTextMessagesBusinessLogic::IsMessageCreatedOrAnsweredLater |
( |
const TextMessage & |
textMessage1, |
|
|
const TextMessage & |
textMessage2 |
|
) |
| |
|
static |
| bool DispatchingTextMessagesBusinessLogic::MoveUnreadTextMessageToReadMessagesDirectory |
( |
const QDateTime |
messageTime, |
|
|
const uint32_t |
messageID |
|
) |
| const |
OnNewPredefinedMessagesReceived - methods stores new received predefined messages and ReceivedMessageNotificationType (this class is primary holder)
- Parameters
-
| predefinedMessages | - predefined messages map |
| receivedMessageNotificationType | - |
- See also
- enum ReceivedMessageNotificationType in class DispatchingTextMessagesReceiver
The documentation for this class was generated from the following files: