summaryrefslogtreecommitdiffstats
path: root/tdeabc/vcardparser
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-20 16:26:45 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-20 16:26:45 -0600
commit45f3927b0ffec2599bc0e1ce361c5386474a85f4 (patch)
tree29e1842fe4d93f4e99481385a771e8bef061158b /tdeabc/vcardparser
parent04105ef07304a9358e87eff0cb1a6d6f2a725192 (diff)
downloadtdelibs-45f3927b0ffec2599bc0e1ce361c5386474a85f4.tar.gz
tdelibs-45f3927b0ffec2599bc0e1ce361c5386474a85f4.zip
Rename KABC namespace
Diffstat (limited to 'tdeabc/vcardparser')
-rw-r--r--tdeabc/vcardparser/testread.cpp6
-rw-r--r--tdeabc/vcardparser/testread2.cpp2
-rw-r--r--tdeabc/vcardparser/testutils.cpp2
-rw-r--r--tdeabc/vcardparser/testutils.h8
-rw-r--r--tdeabc/vcardparser/testwrite.cpp28
-rw-r--r--tdeabc/vcardparser/vcard.cpp2
-rw-r--r--tdeabc/vcardparser/vcard.h2
-rw-r--r--tdeabc/vcardparser/vcardline.cpp2
-rw-r--r--tdeabc/vcardparser/vcardline.h2
-rw-r--r--tdeabc/vcardparser/vcardparser.cpp2
-rw-r--r--tdeabc/vcardparser/vcardparser.h2
11 files changed, 29 insertions, 29 deletions
diff --git a/tdeabc/vcardparser/testread.cpp b/tdeabc/vcardparser/testread.cpp
index fd3524b56..284526abd 100644
--- a/tdeabc/vcardparser/testread.cpp
+++ b/tdeabc/vcardparser/testread.cpp
@@ -74,11 +74,11 @@ int main( int argc, char **argv )
text = s.read();
file.close();
- KABC::VCardConverter converter;
- KABC::Addressee::List list = converter.parseVCards( text );
+ TDEABC::VCardConverter converter;
+ TDEABC::Addressee::List list = converter.parseVCards( text );
if ( args->isSet( "vcard21" ) ) {
- text = converter.createVCards( list, KABC::VCardConverter::v2_1 ); // uses version 2.1
+ text = converter.createVCards( list, TDEABC::VCardConverter::v2_1 ); // uses version 2.1
} else {
text = converter.createVCards( list ); // uses version 3.0
}
diff --git a/tdeabc/vcardparser/testread2.cpp b/tdeabc/vcardparser/testread2.cpp
index ea278602c..bd0922670 100644
--- a/tdeabc/vcardparser/testread2.cpp
+++ b/tdeabc/vcardparser/testread2.cpp
@@ -3,7 +3,7 @@
#include <vcardconverter.h>
#include <kdebug.h>
-using namespace KABC;
+using namespace TDEABC;
int
main()
diff --git a/tdeabc/vcardparser/testutils.cpp b/tdeabc/vcardparser/testutils.cpp
index 62d1b4121..6547445e5 100644
--- a/tdeabc/vcardparser/testutils.cpp
+++ b/tdeabc/vcardparser/testutils.cpp
@@ -2,7 +2,7 @@
#include <tdeabc/addressee.h>
#include <tqfile.h>
-using namespace KABC;
+using namespace TDEABC;
Addressee
vcard1()
diff --git a/tdeabc/vcardparser/testutils.h b/tdeabc/vcardparser/testutils.h
index c8218b7ba..830f94332 100644
--- a/tdeabc/vcardparser/testutils.h
+++ b/tdeabc/vcardparser/testutils.h
@@ -4,10 +4,10 @@
#include <tdeabc/addressee.h>
#include <tqstring.h>
-KABC::Addressee vcard1();
-KABC::Addressee vcard2();
-KABC::Addressee vcard3();
-KABC::Addressee::List vCardsAsAddresseeList();
+TDEABC::Addressee vcard1();
+TDEABC::Addressee vcard2();
+TDEABC::Addressee vcard3();
+TDEABC::Addressee::List vCardsAsAddresseeList();
TQString vCardAsText( const TQString& location );
TQString vCardsAsText();
diff --git a/tdeabc/vcardparser/testwrite.cpp b/tdeabc/vcardparser/testwrite.cpp
index e40ffe4d0..c7df6df08 100644
--- a/tdeabc/vcardparser/testwrite.cpp
+++ b/tdeabc/vcardparser/testwrite.cpp
@@ -42,15 +42,15 @@ int main( int argc, char **argv )
TDEApplication app( false, false );
- KABC::Addressee addressee;
+ TDEABC::Addressee addressee;
addressee.setNameFromString( "Mr. Tobias Koenig Jr." );
addressee.setNickName( "tokoe" );
addressee.setBirthday( TQDate( 1982, 7, 19 ) );
addressee.setMailer( "mutt1.2" );
- addressee.setTimeZone( KABC::TimeZone( +2 ) );
+ addressee.setTimeZone( TDEABC::TimeZone( +2 ) );
- KABC::Geo geo;
+ TDEABC::Geo geo;
geo.setLatitude( 30 );
geo.setLongitude( 51 );
addressee.setGeo( geo );
@@ -63,17 +63,17 @@ int main( int argc, char **argv )
addressee.setRevision( TQDateTime::currentDateTime() );
addressee.setSortString( "koenig" );
addressee.setUrl( KURL( "http://wgess16.dyndns.org") );
- addressee.setSecrecy( KABC::Secrecy( KABC::Secrecy::Confidential ) );
+ addressee.setSecrecy( TDEABC::Secrecy( TDEABC::Secrecy::Confidential ) );
/*
TQImage img;
img.load( "testimg.png", "PNG" );
- KABC::Picture photo;
+ TDEABC::Picture photo;
photo.setData( img );
addressee.setPhoto( photo );
TQImage img2;
img2.load( "testimg.png", "PNG" );
- KABC::Picture logo;
+ TDEABC::Picture logo;
logo.setData( img2 );
addressee.setLogo( logo );
@@ -81,26 +81,26 @@ int main( int argc, char **argv )
soundFile.open( IO_ReadOnly );
TQByteArray data = soundFile.readAll();
soundFile.close();
- KABC::Sound sound;
+ TDEABC::Sound sound;
sound.setData( data );
addressee.setSound( sound );
*/
addressee.insertEmail( "tokoe@kde.org", true );
addressee.insertEmail( "tokoe82@yahoo.de", true );
- KABC::PhoneNumber phone1( "3541523475", KABC::PhoneNumber::Pref | KABC::PhoneNumber::Home );
- KABC::PhoneNumber phone2( "+46745673475", KABC::PhoneNumber::Work );
+ TDEABC::PhoneNumber phone1( "3541523475", TDEABC::PhoneNumber::Pref | TDEABC::PhoneNumber::Home );
+ TDEABC::PhoneNumber phone2( "+46745673475", TDEABC::PhoneNumber::Work );
addressee.insertPhoneNumber( phone1 );
addressee.insertPhoneNumber( phone2 );
- KABC::Key key( "secret key", KABC::Key::X509 );
+ TDEABC::Key key( "secret key", TDEABC::Key::X509 );
addressee.insertKey( key );
TQStringList categories;
categories << "Friends" << "School" << "KDE";
addressee.setCategories( categories );
- KABC::Address a( KABC::Address::Work | KABC::Address::Postal | KABC::Address::Parcel );
+ TDEABC::Address a( TDEABC::Address::Work | TDEABC::Address::Postal | TDEABC::Address::Parcel );
a.setStreet( "6544 Battleford Drive" );
a.setLocality( "Raleigh" );
a.setRegion( "NC" );
@@ -112,14 +112,14 @@ int main( int argc, char **argv )
addressee.insertCustom( "2hsdf", "ertuer", "iurt" );
addressee.insertCustom( "3hsdf", "ertuer", "iurt" );
- KABC::Addressee::List list;
+ TDEABC::Addressee::List list;
for ( int i = 0; i < 1000; ++i ) {
- KABC::Addressee addr = addressee;
+ TDEABC::Addressee addr = addressee;
addr.setUid( TQString::number( i ) );
list.append( addr );
}
- KABC::VCardConverter converter;
+ TDEABC::VCardConverter converter;
TQString txt = converter.createVCards( list );
TQFile file( "out.vcf" );
diff --git a/tdeabc/vcardparser/vcard.cpp b/tdeabc/vcardparser/vcard.cpp
index 30a8e1c49..f6841cbd9 100644
--- a/tdeabc/vcardparser/vcard.cpp
+++ b/tdeabc/vcardparser/vcard.cpp
@@ -20,7 +20,7 @@
#include "vcard.h"
-using namespace KABC;
+using namespace TDEABC;
VCard::VCard()
{
diff --git a/tdeabc/vcardparser/vcard.h b/tdeabc/vcardparser/vcard.h
index 6afeeda26..ad50b8657 100644
--- a/tdeabc/vcardparser/vcard.h
+++ b/tdeabc/vcardparser/vcard.h
@@ -26,7 +26,7 @@
#include <tqstringlist.h>
#include <tqvaluelist.h>
-namespace KABC {
+namespace TDEABC {
class VCard
{
diff --git a/tdeabc/vcardparser/vcardline.cpp b/tdeabc/vcardparser/vcardline.cpp
index 6680cf7d0..22d7f7e52 100644
--- a/tdeabc/vcardparser/vcardline.cpp
+++ b/tdeabc/vcardparser/vcardline.cpp
@@ -20,7 +20,7 @@
#include "vcardline.h"
-using namespace KABC;
+using namespace TDEABC;
class VCardLine::VCardLinePrivate
{
diff --git a/tdeabc/vcardparser/vcardline.h b/tdeabc/vcardparser/vcardline.h
index 92fe743f6..78ce2a411 100644
--- a/tdeabc/vcardparser/vcardline.h
+++ b/tdeabc/vcardparser/vcardline.h
@@ -27,7 +27,7 @@
#include <tqmap.h>
#include <tqstring.h>
-namespace KABC {
+namespace TDEABC {
class VCardLine
{
diff --git a/tdeabc/vcardparser/vcardparser.cpp b/tdeabc/vcardparser/vcardparser.cpp
index aed9ebd39..3cc38f5c8 100644
--- a/tdeabc/vcardparser/vcardparser.cpp
+++ b/tdeabc/vcardparser/vcardparser.cpp
@@ -27,7 +27,7 @@
#define FOLD_WIDTH 75
-using namespace KABC;
+using namespace TDEABC;
static TQString backslash( "\\\\" );
static TQString comma( "\\," );
diff --git a/tdeabc/vcardparser/vcardparser.h b/tdeabc/vcardparser/vcardparser.h
index da5fdd46e..fc17d116b 100644
--- a/tdeabc/vcardparser/vcardparser.h
+++ b/tdeabc/vcardparser/vcardparser.h
@@ -23,7 +23,7 @@
#include "vcard.h"
-namespace KABC {
+namespace TDEABC {
class VCardParser
{