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
@@ -384,49 +384,48 @@ void 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) );
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
@@ -442,25 +442,25 @@ void PmIpkg::removeFile(const QString &fileName, const QString &dest)
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
@@ -3,25 +3,25 @@
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 );