diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-20 16:27:27 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-20 16:27:27 -0600 |
commit | 94273bcb909fac42ef9427e3d8a614cab8c29c66 (patch) | |
tree | 91b99186971ecb475db3ca41b1b12df24029e389 /tderesources/birthdays | |
parent | 41b65d69967ad0d35f8b4dd37ac63aad1cebdae9 (diff) | |
download | tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.tar.gz tdepim-94273bcb909fac42ef9427e3d8a614cab8c29c66.zip |
Rename KABC namespace
Diffstat (limited to 'tderesources/birthdays')
-rw-r--r-- | tderesources/birthdays/resourcekabc.cpp | 110 | ||||
-rw-r--r-- | tderesources/birthdays/resourcekabc.h | 6 |
2 files changed, 58 insertions, 58 deletions
diff --git a/tderesources/birthdays/resourcekabc.cpp b/tderesources/birthdays/resourcekabc.cpp index d6869bbe5..6b8d31705 100644 --- a/tderesources/birthdays/resourcekabc.cpp +++ b/tderesources/birthdays/resourcekabc.cpp @@ -66,7 +66,7 @@ extern "C" } } -ResourceKABC::ResourceKABC( const TDEConfig* config ) +ResourceTDEABC::ResourceKABC( const TDEConfig* config ) : ResourceCalendar( config ), mCalendar( TQString::fromLatin1( "UTC" ) ), mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false ) { @@ -79,30 +79,30 @@ ResourceKABC::ResourceKABC( const TDEConfig* config ) init(); } -ResourceKABC::ResourceKABC() +ResourceTDEABC::ResourceKABC() : ResourceCalendar( 0 ), mCalendar( TQString::fromLatin1( "UTC" ) ), mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false ) { init(); } -ResourceKABC::~ResourceKABC() +ResourceTDEABC::~ResourceKABC() { delete mLock; } -void ResourceKABC::init() +void ResourceTDEABC::init() { setType( "birthdays" ); setReadOnly( true ); - mLock = new KABC::LockNull( false ); + mLock = new TDEABC::LockNull( false ); mAddressbook = 0; } -void ResourceKABC::readConfig( const TDEConfig *config ) +void ResourceTDEABC::readConfig( const TDEConfig *config ) { mAlarmDays = config->readNumEntry( "AlarmDays", 0 ); mAlarm = config->readBoolEntry( "Alarm", true ); @@ -110,7 +110,7 @@ void ResourceKABC::readConfig( const TDEConfig *config ) mUseCategories = config->readBoolEntry( "UseCategories", false ); } -void ResourceKABC::writeConfig( TDEConfig *config ) +void ResourceTDEABC::writeConfig( TDEConfig *config ) { ResourceCalendar::writeConfig( config ); config->writeEntry( "AlarmDays", mAlarmDays ); @@ -120,19 +120,19 @@ void ResourceKABC::writeConfig( TDEConfig *config ) } -bool ResourceKABC::doOpen() +bool ResourceTDEABC::doOpen() { - kdDebug(5800) << "ResourceKABC::doOpen()" << endl; + kdDebug(5800) << "ResourceTDEABC::doOpen()" << endl; - mAddressbook = KABC::StdAddressBook::self( true ); + mAddressbook = TDEABC::StdAddressBook::self( true ); connect( mAddressbook, TQT_SIGNAL(addressBookChanged(AddressBook*)), TQT_SLOT( reload() ) ); return true; } -bool ResourceKABC::doLoad() +bool ResourceTDEABC::doLoad() { - kdDebug(5800) << "ResourceKABC::load()" << endl; + kdDebug(5800) << "ResourceTDEABC::load()" << endl; mCalendar.close(); @@ -140,11 +140,11 @@ bool ResourceKABC::doLoad() TQString summary; TQStringList::ConstIterator strIt; const TQStringList::ConstIterator endStrIt = mCategories.end(); - KABC::Addressee::List anniversaries; - KABC::Addressee::List::Iterator addrIt; + TDEABC::Addressee::List anniversaries; + TDEABC::Addressee::List::Iterator addrIt; - KABC::AddressBook::Iterator it; - const KABC::AddressBook::Iterator endIt = mAddressbook->end(); + TDEABC::AddressBook::Iterator it; + const TDEABC::AddressBook::Iterator endIt = mAddressbook->end(); for ( it = mAddressbook->begin(); it != endIt; ++it ) { if ( mUseCategories ) { @@ -185,7 +185,7 @@ bool ResourceKABC::doLoad() ev->setCustomProperty("KABC", "UID-1", uid_1 ); ev->setCustomProperty("KABC", "NAME-1", name_1 ); ev->setCustomProperty("KABC", "EMAIL-1", email_1 ); - kdDebug(5800) << "ResourceKABC::doLoad: uid:" << uid_1 << " name: " << name_1 + kdDebug(5800) << "ResourceTDEABC::doLoad: uid:" << uid_1 << " name: " << name_1 << " email: " << email_1 << endl; ev->setSummary(summary); @@ -267,7 +267,7 @@ bool ResourceKABC::doLoad() tname.remove( 0, 1 ); tname.truncate( tname.length() - 1 ); } - KABC::Addressee spouse; + TDEABC::Addressee spouse; spouse.setNameFromString( tname ); name_2 = spouse.nickName(); uid_2 = spouse.uid(); @@ -334,193 +334,193 @@ bool ResourceKABC::doLoad() return true; } -void ResourceKABC::setAlarm( bool a ) +void ResourceTDEABC::setAlarm( bool a ) { mAlarm = a; } -bool ResourceKABC::alarm() +bool ResourceTDEABC::alarm() { return mAlarm; } -void ResourceKABC::setAlarmDays( int ad ) +void ResourceTDEABC::setAlarmDays( int ad ) { mAlarmDays = ad; } -int ResourceKABC::alarmDays() +int ResourceTDEABC::alarmDays() { return mAlarmDays; } -void ResourceKABC::setCategories( const TQStringList &categories ) +void ResourceTDEABC::setCategories( const TQStringList &categories ) { mCategories = categories; } -TQStringList ResourceKABC::categories() const +TQStringList ResourceTDEABC::categories() const { return mCategories; } -void ResourceKABC::setUseCategories( bool useCategories ) +void ResourceTDEABC::setUseCategories( bool useCategories ) { mUseCategories = useCategories; } -bool ResourceKABC::useCategories() const +bool ResourceTDEABC::useCategories() const { return mUseCategories; } -bool ResourceKABC::doSave() +bool ResourceTDEABC::doSave() { // is always read only! return true; } -bool ResourceKABC::isSaving() +bool ResourceTDEABC::isSaving() { return false; } -KABC::Lock *ResourceKABC::lock() +TDEABC::Lock *ResourceTDEABC::lock() { return mLock; } -bool ResourceKABC::addEvent( Event * ) +bool ResourceTDEABC::addEvent( Event * ) { return false; } -bool ResourceKABC::addEvent( Event *, const TQString & ) +bool ResourceTDEABC::addEvent( Event *, const TQString & ) { return false; } -bool ResourceKABC::deleteEvent( Event * ) +bool ResourceTDEABC::deleteEvent( Event * ) { return false; } -Event *ResourceKABC::event( const TQString &uid ) +Event *ResourceTDEABC::event( const TQString &uid ) { return mCalendar.event( uid ); } -Event::List ResourceKABC::rawEventsForDate( const TQDate &date, +Event::List ResourceTDEABC::rawEventsForDate( const TQDate &date, EventSortField sortField, SortDirection sortDirection ) { return mCalendar.rawEventsForDate( date, sortField, sortDirection ); } -Event::List ResourceKABC::rawEvents( const TQDate &start, const TQDate &end, +Event::List ResourceTDEABC::rawEvents( const TQDate &start, const TQDate &end, bool inclusive ) { return mCalendar.rawEvents( start, end, inclusive ); } -Event::List ResourceKABC::rawEventsForDate(const TQDateTime &qdt) +Event::List ResourceTDEABC::rawEventsForDate(const TQDateTime &qdt) { return mCalendar.rawEventsForDate( qdt.date() ); } -Event::List ResourceKABC::rawEvents( EventSortField sortField, SortDirection sortDirection ) +Event::List ResourceTDEABC::rawEvents( EventSortField sortField, SortDirection sortDirection ) { return mCalendar.rawEvents( sortField, sortDirection ); } -bool ResourceKABC::addTodo( Todo * ) +bool ResourceTDEABC::addTodo( Todo * ) { return false; } -bool ResourceKABC::addTodo( Todo *, const TQString & ) +bool ResourceTDEABC::addTodo( Todo *, const TQString & ) { return false; } -bool ResourceKABC::deleteTodo( Todo * ) +bool ResourceTDEABC::deleteTodo( Todo * ) { return false; } -Todo::List ResourceKABC::rawTodos( TodoSortField sortField, SortDirection sortDirection ) +Todo::List ResourceTDEABC::rawTodos( TodoSortField sortField, SortDirection sortDirection ) { return mCalendar.rawTodos( sortField, sortDirection ); } -Todo *ResourceKABC::todo( const TQString &uid ) +Todo *ResourceTDEABC::todo( const TQString &uid ) { return mCalendar.todo( uid ); } -Todo::List ResourceKABC::rawTodosForDate( const TQDate &date ) +Todo::List ResourceTDEABC::rawTodosForDate( const TQDate &date ) { return mCalendar.rawTodosForDate( date ); } -bool ResourceKABC::addJournal( Journal * ) +bool ResourceTDEABC::addJournal( Journal * ) { return false; } -bool ResourceKABC::addJournal( Journal *, const TQString & ) +bool ResourceTDEABC::addJournal( Journal *, const TQString & ) { return false; } -bool ResourceKABC::deleteJournal( Journal * ) +bool ResourceTDEABC::deleteJournal( Journal * ) { return false; } -Journal *ResourceKABC::journal(const TQString &uid) +Journal *ResourceTDEABC::journal(const TQString &uid) { return mCalendar.journal( uid ); } -Journal::List ResourceKABC::rawJournals( JournalSortField sortField, SortDirection sortDirection ) +Journal::List ResourceTDEABC::rawJournals( JournalSortField sortField, SortDirection sortDirection ) { return mCalendar.rawJournals( sortField, sortDirection ); } -Journal::List ResourceKABC::rawJournalsForDate( const TQDate &date ) +Journal::List ResourceTDEABC::rawJournalsForDate( const TQDate &date ) { return mCalendar.rawJournalsForDate( date ); } -Alarm::List ResourceKABC::alarmsTo( const TQDateTime &to ) +Alarm::List ResourceTDEABC::alarmsTo( const TQDateTime &to ) { return mCalendar.alarmsTo( to ); } -Alarm::List ResourceKABC::alarms( const TQDateTime &from, const TQDateTime &to ) +Alarm::List ResourceTDEABC::alarms( const TQDateTime &from, const TQDateTime &to ) { -// kdDebug(5800) << "ResourceKABC::alarms(" << from.toString() << " - " << to.toString() << ")\n"; +// kdDebug(5800) << "ResourceTDEABC::alarms(" << from.toString() << " - " << to.toString() << ")\n"; return mCalendar.alarms( from, to ); } -void ResourceKABC::dump() const +void ResourceTDEABC::dump() const { ResourceCalendar::dump(); } -void ResourceKABC::reload() +void ResourceTDEABC::reload() { load(); emit resourceChanged( this ); } -void ResourceKABC::setTimeZoneId( const TQString& tzid ) +void ResourceTDEABC::setTimeZoneId( const TQString& tzid ) { mCalendar.setTimeZoneId( tzid ); } diff --git a/tderesources/birthdays/resourcekabc.h b/tderesources/birthdays/resourcekabc.h index 42bb50412..21cd66a4b 100644 --- a/tderesources/birthdays/resourcekabc.h +++ b/tderesources/birthdays/resourcekabc.h @@ -74,7 +74,7 @@ class KDE_EXPORT ResourceKABC : public ResourceCalendar bool isSaving(); - KABC::Lock *lock(); + TDEABC::Lock *lock(); /** Add Event to calendar. */ KDE_DEPRECATED bool addEvent(Event *event); @@ -172,9 +172,9 @@ class KDE_EXPORT ResourceKABC : public ResourceCalendar bool mAlarm; TQStringList mCategories; bool mUseCategories; - KABC::AddressBook *mAddressbook; + TDEABC::AddressBook *mAddressbook; - KABC::Lock *mLock; + TDEABC::Lock *mLock; class Private; Private *d; |