[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kmobiletools/kmobiletools/engines/at_engine
From: Marco Gulino <marco () kmobiletools ! org>
Date: 2005-07-31 22:17:26
Message-ID: 1122848246.156579.25949.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 441778 by gulino:
Handling of international numbers (+<prefix><number>) for phonebook writing
M +4 -3 phonebook_jobs.cpp
--- trunk/kdenonbeta/kmobiletools/kmobiletools/engines/at_engine/phonebook_jobs.cpp #441777:441778
@@ -181,10 +181,10 @@
kdDebug() << "Contact name: " << addressee->assembledName() << endl;
kdDebug() << "Phone number: " << (*it).number() << endl;
kdDebug() << "Index: " << i_index << endl;
- QString command="AT+CPBW=%1,\"%2\",129,\"%3\"\r";
+ QString command="AT+CPBW=%1,\"%2\",%4,\"%3\"\r";
if ( engine->getATAbilities().isSonyEricsson() )
{
- command="AT+CPBW=%2,\"%3/%1\",129,\"%4\"\r";
+ command="AT+CPBW=%2,\"%3/%1\",%5,\"%4\"\r";
switch( (*it).type() ){
case KABC::PhoneNumber::Work:
command=command.arg("W");
@@ -205,7 +205,7 @@
}
if ( engine->getATAbilities().isMotorola() )
{
- command="AT+MPBW=%2,\"%3\",129,\"%4\",%1,\r";
+ command="AT+MPBW=%2,\"%3\",%5,\"%4\",%1,\r";
switch( (*it).type() ){
case KABC::PhoneNumber::Work:
command=command.arg("0");
@@ -232,6 +232,7 @@
}
command= command.arg(i_index).arg( (*it).number()).arg(addressee->assembledName());
+ if((*it).number().contains("+") ) command=command.arg("145"); else command=command.arg("129");
kdDebug() << command << endl;
p_device->sendCommand(command);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic