Changeset 458:78cd48f17c14 in SMSSender
- Timestamp:
- Jan 5, 2015 11:15:28 AM (6 years ago)
- Branch:
- new-gtwy-coopmobile
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gateways/CoopMobile/business/account_costs.cpp
r454 r458 1 1 /* 2 2 Coop Mobile gateway plugin - The smssender plugin for the Coop Mobile platform. 3 Copyright (C) 2011-201 4, gorrión. See http://smssender.gorrion.ch3 Copyright (C) 2011-2015, gorrión. See http://smssender.gorrion.ch 4 4 5 5 This program is free software: you can redistribute it and/or modify … … 58 58 59 59 const bool messageContainsSpecialChars = hasSpecialChars( 60 message, '\r' + '\n'+ GSM_CHARS + GSM_DOUBLE_PRICE_CHARS);60 message, QString("\r\n") + GSM_CHARS + GSM_DOUBLE_PRICE_CHARS); 61 61 const MaxCount *maxCount = messageContainsSpecialChars 62 62 ? &SPECIAL_MAX_COUNT … … 86 86 QStringList Account::MessageDivider::divideMessageIntoLongSMS( 87 87 const QString &message) const { 88 return divideMessageIntoLongSMS(message + FORCED_MESSAGE_SUFFIX, NULL);88 return divideMessageIntoLongSMS(message, NULL); 89 89 } 90 90 91 91 int Account::MessageDivider::costsForMessage(const QString &message) const { 92 92 int costs; 93 divideMessageIntoLongSMS(message , &costs);93 divideMessageIntoLongSMS(message + FORCED_MESSAGE_SUFFIX, &costs); 94 94 return costs; 95 95 }
Note: See TracChangeset
for help on using the changeset viewer.