Remove second USSDHandler constructor.
This commit is contained in:
parent
00b1810997
commit
c288b250b6
|
@ -382,7 +382,8 @@ int sendUSSD(int argc, char** argv, ostream& os, istream& is)
|
|||
if (argc!=2) return BAD_NUM_ARGS;
|
||||
char *IMSI = argv[1];
|
||||
GSM::L3MobileIdentity mobileIdentity(IMSI);
|
||||
Control::MTTestHandler handler(mobileIdentity, (unsigned)1, (unsigned)0, Control::USSDData::REGrequest, std::string("REGrequest"));
|
||||
unsigned transactionId = USSDDispatcher(mobileIdentity, (unsigned)1, (unsigned)0, Control::USSDData::REGrequest, std::string("REGrequest"), false);
|
||||
Control::MTTestHandler handler(transactionId);
|
||||
handler.run();
|
||||
os << "MT USSD session end." << endl;
|
||||
return SUCCESS;
|
||||
|
|
|
@ -945,13 +945,6 @@ class USSDHandler {
|
|||
mContinueStr(gConfig.getStr("USSD.ContinueStr"))
|
||||
{}
|
||||
|
||||
/** This form is used for MT USSD */
|
||||
USSDHandler(GSM::L3MobileIdentity &mobileIdentity, unsigned TIFlag, unsigned TIValue, Control::USSDData::USSDMessageType messageType, std::string ussdString)
|
||||
:mContinueStr(gConfig.getStr("USSD.ContinueStr"))
|
||||
{
|
||||
mTransactionID = USSDDispatcher(mobileIdentity, TIFlag, TIValue, messageType, ussdString, false);
|
||||
}
|
||||
|
||||
/** Wait USSD data from MS. Return: 0 - successful, 1 - clear transaction, 2 - error or timeout */
|
||||
unsigned waitUSSDData(Control::USSDData::USSDMessageType* messageType, std::string* USSDString, unsigned timeout);
|
||||
/** Post USSD data and update transaction with new USSDData (messageType and USSDString)*/
|
||||
|
@ -994,8 +987,8 @@ class MOCLIHandler : public USSDHandler {
|
|||
|
||||
class MTTestHandler : public USSDHandler {
|
||||
public:
|
||||
MTTestHandler(GSM::L3MobileIdentity &mobileIdentity, unsigned TIFlag, unsigned TIValue, Control::USSDData::USSDMessageType messageType, std::string ussdString)
|
||||
:USSDHandler(mobileIdentity,TIFlag, TIValue, messageType, ussdString)
|
||||
MTTestHandler(unsigned wTransactionID)
|
||||
:USSDHandler(wTransactionID)
|
||||
{}
|
||||
|
||||
void run();
|
||||
|
|
Reference in New Issue