From f4fae92b6768541e2952173c3d4b09040f95bf7e Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kaddressbook/xxport/gnokii_xxport.cpp | 90 +++++++++++++++++------------------ 1 file changed, 45 insertions(+), 45 deletions(-) (limited to 'kaddressbook/xxport/gnokii_xxport.cpp') diff --git a/kaddressbook/xxport/gnokii_xxport.cpp b/kaddressbook/xxport/gnokii_xxport.cpp index c6bd0917d..faf527073 100644 --- a/kaddressbook/xxport/gnokii_xxport.cpp +++ b/kaddressbook/xxport/gnokii_xxport.cpp @@ -173,9 +173,9 @@ static gn_error read_phone_memstat( const gn_memory_type memtype, gn_memory_stat static TQString buildPhoneInfoString( const gn_memory_status &memstat ) { - TQString format = TQString::fromLatin1("%1%2"); + TQString format = TQString::tqfromLatin1("%1%2"); - return TQString::fromLatin1("%1
%2%3%4%5%6

") + return TQString::tqfromLatin1("%1
%2%3%4%5%6

") .arg(i18n("Mobile Phone information:")) .arg(format.arg(i18n("Manufacturer")).arg(GN_FROM(manufacturer))) .arg(format.arg(i18n("Phone model")).arg(GN_FROM(model))) @@ -272,7 +272,7 @@ static gn_error read_phone_entries( const char *memtypestr, gn_memory_type memty TQDateTime datetime; gn_timestamp ts = gn_lib_get_pb_date(state); if (ts.year<1998) - datetime = TQDateTime::currentDateTime(); + datetime = TQDateTime::tqcurrentDateTime(); else datetime = TQDateTime( TQDate(ts.year, ts.month, ts.day), TQTime(ts.hour, ts.minute, ts.second) ); @@ -481,14 +481,14 @@ static gn_error xxport_phone_write_entry( int phone_location, gn_memory_type mem if (Addr->isEmpty()) continue; TQStringList a; TQChar sem(';'); - TQString sem_repl(TQString::fromLatin1(",")); - a.append( Addr->postOfficeBox().replace( sem, sem_repl ) ); - a.append( Addr->extended() .replace( sem, sem_repl ) ); - a.append( Addr->street() .replace( sem, sem_repl ) ); - a.append( Addr->locality() .replace( sem, sem_repl ) ); - a.append( Addr->region() .replace( sem, sem_repl ) ); - a.append( Addr->postalCode() .replace( sem, sem_repl ) ); - a.append( Addr->country() .replace( sem, sem_repl ) ); + TQString sem_repl(TQString::tqfromLatin1(",")); + a.append( Addr->postOfficeBox().tqreplace( sem, sem_repl ) ); + a.append( Addr->extended() .tqreplace( sem, sem_repl ) ); + a.append( Addr->street() .tqreplace( sem, sem_repl ) ); + a.append( Addr->locality() .tqreplace( sem, sem_repl ) ); + a.append( Addr->region() .tqreplace( sem, sem_repl ) ); + a.append( Addr->postalCode() .tqreplace( sem, sem_repl ) ); + a.append( Addr->country() .tqreplace( sem, sem_repl ) ); s = a.join(sem); gn_lib_set_pb_subentry(state, -1 /* index to append entry */, GN_PHONEBOOK_ENTRY_Postal, GN_PHONEBOOK_NUMBER_General, GN_TO(s)); @@ -528,7 +528,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const { KABC::AddresseeList addrList; - if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(), + if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(), i18n("Please connect your Mobile Phone to your computer and press " "Continue to start importing the personal contacts.

" "Please note that if your Mobile Phone is not properly connected " @@ -536,7 +536,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const "KAddressbook will behave unresponsively.
") )) return addrList; - m_progressDlg = new KProgressDialog( parentWidget(), "importwidget", + m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget", i18n("Mobile Phone Import"), i18n("
Establishing connection to the Mobile Phone.

" "Please wait...
") ); @@ -555,7 +555,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const m_progressDlg->unsetCursor(); if (!errStr.isEmpty()) { - KMessageBox::error(parentWidget(), errStr); + KMessageBox::error(tqparentWidget(), errStr); delete m_progressDlg; return addrList; } @@ -577,7 +577,7 @@ KABC::AddresseeList GNOKIIXXPort::importContacts( const TQString& ) const bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQString & ) { - if (KMessageBox::Continue != KMessageBox::warningContinueCancel(parentWidget(), + if (KMessageBox::Continue != KMessageBox::warningContinueCancel(tqparentWidget(), i18n("Please connect your Mobile Phone to your computer and press " "Continue to start exporting the selected personal contacts.

" "Please note that if your Mobile Phone is not properly connected " @@ -585,7 +585,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri "KAddressbook will behave unresponsively.
") )) return false; - m_progressDlg = new KProgressDialog( parentWidget(), "importwidget", + m_progressDlg = new KProgressDialog( tqparentWidget(), "importwidget", i18n("Mobile Phone Export"), i18n("
Establishing connection to the Mobile Phone.

" "Please wait...
") ); @@ -612,7 +612,7 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri m_progressDlg->unsetCursor(); if (!errStr.isEmpty()) { - KMessageBox::error(parentWidget(), errStr); + KMessageBox::error(tqparentWidget(), errStr); delete m_progressDlg; return false; } @@ -641,11 +641,11 @@ bool GNOKIIXXPort::exportContacts( const KABC::AddresseeList &list, const TQStri phone_count = memstat.used; if (memstat.free >= (int) list.count()) { - if (KMessageBox::No == KMessageBox::questionYesNo(parentWidget(), + if (KMessageBox::No == KMessageBox::questionYesNo(tqparentWidget(), i18n("Do you want the selected contacts to be appended to " - "the current mobile phonebook or should they replace all " + "the current mobile phonebook or should they tqreplace all " "currently existing phonebook entries ?

" - "Please note, that in case you choose to replace the phonebook " + "Please note, that in case you choose to tqreplace the phonebook " "entries, every contact in your phone will be deleted and only " "the newly exported contacts will be available from inside your phone.
"), i18n("Export to Mobile Phone"), @@ -760,7 +760,7 @@ finish: if (!failedList.isEmpty()) { GNOKII_DEBUG(TQString("Failed to export: %1\n").arg(failedList.join(", "))); - KMessageBox::informationList(parentWidget(), + KMessageBox::informationList(tqparentWidget(), i18n("The following contacts could not be exported to the Mobile Phone. " "Possible Reasons for this problem could be: