summaryrefslogtreecommitdiffstats
path: root/kandy/src/mobilegui.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-20 16:27:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-20 16:27:27 -0600
commit94273bcb909fac42ef9427e3d8a614cab8c29c66 (patch)
tree91b99186971ecb475db3ca41b1b12df24029e389 /kandy/src/mobilegui.cpp
parent41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff)
downloadtdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz
tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip
Rename KABC namespace
Diffstat (limited to 'kandy/src/mobilegui.cpp')
-rw-r--r--kandy/src/mobilegui.cpp104
1 files changed, 52 insertions, 52 deletions
diff --git a/kandy/src/mobilegui.cpp b/kandy/src/mobilegui.cpp
index 5b391c389..819d7e0fa 100644
--- a/kandy/src/mobilegui.cpp
+++ b/kandy/src/mobilegui.cpp
@@ -88,7 +88,7 @@ class SyncEntryKab : public SyncEntry
TQString mName;
TQString mPhone;
- KABC::Addressee mAddressee;
+ TDEABC::Addressee mAddressee;
int mKABindex;
int mPhoneNumberIndex;
};
@@ -494,16 +494,16 @@ void MobileGui::readKabc()
mSyncer->mKabEntries.clear();
- KABC::AddressBook *addressBook = KABC::StdAddressBook::self( true );
- KABC::AddressBook::Iterator it;
+ TDEABC::AddressBook *addressBook = TDEABC::StdAddressBook::self( true );
+ TDEABC::AddressBook::Iterator it;
int kabIndex = 0;
for ( it = addressBook->begin(); it != addressBook->end();
it++, kabIndex++ ) {
TQString index, name;
- KABC::PhoneNumber phoneNumber;
- KABC::PhoneNumber::List phoneNumbers = (*it).phoneNumbers();
- KABC::PhoneNumber::List::Iterator it2;
+ TDEABC::PhoneNumber phoneNumber;
+ TDEABC::PhoneNumber::List phoneNumbers = (*it).phoneNumbers();
+ TDEABC::PhoneNumber::List::Iterator it2;
int phoneNumberIndex = 0;
@@ -516,37 +516,37 @@ void MobileGui::readKabc()
if ( (*mPrefs).excludeHome() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Home ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Home ) )
excludeNumber = true;
if ( (*mPrefs).excludeWork() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Work ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Work ) )
excludeNumber = true;
if ( (*mPrefs).excludeMessaging() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Msg ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Msg ) )
excludeNumber = true;
if ( (*mPrefs).excludeFax() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Fax ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Fax ) )
excludeNumber = true;
if ( (*mPrefs).excludeCell() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Cell ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Cell ) )
excludeNumber = true;
if ( (*mPrefs).excludeVideo() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Video ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Video ) )
excludeNumber = true;
if ( (*mPrefs).excludeMailbox() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Bbs ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Bbs ) )
excludeNumber = true;
if ( (*mPrefs).excludeModem() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Modem ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Modem ) )
excludeNumber = true;
if ( (*mPrefs).excludeCar() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Car ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Car ) )
excludeNumber = true;
if ( (*mPrefs).excludeISDN() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Isdn ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Isdn ) )
excludeNumber = true;
if ( (*mPrefs).excludePager() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Pager ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Pager ) )
excludeNumber = true;
if ( excludeNumber == false ) {
@@ -556,8 +556,8 @@ void MobileGui::readKabc()
index = "";
name = (*it).familyName();
- KABC::AddressBook::Iterator it3;
- KABC::Addressee::List tmp;
+ TDEABC::AddressBook::Iterator it3;
+ TDEABC::Addressee::List tmp;
bool firstCharIsUnique = true;
for ( it3 = addressBook->begin(); it3 != addressBook->end(); ++it3 )
if ( ( (*it3).familyName() == name ) && ( it3 != it ) ) {
@@ -584,47 +584,47 @@ void MobileGui::readKabc()
// Append Suffix to name if specified in preferences
if ( (*mPrefs).useHomeSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Home ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Home ) )
formatPBName( &name, (*mPrefs).homeSuff() );
else
if ( (*mPrefs).useWorkSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Work ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Work ) )
formatPBName( &name, (*mPrefs).workSuff() );
else
if ( (*mPrefs).useMessagingSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Msg ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Msg ) )
formatPBName( &name, (*mPrefs).messagingSuff() );
else
if ( (*mPrefs).useFaxSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Fax ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Fax ) )
formatPBName( &name, (*mPrefs).faxSuff() );
else
if ( (*mPrefs).useCellSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Cell ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Cell ) )
formatPBName( &name, (*mPrefs).cellSuff() );
else
if ( (*mPrefs).useVideoSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Video ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Video ) )
formatPBName( &name, (*mPrefs).videoSuff() );
else
if ( (*mPrefs).useMailboxSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Bbs ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Bbs ) )
formatPBName( &name, (*mPrefs).mailboxSuff() );
else
if ( (*mPrefs).useModemSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Modem ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Modem ) )
formatPBName( &name, (*mPrefs).modemSuff() );
else
if ( (*mPrefs).useCarSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Car ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Car ) )
formatPBName( &name, (*mPrefs).carSuff() );
else
if ( (*mPrefs).useISDNSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Isdn ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Isdn ) )
formatPBName( &name, (*mPrefs).iSDNSuff() );
else
if ( (*mPrefs).usePagerSuff() &&
- ( phoneNumber.type() & KABC::PhoneNumber::Pager ) )
+ ( phoneNumber.type() & TDEABC::PhoneNumber::Pager ) )
formatPBName( &name, (*mPrefs).pagerSuff() );
kabEntry = new SyncEntryKab( true, index, name, phone );
@@ -715,8 +715,8 @@ void MobileGui::writeKabc()
if ( mKabState != MODIFIED )
return;
- KABC::AddressBook *addressBook = KABC::StdAddressBook::self( true );
- KABC::Ticket *ticket = addressBook->requestSaveTicket();
+ TDEABC::AddressBook *addressBook = TDEABC::StdAddressBook::self( true );
+ TDEABC::Ticket *ticket = addressBook->requestSaveTicket();
if ( !ticket ) {
kdDebug() << "Error! No ticket to save." << endl;
@@ -731,13 +731,13 @@ void MobileGui::writeKabc()
if ( kabEntry->mToBeUpdated ) {
// Find the entry in the KAB which has to be updated
- KABC::AddressBook::Iterator it = addressBook->begin();
+ TDEABC::AddressBook::Iterator it = addressBook->begin();
for ( int KABindex = 0; KABindex != kabEntry->mKABindex;
it++, KABindex++ ) ;
// Find the correct phonenumber of the phonebook entry
- KABC::PhoneNumber::List phoneNumbers = (*it).phoneNumbers();
- KABC::PhoneNumber::List::Iterator it2 = phoneNumbers.begin();
+ TDEABC::PhoneNumber::List phoneNumbers = (*it).phoneNumbers();
+ TDEABC::PhoneNumber::List::Iterator it2 = phoneNumbers.begin();
for ( int phoneNumberIndex = 0;
phoneNumberIndex != kabEntry->mPhoneNumberIndex;
it2++, phoneNumberIndex++ ) ;
@@ -749,7 +749,7 @@ void MobileGui::writeKabc()
if ( kabEntry->mToBeInserted ) {
int phoneType = 0;
bool goon = true;
- KABC::AddressBook::Iterator it;
+ TDEABC::AddressBook::Iterator it;
bool equivalentEntryFound = false;
TQString name = kabEntry->mName;
@@ -761,7 +761,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useHomeSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).homeSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Home;
+ phoneType = TDEABC::PhoneNumber::Home;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -770,7 +770,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useWorkSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).workSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Work;
+ phoneType = TDEABC::PhoneNumber::Work;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -779,7 +779,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useMessagingSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).messagingSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Msg;
+ phoneType = TDEABC::PhoneNumber::Msg;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -788,7 +788,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useFaxSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).faxSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Fax;
+ phoneType = TDEABC::PhoneNumber::Fax;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -797,7 +797,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useCellSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).cellSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Cell;
+ phoneType = TDEABC::PhoneNumber::Cell;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -806,7 +806,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useVideoSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).videoSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Video;
+ phoneType = TDEABC::PhoneNumber::Video;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -815,7 +815,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useMailboxSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).mailboxSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Bbs;
+ phoneType = TDEABC::PhoneNumber::Bbs;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -824,7 +824,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useModemSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).modemSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Modem;
+ phoneType = TDEABC::PhoneNumber::Modem;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -833,7 +833,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useCarSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).carSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Car;
+ phoneType = TDEABC::PhoneNumber::Car;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -842,7 +842,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).useISDNSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).iSDNSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Isdn;
+ phoneType = TDEABC::PhoneNumber::Isdn;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -851,7 +851,7 @@ void MobileGui::writeKabc()
if ( goon && (*mPrefs).usePagerSuff() ) {
TQString theSuffix = decodeSuffix( (*mPrefs).pagerSuff() );
if ( name.right( theSuffix.length() ) == theSuffix ) {
- phoneType = KABC::PhoneNumber::Pager;
+ phoneType = TDEABC::PhoneNumber::Pager;
name = stripWhiteSpaces(
name.left( name.length() - theSuffix.length() ) );
goon = false;
@@ -866,8 +866,8 @@ void MobileGui::writeKabc()
for ( it = addressBook->begin(); it != addressBook->end(); it++ ) {
TQString kabName = (*it).familyName();
- KABC::AddressBook::Iterator it3;
- KABC::Addressee::List tmp;
+ TDEABC::AddressBook::Iterator it3;
+ TDEABC::Addressee::List tmp;
bool firstCharIsUnique = true;
unsigned int minLength;
@@ -901,7 +901,7 @@ void MobileGui::writeKabc()
minLength = name.length();
if ( name.left( minLength ) == kabName.left( minLength ) ) {
- (*it).insertPhoneNumber( KABC::PhoneNumber( phoneNumber,
+ (*it).insertPhoneNumber( TDEABC::PhoneNumber( phoneNumber,
phoneType ) );
equivalentEntryFound = true;
@@ -915,7 +915,7 @@ void MobileGui::writeKabc()
//
if ( !equivalentEntryFound ) {
- KABC::Addressee entry;
+ TDEABC::Addressee entry;
TQStringList *fields = new TQStringList;
@@ -936,7 +936,7 @@ void MobileGui::writeKabc()
// Name string contains only one string without comma.
entry.setFamilyName( stripWhiteSpaces( name ) );
- entry.insertPhoneNumber( KABC::PhoneNumber( phoneNumber, phoneType ) );
+ entry.insertPhoneNumber( TDEABC::PhoneNumber( phoneNumber, phoneType ) );
addressBook->insertAddressee( entry );
}