summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/mainwin.cpp
authordrw <drw>2003-04-29 02:28:16 (UTC)
committer drw <drw>2003-04-29 02:28:16 (UTC)
commite096c9d1f2be1ec74ede583fc4221871a56ef508 (patch) (side-by-side diff)
tree1c6f49430179e2f262179951477bbe4bd7d32e71 /noncore/settings/aqpkg/mainwin.cpp
parent2f26f696ca6acd05aa615e15d891eede9907a1c0 (diff)
downloadopie-e096c9d1f2be1ec74ede583fc4221871a56ef508.zip
opie-e096c9d1f2be1ec74ede583fc4221871a56ef508.tar.gz
opie-e096c9d1f2be1ec74ede583fc4221871a56ef508.tar.bz2
Give aqpkg standard source headers and some minor code clean-up.
Diffstat (limited to 'noncore/settings/aqpkg/mainwin.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/mainwin.cpp55
1 files changed, 28 insertions, 27 deletions
diff --git a/noncore/settings/aqpkg/mainwin.cpp b/noncore/settings/aqpkg/mainwin.cpp
index f0e8e48..0102292 100644
--- a/noncore/settings/aqpkg/mainwin.cpp
+++ b/noncore/settings/aqpkg/mainwin.cpp
@@ -1,19 +1,31 @@
-/***************************************************************************
- mainwin.cpp - description
- -------------------
- begin : Mon Aug 26 13:32:30 BST 2002
- copyright : (C) 2002 by Andy Qua
- email : andy.qua@blueyonder.co.uk
- ***************************************************************************/
-
-/***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
+/*
+                This file is part of the OPIE Project
+
+ =. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
+             .=l. Dan Williams <drw@handhelds.org>
+           .>+-=
+ _;:,     .>    :=|. This file is free software; you can
+.> <`_,   >  .   <= redistribute it and/or modify it under
+:`=1 )Y*s>-.--   : the terms of the GNU General Public
+.="- .-=="i,     .._ License as published by the Free Software
+ - .   .-<_>     .<> Foundation; either version 2 of the License,
+     ._= =}       : or (at your option) any later version.
+    .%`+i>       _;_.
+    .i_,=:_.      -<s. This file is distributed in the hope that
+     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
+    : ..    .:,     . . . without even the implied warranty of
+    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
+  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
+..}^=.=       =       ; Public License for more details.
+++=   -.     .`     .:
+ :     =  ...= . :.=- You should have received a copy of the GNU
+ -.   .:....=;==+<; General Public License along with this file;
+  -_. . .   )=.  = see the file COPYING. If not, write to the
+    --        :-=` Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+*/
#include <linux/limits.h>
#include <unistd.h>
@@ -302,7 +314,6 @@ void MainWindow :: setDocument( const QString &doc )
{
// Remove path from package
QString package = Utils::getPackageNameFromIpkFilename( doc );
-// std::cout << "Selecting package " << package << std::endl;
// First select local server
for ( int i = 0 ; i < serversList->count() ; ++i )
@@ -554,10 +565,8 @@ void MainWindow :: updateData()
m_progress->setProgress( i );
qApp->processEvents();
-// cout << "Adding " << it->getServerName() << " to combobox" << endl;
if ( !server->isServerActive() )
{
-// cout << serverName << " is not active" << endl;
i--;
continue;
}
@@ -713,12 +722,8 @@ void MainWindow :: searchForPackage( const QString &text )
{
if ( !text.isEmpty() )
{
-// cout << "searching for " << text << endl;
// look through package list for text startng at current position
-// vector<InstallData> workingPackages;
QCheckListItem *start = (QCheckListItem *)packagesList->currentItem();
-// if ( start != 0 )
-// start = (QCheckListItem *)start->nextSibling();
if ( start == 0 )
start = (QCheckListItem *)packagesList->firstChild();
@@ -726,10 +731,8 @@ void MainWindow :: searchForPackage( const QString &text )
for ( QCheckListItem *item = start; item != 0 ;
item = (QCheckListItem *)item->nextSibling() )
{
-// cout << "checking " << item->text().lower() << endl;
if ( item->text().lower().find( text ) != -1 )
{
-// cout << "matched " << item->text() << endl;
packagesList->ensureItemVisible( item );
packagesList->setCurrentItem( item );
break;
@@ -1013,8 +1016,6 @@ InstallData *MainWindow :: dealWithItem( QCheckListItem *item )
if ( p->getInstalledTo() )
{
newitem->destination = p->getInstalledTo();
-// cout << "dest - " << p->getInstalledTo()->getDestinationName() << endl;
-// cout << "dest - " << p->getInstalledTo()->getDestinationPath() << endl;
}
else
{