summaryrefslogtreecommitdiffstats
path: root/kaddressbook/xxport/csvimportdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kaddressbook/xxport/csvimportdialog.cpp')
-rw-r--r--kaddressbook/xxport/csvimportdialog.cpp114
1 files changed, 57 insertions, 57 deletions
diff --git a/kaddressbook/xxport/csvimportdialog.cpp b/kaddressbook/xxport/csvimportdialog.cpp
index 93635d25a..091d277f9 100644
--- a/kaddressbook/xxport/csvimportdialog.cpp
+++ b/kaddressbook/xxport/csvimportdialog.cpp
@@ -50,7 +50,7 @@
enum { Local = 0, Guess = 1, Latin1 = 2, Uni = 3, MSBug = 4, Codec = 5 };
-CSVImportDialog::CSVImportDialog( KABC::AddressBook *ab, TQWidget *parent,
+CSVImportDialog::CSVImportDialog( TDEABC::AddressBook *ab, TQWidget *parent,
const char * name )
: KDialogBase( Plain, i18n ( "CSV Import Dialog" ), Ok | Cancel | User1 |
User2, Ok, parent, name, true, true ),
@@ -63,59 +63,59 @@ CSVImportDialog::CSVImportDialog( KABC::AddressBook *ab, TQWidget *parent,
initGUI();
mTypeMap.insert( i18n( "Undefined" ), Undefined );
- mTypeMap.insert( KABC::Addressee::formattedNameLabel(), FormattedName );
- mTypeMap.insert( KABC::Addressee::familyNameLabel(), FamilyName );
- mTypeMap.insert( KABC::Addressee::givenNameLabel(), GivenName );
- mTypeMap.insert( KABC::Addressee::additionalNameLabel(), AdditionalName );
- mTypeMap.insert( KABC::Addressee::prefixLabel(), Prefix );
- mTypeMap.insert( KABC::Addressee::suffixLabel(), Suffix );
- mTypeMap.insert( KABC::Addressee::nickNameLabel(), NickName );
- mTypeMap.insert( KABC::Addressee::birthdayLabel(), Birthday );
-
- mTypeMap.insert( KABC::Addressee::homeAddressStreetLabel(), HomeAddressStreet );
- mTypeMap.insert( KABC::Addressee::homeAddressLocalityLabel(),
+ mTypeMap.insert( TDEABC::Addressee::formattedNameLabel(), FormattedName );
+ mTypeMap.insert( TDEABC::Addressee::familyNameLabel(), FamilyName );
+ mTypeMap.insert( TDEABC::Addressee::givenNameLabel(), GivenName );
+ mTypeMap.insert( TDEABC::Addressee::additionalNameLabel(), AdditionalName );
+ mTypeMap.insert( TDEABC::Addressee::prefixLabel(), Prefix );
+ mTypeMap.insert( TDEABC::Addressee::suffixLabel(), Suffix );
+ mTypeMap.insert( TDEABC::Addressee::nickNameLabel(), NickName );
+ mTypeMap.insert( TDEABC::Addressee::birthdayLabel(), Birthday );
+
+ mTypeMap.insert( TDEABC::Addressee::homeAddressStreetLabel(), HomeAddressStreet );
+ mTypeMap.insert( TDEABC::Addressee::homeAddressLocalityLabel(),
HomeAddressLocality );
- mTypeMap.insert( KABC::Addressee::homeAddressRegionLabel(), HomeAddressRegion );
- mTypeMap.insert( KABC::Addressee::homeAddressPostalCodeLabel(),
+ mTypeMap.insert( TDEABC::Addressee::homeAddressRegionLabel(), HomeAddressRegion );
+ mTypeMap.insert( TDEABC::Addressee::homeAddressPostalCodeLabel(),
HomeAddressPostalCode );
- mTypeMap.insert( KABC::Addressee::homeAddressCountryLabel(),
+ mTypeMap.insert( TDEABC::Addressee::homeAddressCountryLabel(),
HomeAddressCountry );
- mTypeMap.insert( KABC::Addressee::homeAddressLabelLabel(), HomeAddressLabel );
+ mTypeMap.insert( TDEABC::Addressee::homeAddressLabelLabel(), HomeAddressLabel );
- mTypeMap.insert( KABC::Addressee::businessAddressStreetLabel(),
+ mTypeMap.insert( TDEABC::Addressee::businessAddressStreetLabel(),
BusinessAddressStreet );
- mTypeMap.insert( KABC::Addressee::businessAddressLocalityLabel(),
+ mTypeMap.insert( TDEABC::Addressee::businessAddressLocalityLabel(),
BusinessAddressLocality );
- mTypeMap.insert( KABC::Addressee::businessAddressRegionLabel(),
+ mTypeMap.insert( TDEABC::Addressee::businessAddressRegionLabel(),
BusinessAddressRegion );
- mTypeMap.insert( KABC::Addressee::businessAddressPostalCodeLabel(),
+ mTypeMap.insert( TDEABC::Addressee::businessAddressPostalCodeLabel(),
BusinessAddressPostalCode );
- mTypeMap.insert( KABC::Addressee::businessAddressCountryLabel(),
+ mTypeMap.insert( TDEABC::Addressee::businessAddressCountryLabel(),
BusinessAddressCountry );
- mTypeMap.insert( KABC::Addressee::businessAddressLabelLabel(),
+ mTypeMap.insert( TDEABC::Addressee::businessAddressLabelLabel(),
BusinessAddressLabel );
- mTypeMap.insert( KABC::Addressee::homePhoneLabel(), HomePhone );
- mTypeMap.insert( KABC::Addressee::businessPhoneLabel(), BusinessPhone );
- mTypeMap.insert( KABC::Addressee::mobilePhoneLabel(), MobilePhone );
- mTypeMap.insert( KABC::Addressee::homeFaxLabel(), HomeFax );
- mTypeMap.insert( KABC::Addressee::businessFaxLabel(), BusinessFax );
- mTypeMap.insert( KABC::Addressee::carPhoneLabel(), CarPhone );
- mTypeMap.insert( KABC::Addressee::isdnLabel(), Isdn );
- mTypeMap.insert( KABC::Addressee::pagerLabel(), Pager );
- mTypeMap.insert( KABC::Addressee::emailLabel(), Email );
- mTypeMap.insert( KABC::Addressee::mailerLabel(), Mailer );
- mTypeMap.insert( KABC::Addressee::titleLabel(), Title );
- mTypeMap.insert( KABC::Addressee::roleLabel(), Role );
- mTypeMap.insert( KABC::Addressee::organizationLabel(), Organization );
- mTypeMap.insert( KABC::Addressee::noteLabel(), Note );
- mTypeMap.insert( KABC::Addressee::urlLabel(), URL );
+ mTypeMap.insert( TDEABC::Addressee::homePhoneLabel(), HomePhone );
+ mTypeMap.insert( TDEABC::Addressee::businessPhoneLabel(), BusinessPhone );
+ mTypeMap.insert( TDEABC::Addressee::mobilePhoneLabel(), MobilePhone );
+ mTypeMap.insert( TDEABC::Addressee::homeFaxLabel(), HomeFax );
+ mTypeMap.insert( TDEABC::Addressee::businessFaxLabel(), BusinessFax );
+ mTypeMap.insert( TDEABC::Addressee::carPhoneLabel(), CarPhone );
+ mTypeMap.insert( TDEABC::Addressee::isdnLabel(), Isdn );
+ mTypeMap.insert( TDEABC::Addressee::pagerLabel(), Pager );
+ mTypeMap.insert( TDEABC::Addressee::emailLabel(), Email );
+ mTypeMap.insert( TDEABC::Addressee::mailerLabel(), Mailer );
+ mTypeMap.insert( TDEABC::Addressee::titleLabel(), Title );
+ mTypeMap.insert( TDEABC::Addressee::roleLabel(), Role );
+ mTypeMap.insert( TDEABC::Addressee::organizationLabel(), Organization );
+ mTypeMap.insert( TDEABC::Addressee::noteLabel(), Note );
+ mTypeMap.insert( TDEABC::Addressee::urlLabel(), URL );
mCustomCounter = mTypeMap.count();
int count = mCustomCounter;
- KABC::Field::List fields = mAddressBook->fields( KABC::Field::CustomCategory );
- KABC::Field::List::Iterator it;
+ TDEABC::Field::List fields = mAddressBook->fields( TDEABC::Field::CustomCategory );
+ TDEABC::Field::List::Iterator it;
for ( it = fields.begin(); it != fields.end(); ++it, ++count )
mTypeMap.insert( (*it)->label(), count );
@@ -155,10 +155,10 @@ CSVImportDialog::~CSVImportDialog()
mCodecs.clear();
}
-KABC::AddresseeList CSVImportDialog::contacts() const
+TDEABC::AddresseeList CSVImportDialog::contacts() const
{
DateParser dateParser( mDatePatternEdit->text() );
- KABC::AddresseeList contacts;
+ TDEABC::AddresseeList contacts;
KProgressDialog progressDialog( mPage );
progressDialog.setAutoClose( true );
@@ -169,10 +169,10 @@ KABC::AddresseeList CSVImportDialog::contacts() const
kapp->processEvents();
for ( int row = 1; row < mTable->numRows(); ++row ) {
- KABC::Addressee a;
+ TDEABC::Addressee a;
bool emptyRow = true;
- KABC::Address addrHome( KABC::Address::Home );
- KABC::Address addrWork( KABC::Address::Work );
+ TDEABC::Address addrHome( TDEABC::Address::Home );
+ TDEABC::Address addrWork( TDEABC::Address::Work );
for ( int col = 0; col < mTable->numCols(); ++col ) {
TQComboTableItem *item = static_cast<TQComboTableItem*>( mTable->item( 0,
col ) );
@@ -242,51 +242,51 @@ KABC::AddresseeList CSVImportDialog::contacts() const
case HomePhone:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Home );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Home );
a.insertPhoneNumber( number );
}
break;
case BusinessPhone:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Work );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Work );
a.insertPhoneNumber( number );
}
break;
case MobilePhone:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Cell );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Cell );
a.insertPhoneNumber( number );
}
break;
case HomeFax:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Home |
- KABC::PhoneNumber::Fax );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Home |
+ TDEABC::PhoneNumber::Fax );
a.insertPhoneNumber( number );
}
break;
case BusinessFax:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Work |
- KABC::PhoneNumber::Fax );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Work |
+ TDEABC::PhoneNumber::Fax );
a.insertPhoneNumber( number );
}
break;
case CarPhone:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Car );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Car );
a.insertPhoneNumber( number );
}
break;
case Isdn:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Isdn );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Isdn );
a.insertPhoneNumber( number );
}
break;
case Pager:
if ( !value.isEmpty() ) {
- KABC::PhoneNumber number( value, KABC::PhoneNumber::Pager );
+ TDEABC::PhoneNumber number( value, TDEABC::PhoneNumber::Pager );
a.insertPhoneNumber( number );
}
break;
@@ -329,8 +329,8 @@ KABC::AddresseeList CSVImportDialog::contacts() const
addrWork.setLabel( value );
break;
default:
- KABC::Field::List fields = mAddressBook->fields( KABC::Field::CustomCategory );
- KABC::Field::List::Iterator it;
+ TDEABC::Field::List fields = mAddressBook->fields( TDEABC::Field::CustomCategory );
+ TDEABC::Field::List::Iterator it;
int counter = 0;
for ( it = fields.begin(); it != fields.end(); ++it ) {
@@ -347,7 +347,7 @@ KABC::AddresseeList CSVImportDialog::contacts() const
kapp->processEvents();
if ( progressDialog.wasCancelled() )
- return KABC::AddresseeList();
+ return TDEABC::AddresseeList();
progressDialog.progressBar()->advance( 1 );