summaryrefslogtreecommitdiff
path: root/core
Unidiff
Diffstat (limited to 'core') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/today/changelog5
-rw-r--r--core/pim/today/today.cpp7
2 files changed, 10 insertions, 2 deletions
diff --git a/core/pim/today/changelog b/core/pim/today/changelog
index ba3cdbc..ea618c8 100644
--- a/core/pim/today/changelog
+++ b/core/pim/today/changelog
@@ -1,6 +1,11 @@
10.6.1
2
3* datebook plugin now can now also show following days
4* fixed one mem leak
5
10.6 60.6
2 7
3* longer refresh intervals possible 8* longer refresh intervals possible
4* plugins can decide now if they want to take part in refresh cycles 9* plugins can decide now if they want to take part in refresh cycles
5 10
60.5.2 110.5.2
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 76bd6de..91028c8 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -149,15 +149,18 @@ void Today::loadPlugins() {
149 149
150 QValueList<TodayPlugin>::Iterator tit; 150 QValueList<TodayPlugin>::Iterator tit;
151 if ( !pluginList.isEmpty() ) { 151 if ( !pluginList.isEmpty() ) {
152 for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) { 152 for ( tit = pluginList.begin(); tit != pluginList.end(); ++tit ) {
153 if ( (*tit).excludeRefresh ) { 153 if ( (*tit).excludeRefresh ) {
154 pluginListRefreshExclude.insert( (*tit).name , (*tit) ); 154 pluginListRefreshExclude.insert( (*tit).name , (*tit) );
155 qDebug( "Found an plugin that does not want refresh feature" ); 155 qDebug( "Found a plugin that does not want refresh feature" );
156 } else { 156 } else {
157 (*tit).guiBox->hide();
158 (*tit).guiBox->reparent( 0, QPoint( 0, 0 ) );
157 (*tit).library->unload(); 159 (*tit).library->unload();
160 delete (*tit).guiBox;
158 delete (*tit).library; 161 delete (*tit).library;
159 } 162 }
160 } 163 }
161 pluginList.clear(); 164 pluginList.clear();
162 } 165 }
163 166
@@ -173,13 +176,13 @@ void Today::loadPlugins() {
173 //TodayPluginInterface *iface = 0; 176 //TodayPluginInterface *iface = 0;
174 QInterfacePtr<TodayPluginInterface> iface; 177 QInterfacePtr<TodayPluginInterface> iface;
175 QLibrary *lib = new QLibrary( path + "/" + *it ); 178 QLibrary *lib = new QLibrary( path + "/" + *it );
176 179
177 qDebug( "querying: %s", QString( path + "/" + *it ).latin1() ); 180 qDebug( "querying: %s", QString( path + "/" + *it ).latin1() );
178 if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) { 181 if ( lib->queryInterface( IID_TodayPluginInterface, (QUnknownInterface**)&iface ) == QS_OK ) {
179 qDebug( "loading: %s", QString( path + "/" + *it ).latin1() ); 182 qDebug( "accepted: %s", QString( path + "/" + *it ).latin1() );
180 qDebug( QString(*it) ); 183 qDebug( QString(*it) );
181 184
182 // If plugin is exludes from refresh, get it in the list again here. 185 // If plugin is exludes from refresh, get it in the list again here.
183 186
184 if ( pluginListRefreshExclude.contains( (*it) ) ) { 187 if ( pluginListRefreshExclude.contains( (*it) ) ) {
185 // if its not in allApplets list, add it to a layout 188 // if its not in allApplets list, add it to a layout