summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/mainwindow.cpp
authortille <tille>2002-05-03 19:08:09 (UTC)
committer tille <tille>2002-05-03 19:08:09 (UTC)
commit4eddfebd1b4f70bbfe9106a16e9a3eeb6601f653 (patch) (unidiff)
tree66d77ffe196c448782ce0d04877641280e74890d /noncore/unsupported/oipkg/mainwindow.cpp
parent6bf450ac622d22ba7e9156e474a7abb714167eba (diff)
downloadopie-4eddfebd1b4f70bbfe9106a16e9a3eeb6601f653.zip
opie-4eddfebd1b4f70bbfe9106a16e9a3eeb6601f653.tar.gz
opie-4eddfebd1b4f70bbfe9106a16e9a3eeb6601f653.tar.bz2
fixes
Diffstat (limited to 'noncore/unsupported/oipkg/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 259a789..4f6e4cc 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -241,27 +241,27 @@ MainWindow::~MainWindow()
241 cfg.setGroup( "gui" ); 241 cfg.setGroup( "gui" );
242 cfg.writeEntry( "findBar", !findBar->isHidden() ); 242 cfg.writeEntry( "findBar", !findBar->isHidden() );
243 cfg.writeEntry( "searchBar", !searchBar->isHidden() ); 243 cfg.writeEntry( "searchBar", !searchBar->isHidden() );
244 cfg.writeEntry( "sectionBar", !sectionBar->isHidden() ); 244 cfg.writeEntry( "sectionBar", !sectionBar->isHidden() );
245 cfg.writeEntry( "destBar", !destBar->isHidden() ); 245 cfg.writeEntry( "destBar", !destBar->isHidden() );
246 pvDebug(7,"MainWindow::~MainWindow "); 246 pvDebug(7,"MainWindow::~MainWindow ");
247 247
248} 248}
249 249
250void MainWindow::runIpkg() 250void MainWindow::runIpkg()
251{ 251{
252 packageListServers.allPackages(); 252 packageListServers.allPackages();
253 ipkg->loadList( packageListSearch ); 253 ipkg->loadList( &packageListSearch );
254 ipkg->loadList( packageListDocLnk ); 254 ipkg->loadList( &packageListDocLnk );
255 ipkg->loadList( packageListServers ); 255 ipkg->loadList( &packageListServers );
256 ipkg->commit(); 256 ipkg->commit();
257 // ##### If we looked in the list of files, we could send out accurate 257 // ##### If we looked in the list of files, we could send out accurate
258 // ##### messages. But we don't bother yet, and just do an "all". 258 // ##### messages. But we don't bother yet, and just do an "all".
259 QCopEnvelope e("QPE/System", "linkChanged(QString)"); 259 QCopEnvelope e("QPE/System", "linkChanged(QString)");
260 QString lf = QString::null; 260 QString lf = QString::null;
261 e << lf; 261 e << lf;
262 displayList(); 262 displayList();
263} 263}
264 264
265void MainWindow::updateList() 265void MainWindow::updateList()
266{ 266{
267 //wait->show(); 267 //wait->show();
@@ -413,25 +413,26 @@ void MainWindow::rotateUpdateIcon()
413 updateIcon = !updateIcon; 413 updateIcon = !updateIcon;
414} 414}
415 415
416 416
417void MainWindow::setDocument(const QString &fileName) 417void MainWindow::setDocument(const QString &fileName)
418{ 418{
419 installFile(fileName); 419 installFile(fileName);
420 // ##### If we looked in the list of files, we could send out accurate 420 // ##### If we looked in the list of files, we could send out accurate
421 // ##### messages. But we don't bother yet, and just do an "all". 421 // ##### messages. But we don't bother yet, and just do an "all".
422 QCopEnvelope e("QPE/System", "linkChanged(QString)"); 422 QCopEnvelope e("QPE/System", "linkChanged(QString)");
423 QString lf = QString::null; 423 QString lf = QString::null;
424 e << lf; 424 e << lf;
425 displayList(); 425 // displayList();
426 exit;
426} 427}
427 428
428void MainWindow::installFile(const QString &fileName) 429void MainWindow::installFile(const QString &fileName)
429{ 430{
430 pvDebug(3, "MainWindow::installFile "+fileName); 431 pvDebug(3, "MainWindow::installFile "+fileName);
431 if ( !QFile::exists( fileName ) ) return; 432 if ( !QFile::exists( fileName ) ) return;
432 ipkg->installFile( fileName ); 433 ipkg->installFile( fileName );
433 // ##### If we looked in the list of files, we could send out accurate 434 // ##### If we looked in the list of files, we could send out accurate
434 // ##### messages. But we don't bother yet, and just do an "all". 435 // ##### messages. But we don't bother yet, and just do an "all".
435 QCopEnvelope e("QPE/System", "linkChanged(QString)"); 436 QCopEnvelope e("QPE/System", "linkChanged(QString)");
436 QString lf = QString::null; 437 QString lf = QString::null;
437 e << lf; 438 e << lf;
@@ -474,14 +475,15 @@ void MainWindow::createLinks()
474 ipkg->createLinks( settings->destinationurl->text() ); 475 ipkg->createLinks( settings->destinationurl->text() );
475} 476}
476 477
477void MainWindow::removeLinks() 478void MainWindow::removeLinks()
478{ 479{
479 pvDebug(2,"removing links..."); 480 pvDebug(2,"removing links...");
480 ipkg->removeLinks( settings->destinationurl->text() ); 481 ipkg->removeLinks( settings->destinationurl->text() );
481} 482}
482 483
483void MainWindow::remotePackageQuery() 484void MainWindow::remotePackageQuery()
484{ 485{
485 packageListSearch.query( searchEdit->text() ); 486 packageListSearch.query( searchEdit->text() );
487 packageListSearch.update();
486 displayList(); 488 displayList();
487} 489}