summaryrefslogtreecommitdiff
path: root/core/pim
authorharlekin <harlekin>2002-09-17 17:30:39 (UTC)
committer harlekin <harlekin>2002-09-17 17:30:39 (UTC)
commita1b2f800f53715452f75153218e33fcd8907bbbf (patch) (side-by-side diff)
tree878078c578767c1d14ed5c082709b233201b8244 /core/pim
parente1614b49cf61ee37350828ce5b5178a9da752f39 (diff)
downloadopie-a1b2f800f53715452f75153218e33fcd8907bbbf.zip
opie-a1b2f800f53715452f75153218e33fcd8907bbbf.tar.gz
opie-a1b2f800f53715452f75153218e33fcd8907bbbf.tar.bz2
activation and deactivation of plugins works now
Diffstat (limited to 'core/pim') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/today.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/pim/today/today.cpp b/core/pim/today/today.cpp
index 066a5a8..2095174 100644
--- a/core/pim/today/today.cpp
+++ b/core/pim/today/today.cpp
@@ -205,28 +205,26 @@ void Today::draw() {
noPlugins->setText( tr( "No plugins found" ) );
layout->addWidget( noPlugins );
return;
}
uint count = 0;
TodayPlugin plugin;
for ( uint i = 0; i < pluginList.count(); i++ ) {
plugin = pluginList[i];
if ( plugin.active ) {
qDebug( plugin.name + " is ACTIVE " );
- // QHBoxLayout* plugLayout = new QHBoxLayout( this );
plugin.guiBox->show();
} else {
- // plugin.guiWidget->hide();
qDebug( plugin.name + " is INACTIVE" );
plugin.guiBox->hide();
}
count++;
}
if ( count == 0 ) {
QLabel *noPluginsActive = new QLabel( this );
noPluginsActive->setText( tr( "No plugins activated" ) );
layout->addWidget( noPluginsActive );
}
@@ -260,36 +258,38 @@ void Today::startConfig() {
if ( conf.exec() == QDialog::Accepted ) {
conf.writeConfig();
ConfigWidget *confWidget;
for ( confWidget = configWidgetList.first(); confWidget != 0;
confWidget = configWidgetList.next() ) {
confWidget->writeConfig();
}
init();
TodayPlugin plugin;
+ QValueList<TodayPlugin> plugList;
for ( uint i = 0; i < pluginList.count(); i++ ) {
plugin = pluginList[i];
if ( m_excludeApplets.grep( plugin.name ).isEmpty() ) {
qDebug("CONFIG " + plugin.name + " ACTIVE");
plugin.active = true;
} else {
qDebug("CONFIG " + plugin.name + " INACTIVE");
-
plugin.active = false;
}
+ plugList.append( plugin );
}
+ pluginList = plugList;
draw();
}
}
void Today::startAddressbook() {
QCopEnvelope e( "QPE/System", "execute(QString)" );
e << QString( "addressbook" );
}
@@ -299,19 +299,19 @@ void Today::startAddressbook() {
void Today::editCard() {
startAddressbook();
while( !QCopChannel::isRegistered( "QPE/Addressbook" ) ) {
qApp->processEvents();
}
QCopEnvelope v( "QPE/Addressbook", "editPersonalAndClose()" );
}
/*
* launches an App
*/
void Today::launchApp( QString appName ) {
- QCopEnvelope e( "QPE/System", "execute(QString)" );
- e << QString( appName );
+ QCopEnvelope e( "QPE/System", "execute(QString)" );
+ e << QString( appName );
}
Today::~Today() {
}