diff options
Diffstat (limited to 'tderesources/birthdays')
-rw-r--r-- | tderesources/birthdays/resourcekabc.cpp | 8 | ||||
-rw-r--r-- | tderesources/birthdays/resourcekabc.h | 10 | ||||
-rw-r--r-- | tderesources/birthdays/resourcekabcconfig.cpp | 16 | ||||
-rw-r--r-- | tderesources/birthdays/resourcekabcconfig.h | 6 |
4 files changed, 20 insertions, 20 deletions
diff --git a/tderesources/birthdays/resourcekabc.cpp b/tderesources/birthdays/resourcekabc.cpp index 6b8d31705..68ef63390 100644 --- a/tderesources/birthdays/resourcekabc.cpp +++ b/tderesources/birthdays/resourcekabc.cpp @@ -62,11 +62,11 @@ extern "C" { TDEGlobal::locale()->insertCatalogue( "kres_birthday" ); TDEGlobal::locale()->insertCatalogue( "libkcal" ); - return new KRES::PluginFactory<ResourceKABC,ResourceKABCConfig>(); + return new KRES::PluginFactory<ResourceTDEABC,ResourceTDEABCConfig>(); } } -ResourceTDEABC::ResourceKABC( const TDEConfig* config ) +ResourceTDEABC::ResourceTDEABC( const TDEConfig* config ) : ResourceCalendar( config ), mCalendar( TQString::fromLatin1( "UTC" ) ), mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false ) { @@ -79,14 +79,14 @@ ResourceTDEABC::ResourceKABC( const TDEConfig* config ) init(); } -ResourceTDEABC::ResourceKABC() +ResourceTDEABC::ResourceTDEABC() : ResourceCalendar( 0 ), mCalendar( TQString::fromLatin1( "UTC" ) ), mAlarmDays( 0 ), mAlarm( true ), mUseCategories( false ) { init(); } -ResourceTDEABC::~ResourceKABC() +ResourceTDEABC::~ResourceTDEABC() { delete mLock; } diff --git a/tderesources/birthdays/resourcekabc.h b/tderesources/birthdays/resourcekabc.h index 21cd66a4b..bea4b4637 100644 --- a/tderesources/birthdays/resourcekabc.h +++ b/tderesources/birthdays/resourcekabc.h @@ -45,17 +45,17 @@ namespace KCal { /** Resource providing birthdays and anniversaries as events. */ -class KDE_EXPORT ResourceKABC : public ResourceCalendar +class KDE_EXPORT ResourceTDEABC : public ResourceCalendar { Q_OBJECT - friend class ResourceKABCConfig; + friend class ResourceTDEABCConfig; public: - ResourceKABC( const TDEConfig * ); - ResourceKABC( ); - virtual ~ResourceKABC(); + ResourceTDEABC( const TDEConfig * ); + ResourceTDEABC( ); + virtual ~ResourceTDEABC(); void readConfig( const TDEConfig *config ); void writeConfig( TDEConfig* config ); diff --git a/tderesources/birthdays/resourcekabcconfig.cpp b/tderesources/birthdays/resourcekabcconfig.cpp index 5bb459091..6bead14b5 100644 --- a/tderesources/birthdays/resourcekabcconfig.cpp +++ b/tderesources/birthdays/resourcekabcconfig.cpp @@ -33,7 +33,7 @@ using namespace KCal; -ResourceKABCConfig::ResourceKABCConfig( TQWidget* parent, const char* name ) +ResourceTDEABCConfig::ResourceTDEABCConfig( TQWidget* parent, const char* name ) : KRES::ConfigWidget( parent, name ) { TQGridLayout *topLayout = new TQGridLayout( this, 5, 1, 11, 6 ); @@ -78,9 +78,9 @@ ResourceKABCConfig::ResourceKABCConfig( TQWidget* parent, const char* name ) new TQCheckListItem( mCategoryView, *it, TQCheckListItem::CheckBox ); } -void ResourceKABCConfig::loadSettings( KRES::Resource *resource ) +void ResourceTDEABCConfig::loadSettings( KRES::Resource *resource ) { - ResourceKABC *res = static_cast<ResourceKABC *>( resource ); + ResourceTDEABC *res = static_cast<ResourceTDEABC *>( resource ); if ( res ) { mAlarm->setChecked( res->alarm() ); TQString days; @@ -101,13 +101,13 @@ void ResourceKABCConfig::loadSettings( KRES::Resource *resource ) mUseCategories->setChecked( res->useCategories() ); } else { - kdDebug(5700) << "ERROR: ResourceKABCConfig::loadSettings(): no ResourceKABC, cast failed" << endl; + kdDebug(5700) << "ERROR: ResourceTDEABCConfig::loadSettings(): no ResourceTDEABC, cast failed" << endl; } } -void ResourceKABCConfig::saveSettings( KRES::Resource *resource ) +void ResourceTDEABCConfig::saveSettings( KRES::Resource *resource ) { - ResourceKABC *res = static_cast<ResourceKABC *>( resource ); + ResourceTDEABC *res = static_cast<ResourceTDEABC *>( resource ); if ( res ) { res->setAlarm( mAlarm->isChecked() ); res->setAlarmDays( mAlarmTimeEdit->text().toInt() ); @@ -122,11 +122,11 @@ void ResourceKABCConfig::saveSettings( KRES::Resource *resource ) res->setCategories( categories ); res->setUseCategories( mUseCategories->isChecked() ); } else { - kdDebug(5700) << "ERROR: ResourceKABCConfig::saveSettings(): no ResourceKABC, cast failed" << endl; + kdDebug(5700) << "ERROR: ResourceTDEABCConfig::saveSettings(): no ResourceTDEABC, cast failed" << endl; } } -void ResourceKABCConfig::alarmClicked() +void ResourceTDEABCConfig::alarmClicked() { mAlarmTimeEdit->setDisabled(!mAlarm->isChecked()); mALabel->setDisabled(!mAlarm->isChecked()); diff --git a/tderesources/birthdays/resourcekabcconfig.h b/tderesources/birthdays/resourcekabcconfig.h index 41cf1b88a..c62037c2a 100644 --- a/tderesources/birthdays/resourcekabcconfig.h +++ b/tderesources/birthdays/resourcekabcconfig.h @@ -36,14 +36,14 @@ namespace KCal { /** Configuration widget for birtday/anniversaries resource. - @see ResourceKABC + @see ResourceTDEABC */ -class ResourceKABCConfig : public KRES::ConfigWidget +class ResourceTDEABCConfig : public KRES::ConfigWidget { Q_OBJECT public: - ResourceKABCConfig( TQWidget* parent = 0, const char* name = 0 ); + ResourceTDEABCConfig( TQWidget* parent = 0, const char* name = 0 ); public slots: virtual void loadSettings( KRES::Resource *resource); |