[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kmobiletools/kmobiletools
From: Marco Gulino <marco () kmobiletools ! org>
Date: 2005-07-14 20:50:03
Message-ID: 1121374203.166643.13482.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 434619 by gulino:
Fixed Sony Ericsson multiple numbers
M +6 -0 deviceparts/kmobiletools_devicepart.cpp
M +1 -0 deviceparts/kmobiletools_devicepart.h
M +2 -2 engines/at_engine/at_jobs.cpp
M +9 -0 libkmobiletoolsprivate/kmobiletools_devices.kcfg
--- trunk/kdenonbeta/kmobiletools/kmobiletools/deviceparts/kmobiletools_devicepart.cpp \
#434618:434619 @@ -158,6 +158,12 @@
connect(statusPollTimer, SIGNAL(timeout() ), engine, SLOT(pollPhoneStatus()) \
);
statusPollTimer->start( (int) \
DevicesConfig::prefs(name)->status_pollTimeout() * 1000, false); }
+ if( Config->smsPoll() && Config->sms_pollTimeout() > 0 )
+ {
+ smsPollTimer=new QTimer(this);
+ connect(smsPollTimer, SIGNAL(timeout() ), engine, SLOT(retrieveSMSList()) );
+ smsPollTimer->start( (int) DevicesConfig::prefs(name)->sms_pollTimeout() * \
1000, false); + }
}
kmobiletoolsDevicePart::~kmobiletoolsDevicePart()
--- trunk/kdenonbeta/kmobiletools/kmobiletools/deviceparts/kmobiletools_devicepart.h \
#434618:434619 @@ -69,6 +69,7 @@
KListViewItem *p_listViewItem;
homepagePart *home;
QTimer *statusPollTimer;
+ QTimer *smsPollTimer;
addressDetails *p_addressDetails;
smsPart *p_smsPart;
bool devIsConnected;
--- trunk/kdenonbeta/kmobiletools/kmobiletools/engines/at_engine/at_jobs.cpp \
#434618:434619 @@ -340,10 +340,10 @@
addr=NULL;
tempaddr=NULL;
givenName=decodeString( expr.cap( 2 ) );
- if( engine->getATAbilities().isSiemens() )
+ if( engine->getATAbilities().isSonyEricsson() )
{
type=givenName.mid(givenName.findRev('/') + 1);
- givenName=givenName.left(givenName.findRev('/') -1);
+ givenName=givenName.left(givenName.findRev('/'));
if(type=="W") PhoneType=KABC::PhoneNumber::Work;
if(type=="M") PhoneType=KABC::PhoneNumber::Cell;
if(type=="H") PhoneType=KABC::PhoneNumber::Home;
--- trunk/kdenonbeta/kmobiletools/kmobiletools/libkmobiletoolsprivate/kmobiletools_devices.kcfg \
#434618:434619 @@ -27,6 +27,15 @@
<entry name="sync_clock" type="Bool">
<default>true</default>
</entry>
+ <entry name="smsPoll" type="Bool">
+ <default>true</default>
+ </entry>
+ <entry name="sms_pollTimeout" type="Double">
+ <default>5.0</default>
+ </entry>
+ <entry name="SMS_startup" type="Bool">
+ <default>true</default>
+ </entry>
<!-- AT Engine config options -->
<entry name="at_path" type="String">
<default>/dev/mobile</default>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic