summaryrefslogtreecommitdiff
authorleseb <leseb>2002-06-21 09:19:18 (UTC)
committer leseb <leseb>2002-06-21 09:19:18 (UTC)
commitda8fdc855382e3b6e945aa1aeb429e5737e0792d (patch) (unidiff)
treea0656e9abf0131822c6fa01e70151ae47cad4e61
parentb5c57220c9a7b685418c8e8e0e02906659dd8b47 (diff)
downloadopie-da8fdc855382e3b6e945aa1aeb429e5737e0792d.zip
opie-da8fdc855382e3b6e945aa1aeb429e5737e0792d.tar.gz
opie-da8fdc855382e3b6e945aa1aeb429e5737e0792d.tar.bz2
Missing EOL
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/mainwindow.cpp1
-rw-r--r--noncore/unsupported/oipkg/pmipkg.cpp2
-rw-r--r--noncore/unsupported/oipkg/utils.cpp2
-rw-r--r--noncore/unsupported/oipkg/utils.h2
4 files changed, 3 insertions, 4 deletions
diff --git a/noncore/unsupported/oipkg/mainwindow.cpp b/noncore/unsupported/oipkg/mainwindow.cpp
index 11ab406..233eae6 100644
--- a/noncore/unsupported/oipkg/mainwindow.cpp
+++ b/noncore/unsupported/oipkg/mainwindow.cpp
@@ -360,97 +360,96 @@ void MainWindow::sectionClose()
360{ 360{
361 sectionAction->setOn( false ); 361 sectionAction->setOn( false );
362} 362}
363 363
364void MainWindow::findShow(bool b) 364void MainWindow::findShow(bool b)
365{ 365{
366 if (b) findBar->show(); 366 if (b) findBar->show();
367 else findBar->hide(); 367 else findBar->hide();
368 findAction->setOn( b ); 368 findAction->setOn( b );
369} 369}
370 370
371void MainWindow::findClose() 371void MainWindow::findClose()
372{ 372{
373 findAction->setOn( false ); 373 findAction->setOn( false );
374} 374}
375 375
376void MainWindow::searchShow(bool b) 376void MainWindow::searchShow(bool b)
377{ 377{
378 if (b) searchBar->show(); 378 if (b) searchBar->show();
379 else searchBar->hide(); 379 else searchBar->hide();
380 searchAction->setOn( b ); 380 searchAction->setOn( b );
381} 381}
382 382
383void MainWindow::searchClose() 383void MainWindow::searchClose()
384{ 384{
385 searchAction->setOn( false ); 385 searchAction->setOn( false );
386} 386}
387 387
388 388
389void MainWindow::destShow(bool b) 389void MainWindow::destShow(bool b)
390{ 390{
391 if (b) destBar->show(); 391 if (b) destBar->show();
392 else destBar->hide(); 392 else destBar->hide();
393 destAction->setOn( b ); 393 destAction->setOn( b );
394} 394}
395 395
396void MainWindow::destClose() 396void MainWindow::destClose()
397{ 397{
398 destAction->setOn( false ); 398 destAction->setOn( false );
399} 399}
400 400
401void MainWindow::setDocument(const QString &fileName) 401void MainWindow::setDocument(const QString &fileName)
402{ 402{
403 if ( !QFile::exists( fileName ) ) return; 403 if ( !QFile::exists( fileName ) ) return;
404 ipkg->installFile( fileName ); 404 ipkg->installFile( fileName );
405 QCopEnvelope e("QPE/System", "linkChanged(QString)"); 405 QCopEnvelope e("QPE/System", "linkChanged(QString)");
406 QString lf = QString::null; 406 QString lf = QString::null;
407 e << lf; 407 e << lf;
408 exit;
409} 408}
410 409
411 410
412void MainWindow::makeChannel() 411void MainWindow::makeChannel()
413 { 412 {
414 channel = new QCopChannel( "QPE/Application/oipkg", this ); 413 channel = new QCopChannel( "QPE/Application/oipkg", this );
415 connect( channel, SIGNAL(received(const QCString&, const QByteArray&)), 414 connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
416 this, SLOT(receive(const QCString&, const QByteArray&)) ); 415 this, SLOT(receive(const QCString&, const QByteArray&)) );
417} 416}
418 417
419 418
420 419
421void MainWindow::receive(const QCString &msg, const QByteArray &arg) 420void MainWindow::receive(const QCString &msg, const QByteArray &arg)
422{ 421{
423 pvDebug(3, "QCop "+msg+" "+QCString(arg)); 422 pvDebug(3, "QCop "+msg+" "+QCString(arg));
424 if ( msg == "installFile(QString)" ) 423 if ( msg == "installFile(QString)" )
425 { 424 {
426 ipkg->installFile( QString(arg) ); 425 ipkg->installFile( QString(arg) );
427 }else if( msg == "removeFile(QString)" ) 426 }else if( msg == "removeFile(QString)" )
428 { 427 {
429 ipkg->removeFile( QString(arg) ); 428 ipkg->removeFile( QString(arg) );
430 }else if( msg == "createLinks(QString)" ) 429 }else if( msg == "createLinks(QString)" )
431 { 430 {
432 ipkg->createLinks( QString(arg) ); 431 ipkg->createLinks( QString(arg) );
433 }else if( msg == "removeLinks(QString)" ) 432 }else if( msg == "removeLinks(QString)" )
434 { 433 {
435 ipkg->removeLinks( QString(arg) ); 434 ipkg->removeLinks( QString(arg) );
436 }else{ 435 }else{
437 pvDebug(2,"Huh what do ya want") 436 pvDebug(2,"Huh what do ya want")
438 } 437 }
439} 438}
440 439
441 440
442void MainWindow::createLinks() 441void MainWindow::createLinks()
443{ 442{
444 pvDebug(2,"creating links..."); 443 pvDebug(2,"creating links...");
445 ipkg->createLinks( settings->destinationurl->text() ); 444 ipkg->createLinks( settings->destinationurl->text() );
446} 445}
447 446
448void MainWindow::removeLinks() 447void MainWindow::removeLinks()
449{ 448{
450 pvDebug(2,"removing links..."); 449 pvDebug(2,"removing links...");
451 ipkg->removeLinks( settings->destinationurl->text() ); 450 ipkg->removeLinks( settings->destinationurl->text() );
452} 451}
453 452
454void MainWindow::remotePackageQuery() 453void MainWindow::remotePackageQuery()
455{ 454{
456 packageListSearch.query( searchEdit->text() ); 455 packageListSearch.query( searchEdit->text() );
diff --git a/noncore/unsupported/oipkg/pmipkg.cpp b/noncore/unsupported/oipkg/pmipkg.cpp
index 2a534d2..0817247 100644
--- a/noncore/unsupported/oipkg/pmipkg.cpp
+++ b/noncore/unsupported/oipkg/pmipkg.cpp
@@ -418,49 +418,49 @@ void PmIpkg::show()
418 runwindow->show(); 418 runwindow->show();
419 } 419 }
420 runwindow->outPut->setText(""); 420 runwindow->outPut->setText("");
421} 421}
422 422
423void PmIpkg::installFile(const QString &fileName, const QString &dest) 423void PmIpkg::installFile(const QString &fileName, const QString &dest)
424{ 424{
425 425
426 to_install.clear(); 426 to_install.clear();
427 to_remove.clear(); 427 to_remove.clear();
428 pvDebug( 2,"PmIpkg::installFile "+ fileName); 428 pvDebug( 2,"PmIpkg::installFile "+ fileName);
429 Package *p = new Package(fileName,settings); 429 Package *p = new Package(fileName,settings);
430 if ( dest!="") p->setDest( dest ); 430 if ( dest!="") p->setDest( dest );
431 to_install.append( p ); 431 to_install.append( p );
432 commit(); 432 commit();
433 delete p; 433 delete p;
434} 434}
435 435
436void PmIpkg::removeFile(const QString &fileName, const QString &dest) 436void PmIpkg::removeFile(const QString &fileName, const QString &dest)
437{ 437{
438 438
439 to_install.clear(); 439 to_install.clear();
440 to_remove.clear(); 440 to_remove.clear();
441 pvDebug( 2,"PmIpkg::removeFile "+ fileName); 441 pvDebug( 2,"PmIpkg::removeFile "+ fileName);
442 Package *p = new Package(fileName,settings); 442 Package *p = new Package(fileName,settings);
443 if ( dest!="") p->setDest( dest ); 443 if ( dest!="") p->setDest( dest );
444 to_remove.append( p ); 444 to_remove.append( p );
445 commit(); 445 commit();
446 delete p; 446 delete p;
447} 447}
448 448
449 449
450void PmIpkg::clearLists() 450void PmIpkg::clearLists()
451{ 451{
452 to_remove.clear(); 452 to_remove.clear();
453 to_install.clear(); 453 to_install.clear();
454} 454}
455 455
456 456
457void PmIpkg::getIpkgOutput(OProcess *proc, char *buffer, int buflen) 457void PmIpkg::getIpkgOutput(OProcess *proc, char *buffer, int buflen)
458{ 458{
459 QString lineStr, lineStrOld; 459 QString lineStr, lineStrOld;
460 lineStr = buffer; 460 lineStr = buffer;
461 lineStr=lineStr.left(buflen); 461 lineStr=lineStr.left(buflen);
462 //Configuring opie-oipkg...Done 462 //Configuring opie-oipkg...Done
463 if (lineStr!=lineStrOld) 463 if (lineStr!=lineStrOld)
464 out(lineStr); 464 out(lineStr);
465 lineStrOld = lineStr; 465 lineStrOld = lineStr;
466} \ No newline at end of file 466}
diff --git a/noncore/unsupported/oipkg/utils.cpp b/noncore/unsupported/oipkg/utils.cpp
index 13b17fb..66dcf10 100644
--- a/noncore/unsupported/oipkg/utils.cpp
+++ b/noncore/unsupported/oipkg/utils.cpp
@@ -1,27 +1,27 @@
1/*************************************************************************** 1/***************************************************************************
2 utils.cpp - description 2 utils.cpp - description
3 ------------------- 3 -------------------
4 begin : Sun Apr 28 2002 4 begin : Sun Apr 28 2002
5 copyright : (C) 2002 by tille 5 copyright : (C) 2002 by tille
6 email : tille@handhelds.org 6 email : tille@handhelds.org
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18#include <qcombobox.h> 18#include <qcombobox.h>
19#include <qstring.h> 19#include <qstring.h>
20#include "utils.h" 20#include "utils.h"
21 21
22void setComboName( QComboBox* combo, QString s) 22void setComboName( QComboBox* combo, QString s)
23{ 23{
24 for ( int i = 0; i < combo->count(); i++) 24 for ( int i = 0; i < combo->count(); i++)
25 if ( combo->text( i ) == s ) 25 if ( combo->text( i ) == s )
26 combo->setCurrentItem( i ); 26 combo->setCurrentItem( i );
27} \ No newline at end of file 27}
diff --git a/noncore/unsupported/oipkg/utils.h b/noncore/unsupported/oipkg/utils.h
index bb033c5..ecc70dc 100644
--- a/noncore/unsupported/oipkg/utils.h
+++ b/noncore/unsupported/oipkg/utils.h
@@ -1,18 +1,18 @@
1/*************************************************************************** 1/***************************************************************************
2 utils.h - description 2 utils.h - description
3 ------------------- 3 -------------------
4 begin : Sun Apr 28 2002 4 begin : Sun Apr 28 2002
5 copyright : (C) 2002 by tille 5 copyright : (C) 2002 by tille
6 email : tille@handhelds.org 6 email : tille@handhelds.org
7 ***************************************************************************/ 7 ***************************************************************************/
8 8
9/*************************************************************************** 9/***************************************************************************
10 * * 10 * *
11 * This program is free software; you can redistribute it and/or modify * 11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by * 12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or * 13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. * 14 * (at your option) any later version. *
15 * * 15 * *
16 ***************************************************************************/ 16 ***************************************************************************/
17 17
18void setComboName( QComboBox*, QString ); \ No newline at end of file 18void setComboName( QComboBox*, QString );