summaryrefslogtreecommitdiffstats
path: root/korganizer/kocore.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 10:52:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 10:52:27 -0600
commitb440a9c608596cd88efdb3bfa4661c5e37efbe4b (patch)
tree83fe0c80cbb2bbcfefac383520869fe3a64e88f1 /korganizer/kocore.cpp
parent6dea9442526e5ebacf313ad387c7dff4b87a53bf (diff)
downloadtdepim-b440a9c608596cd88efdb3bfa4661c5e37efbe4b.tar.gz
tdepim-b440a9c608596cd88efdb3bfa4661c5e37efbe4b.zip
Rename KLock and KTrader to avoid conflicts with KDE4
Diffstat (limited to 'korganizer/kocore.cpp')
-rw-r--r--korganizer/kocore.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/korganizer/kocore.cpp b/korganizer/kocore.cpp
index ace67c185..0b1d39dbe 100644
--- a/korganizer/kocore.cpp
+++ b/korganizer/kocore.cpp
@@ -62,7 +62,7 @@ KOCore::~KOCore()
mSelf = 0;
}
-KTrader::OfferList KOCore::availablePlugins( const TQString &type, int version )
+TDETrader::OfferList KOCore::availablePlugins( const TQString &type, int version )
{
TQString constraint;
if ( version >= 0 ) {
@@ -70,28 +70,28 @@ KTrader::OfferList KOCore::availablePlugins( const TQString &type, int version )
.arg( TQString::number( version ) );
}
- return KTrader::self()->query( type, constraint );
+ return TDETrader::self()->query( type, constraint );
}
-KTrader::OfferList KOCore::availablePlugins()
+TDETrader::OfferList KOCore::availablePlugins()
{
return availablePlugins( KOrg::Plugin::serviceType(),
KOrg::Plugin::interfaceVersion() );
}
-KTrader::OfferList KOCore::availableCalendarDecorations()
+TDETrader::OfferList KOCore::availableCalendarDecorations()
{
return availablePlugins( KOrg::CalendarDecoration::serviceType(),
KOrg::CalendarDecoration::interfaceVersion() );
}
-KTrader::OfferList KOCore::availableParts()
+TDETrader::OfferList KOCore::availableParts()
{
return availablePlugins( KOrg::Part::serviceType(),
KOrg::Part::interfaceVersion() );
}
-KTrader::OfferList KOCore::availablePrintPlugins()
+TDETrader::OfferList KOCore::availablePrintPlugins()
{
return availablePlugins( KOrg::PrintPlugin::serviceType(),
KOrg::PrintPlugin::interfaceVersion() );
@@ -126,8 +126,8 @@ KOrg::Plugin *KOCore::loadPlugin( KService::Ptr service )
KOrg::Plugin *KOCore::loadPlugin( const TQString &name )
{
- KTrader::OfferList list = availablePlugins();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList list = availablePlugins();
+ TDETrader::OfferList::ConstIterator it;
for( it = list.begin(); it != list.end(); ++it ) {
if ( (*it)->desktopEntryName() == name ) {
return loadPlugin( *it );
@@ -160,8 +160,8 @@ KOrg::CalendarDecoration *KOCore::loadCalendarDecoration(KService::Ptr service)
KOrg::CalendarDecoration *KOCore::loadCalendarDecoration( const TQString &name )
{
- KTrader::OfferList list = availableCalendarDecorations();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList list = availableCalendarDecorations();
+ TDETrader::OfferList::ConstIterator it;
for( it = list.begin(); it != list.end(); ++it ) {
if ( (*it)->desktopEntryName() == name ) {
return loadCalendarDecoration( *it );
@@ -246,8 +246,8 @@ KXMLGUIClient* KOCore::xmlguiClient( TQWidget *wdg ) const
KOrg::Part *KOCore::loadPart( const TQString &name, KOrg::MainWindow *parent )
{
- KTrader::OfferList list = availableParts();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList list = availableParts();
+ TDETrader::OfferList::ConstIterator it;
for( it = list.begin(); it != list.end(); ++it ) {
if ( (*it)->desktopEntryName() == name ) {
return loadPart( *it, parent );
@@ -258,8 +258,8 @@ KOrg::Part *KOCore::loadPart( const TQString &name, KOrg::MainWindow *parent )
KOrg::PrintPlugin *KOCore::loadPrintPlugin( const TQString &name )
{
- KTrader::OfferList list = availablePrintPlugins();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList list = availablePrintPlugins();
+ TDETrader::OfferList::ConstIterator it;
for( it = list.begin(); it != list.end(); ++it ) {
if ( (*it)->desktopEntryName() == name ) {
return loadPrintPlugin( *it );
@@ -274,8 +274,8 @@ KOrg::CalendarDecoration::List KOCore::calendarDecorations()
TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins;
mCalendarDecorations.clear();
- KTrader::OfferList plugins = availableCalendarDecorations();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList plugins = availableCalendarDecorations();
+ TDETrader::OfferList::ConstIterator it;
for( it = plugins.begin(); it != plugins.end(); ++it ) {
if ( (*it)->hasServiceType("Calendar/Decoration") ) {
TQString name = (*it)->desktopEntryName();
@@ -297,8 +297,8 @@ KOrg::Part::List KOCore::loadParts( KOrg::MainWindow *parent )
TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins;
- KTrader::OfferList plugins = availableParts();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList plugins = availableParts();
+ TDETrader::OfferList::ConstIterator it;
for( it = plugins.begin(); it != plugins.end(); ++it ) {
if ( selectedPlugins.find( (*it)->desktopEntryName() ) !=
selectedPlugins.end() ) {
@@ -323,8 +323,8 @@ KOrg::PrintPlugin::List KOCore::loadPrintPlugins()
TQStringList selectedPlugins = KOPrefs::instance()->mSelectedPlugins;
- KTrader::OfferList plugins = availablePrintPlugins();
- KTrader::OfferList::ConstIterator it;
+ TDETrader::OfferList plugins = availablePrintPlugins();
+ TDETrader::OfferList::ConstIterator it;
for( it = plugins.begin(); it != plugins.end(); ++it ) {
if ( selectedPlugins.find( (*it)->desktopEntryName() ) !=
selectedPlugins.end() ) {