summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/aqpkg.pro70
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.cpp254
-rw-r--r--noncore/settings/aqpkg/ipkg.cpp6
-rw-r--r--noncore/settings/aqpkg/ipkg.h14
-rw-r--r--noncore/settings/aqpkg/main.cpp2
-rw-r--r--noncore/settings/aqpkg/opie-aqpkg.control2
-rw-r--r--noncore/settings/aqpkg/settingsimpl.cpp8
7 files changed, 178 insertions, 178 deletions
diff --git a/noncore/settings/aqpkg/aqpkg.pro b/noncore/settings/aqpkg/aqpkg.pro
index a24f036..35a7889 100644
--- a/noncore/settings/aqpkg/aqpkg.pro
+++ b/noncore/settings/aqpkg/aqpkg.pro
@@ -1,38 +1,38 @@
-CONFIG = qt warn_on release quick-app
-HEADERS = global.h \
- mainwin.h \
- datamgr.h \
- settingsimpl.h \
- ipkg.h \
- packagewin.h \
- package.h \
- installdlgimpl.h \
- instoptionsimpl.h \
- destination.h \
- utils.h \
- server.h \
- letterpushbutton.h \
- inputdlg.h \
- categoryfilterimpl.h
-SOURCES = mainwin.cpp \
- datamgr.cpp \
- mem.cpp \
- settingsimpl.cpp \
- ipkg.cpp \
- main.cpp \
- packagewin.cpp \
- package.cpp \
- installdlgimpl.cpp \
- instoptionsimpl.cpp \
- destination.cpp \
- utils.cpp \
- server.cpp \
- letterpushbutton.cpp \
- inputdlg.cpp \
- version.cpp \
- categoryfilterimpl.cpp
-TARGET = aqpkg
+CONFIG = qt warn_on release quick-app
+HEADERS = global.h \
+ mainwin.h \
+ datamgr.h \
+ settingsimpl.h \
+ ipkg.h \
+ packagewin.h \
+ package.h \
+ installdlgimpl.h \
+ instoptionsimpl.h \
+ destination.h \
+ utils.h \
+ server.h \
+ letterpushbutton.h \
+ inputdlg.h \
+ categoryfilterimpl.h
+SOURCES = mainwin.cpp \
+ datamgr.cpp \
+ mem.cpp \
+ settingsimpl.cpp \
+ ipkg.cpp \
+ main.cpp \
+ packagewin.cpp \
+ package.cpp \
+ installdlgimpl.cpp \
+ instoptionsimpl.cpp \
+ destination.cpp \
+ utils.cpp \
+ server.cpp \
+ letterpushbutton.cpp \
+ inputdlg.cpp \
+ version.cpp \
+ categoryfilterimpl.cpp
+TARGET = aqpkg
INCLUDEPATH += $(OPIEDIR)/include
DEPENDPATH += $(OPIEDIR)/include
-LIBS += -lqpe -lopie
+LIBS += -lqpe -lopiecore2 -lopieui2
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp
index ea2c47f..d927a36 100644
--- a/noncore/settings/aqpkg/installdlgimpl.cpp
+++ b/noncore/settings/aqpkg/installdlgimpl.cpp
@@ -2,3 +2,3 @@
                This file is part of the OPIE Project
-
+
=. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
@@ -31,4 +31,4 @@
-#include <opie/ofiledialog.h>
-
+#include <opie2/ofiledialog.h>
+
#ifdef QWS
@@ -60,3 +60,3 @@
enum {
- MAXLINES = 100,
+ MAXLINES = 100,
};
@@ -68,3 +68,3 @@ InstallDlgImpl::InstallDlgImpl( const QList<InstallData> &packageList, DataManag
init( TRUE );
-
+
pIpkg = 0;
@@ -83,3 +83,3 @@ InstallDlgImpl::InstallDlgImpl( const QList<InstallData> &packageList, DataManag
#else
- flags = 0;
+ flags = 0;
#endif
@@ -88,5 +88,5 @@ InstallDlgImpl::InstallDlgImpl( const QList<InstallData> &packageList, DataManag
output->setReadOnly( true );
-// QFont f( "helvetica" );
-// f.setPointSize( 10 );
-// output->setFont( f );
+// QFont f( "helvetica" );
+// f.setPointSize( 10 );
+// output->setFont( f );
@@ -106,40 +106,40 @@ InstallDlgImpl::InstallDlgImpl( const QList<InstallData> &packageList, DataManag
- QListIterator<InstallData> it( packageList );
- // setup package data
- QString remove = tr( "Remove\n" );
- QString install = tr( "Install\n" );
- QString upgrade = tr( "Upgrade\n" );
- for ( ; it.current(); ++it )
- {
- InstallData *item = it.current();
- InstallData *newitem = new InstallData();
-
- newitem->option = item->option;
- newitem->packageName = item->packageName;
- newitem->destination = item->destination;
- newitem->recreateLinks = item->recreateLinks;
- packages.append( newitem );
-
- if ( item->option == "I" )
- {
- install.append( QString( " %1\n" ).arg( item->packageName ) );
- }
- else if ( item->option == "D" )
- {
- remove.append( QString( " %1\n" ).arg( item->packageName ) );
- }
- else if ( item->option == "U" || item->option == "R" )
- {
- QString type;
- if ( item->option == "R" )
- type = tr( "(ReInstall)" );
- else
- type = tr( "(Upgrade)" );
- upgrade.append( QString( " %1 %2\n" ).arg( item->packageName ).arg( type ) );
- }
- }
-
- output->setText( QString( "%1\n%2\n%3\n" ).arg( remove ).arg( install ).arg( upgrade ) );
-
- displayAvailableSpace( destination->currentText() );
+ QListIterator<InstallData> it( packageList );
+ // setup package data
+ QString remove = tr( "Remove\n" );
+ QString install = tr( "Install\n" );
+ QString upgrade = tr( "Upgrade\n" );
+ for ( ; it.current(); ++it )
+ {
+ InstallData *item = it.current();
+ InstallData *newitem = new InstallData();
+
+ newitem->option = item->option;
+ newitem->packageName = item->packageName;
+ newitem->destination = item->destination;
+ newitem->recreateLinks = item->recreateLinks;
+ packages.append( newitem );
+
+ if ( item->option == "I" )
+ {
+ install.append( QString( " %1\n" ).arg( item->packageName ) );
+ }
+ else if ( item->option == "D" )
+ {
+ remove.append( QString( " %1\n" ).arg( item->packageName ) );
+ }
+ else if ( item->option == "U" || item->option == "R" )
+ {
+ QString type;
+ if ( item->option == "R" )
+ type = tr( "(ReInstall)" );
+ else
+ type = tr( "(Upgrade)" );
+ upgrade.append( QString( " %1 %2\n" ).arg( item->packageName ).arg( type ) );
+ }
+ }
+
+ output->setText( QString( "%1\n%2\n%3\n" ).arg( remove ).arg( install ).arg( upgrade ) );
+
+ displayAvailableSpace( destination->currentText() );
}
@@ -164,3 +164,3 @@ void InstallDlgImpl :: init( bool displayextrainfo )
{
- QGridLayout *layout = new QGridLayout( this );
+ QGridLayout *layout = new QGridLayout( this );
layout->setSpacing( 4 );
@@ -187,3 +187,3 @@ void InstallDlgImpl :: init( bool displayextrainfo )
}
-
+
QGroupBox *GroupBox2 = new QGroupBox( 0, Qt::Vertical, tr( "Output" ), this );
@@ -200,3 +200,3 @@ void InstallDlgImpl :: init( bool displayextrainfo )
connect( btnInstall, SIGNAL( clicked() ), this, SLOT( installSelected() ) );
-
+
btnOptions = new QPushButton( Resource::loadPixmap( "SettingsIcon" ), tr( "Options" ), this );
@@ -234,4 +234,4 @@ void InstallDlgImpl :: optionsSelected()
map.insert( tr( "All" ), text );
-
- QString filename = OFileDialog::getSaveFileName( 2, "/", "ipkg-output", map );
+
+ QString filename = Opie::OFileDialog::getSaveFileName( 2, "/", "ipkg-output", map );
if( !filename.isEmpty() )
@@ -259,3 +259,3 @@ void InstallDlgImpl :: installSelected()
}
-
+
btnInstall->setText( tr( "Close" ) );
@@ -269,3 +269,3 @@ void InstallDlgImpl :: installSelected()
}
-
+
// Disable buttons
@@ -293,3 +293,3 @@ void InstallDlgImpl :: installSelected()
instFlags |= MAKE_LINKS;
-
+
#ifdef QWS
@@ -305,8 +305,8 @@ void InstallDlgImpl :: installSelected()
- firstPackage = TRUE;
- ipkgFinished();
+ firstPackage = TRUE;
+ ipkgFinished();
// First run through the remove list, then the install list then the upgrade list
-/*
- pIpkg->setOption( "remove" );
+/*
+ pIpkg->setOption( "remove" );
QListIterator<InstallData> it( removeList );
@@ -323,3 +323,3 @@ void InstallDlgImpl :: installSelected()
tmpFlags |= MAKE_LINKS;
-
+
pIpkg->setFlags( tmpFlags, infoLevel );
@@ -402,3 +402,3 @@ void InstallDlgImpl :: displayAvailableSpace( const QString &text )
space = tr( "Unknown" );
-
+
if ( txtAvailableSpace )
@@ -409,68 +409,68 @@ void InstallDlgImpl :: ipkgFinished()
{
- InstallData *item;
- if ( firstPackage )
- item = packages.first();
- else
- {
- // Create symlinks if necessary before moving on to next package
- pIpkg->createSymLinks();
-
- item = packages.next();
- }
-
- firstPackage = FALSE;
- if ( item )
- {
- pIpkg->setPackage( item->packageName );
- int tmpFlags = flags;
-
- if ( item->option == "I" )
- {
- pIpkg->setOption( "install" );
- Destination *d = dataMgr->getDestination( destination->currentText() );
- pIpkg->setDestination( d->getDestinationName() );
- pIpkg->setDestinationDir( d->getDestinationPath() );
-
- if ( d->linkToRoot() )
- tmpFlags |= MAKE_LINKS;
- }
- else if ( item->option == "D" )
- {
- pIpkg->setOption( "remove" );
- pIpkg->setDestination( item->destination->getDestinationName() );
- pIpkg->setDestinationDir( item->destination->getDestinationPath() );
-
- if ( item->destination->linkToRoot() )
- tmpFlags |= MAKE_LINKS;
- }
- else
- {
- if ( item->option == "R" )
- pIpkg->setOption( "reinstall" );
- else
- pIpkg->setOption( "upgrade" );
-
- pIpkg->setDestination( item->destination->getDestinationName() );
- pIpkg->setDestinationDir( item->destination->getDestinationPath() );
- pIpkg->setPackage( item->packageName );
-
- tmpFlags |= FORCE_REINSTALL;
- if ( item->destination->linkToRoot() && item->recreateLinks )
- tmpFlags |= MAKE_LINKS;
- }
- pIpkg->setFlags( tmpFlags, infoLevel );
- pIpkg->runIpkg();
- }
- else
- {
- btnOptions->setEnabled( true );
- btnInstall->setText( tr( "Close" ) );
- btnInstall->setIconSet( Resource::loadPixmap( "enter" ) );
-
- btnOptions->setText( tr( "Save output" ) );
- btnOptions->setIconSet( Resource::loadPixmap( "save" ) );
-
- if ( destination && destination->currentText() != 0 && destination->currentText() != "" )
- displayAvailableSpace( destination->currentText() );
- }
+ InstallData *item;
+ if ( firstPackage )
+ item = packages.first();
+ else
+ {
+ // Create symlinks if necessary before moving on to next package
+ pIpkg->createSymLinks();
+
+ item = packages.next();
+ }
+
+ firstPackage = FALSE;
+ if ( item )
+ {
+ pIpkg->setPackage( item->packageName );
+ int tmpFlags = flags;
+
+ if ( item->option == "I" )
+ {
+ pIpkg->setOption( "install" );
+ Destination *d = dataMgr->getDestination( destination->currentText() );
+ pIpkg->setDestination( d->getDestinationName() );
+ pIpkg->setDestinationDir( d->getDestinationPath() );
+
+ if ( d->linkToRoot() )
+ tmpFlags |= MAKE_LINKS;
+ }
+ else if ( item->option == "D" )
+ {
+ pIpkg->setOption( "remove" );
+ pIpkg->setDestination( item->destination->getDestinationName() );
+ pIpkg->setDestinationDir( item->destination->getDestinationPath() );
+
+ if ( item->destination->linkToRoot() )
+ tmpFlags |= MAKE_LINKS;
+ }
+ else
+ {
+ if ( item->option == "R" )
+ pIpkg->setOption( "reinstall" );
+ else
+ pIpkg->setOption( "upgrade" );
+
+ pIpkg->setDestination( item->destination->getDestinationName() );
+ pIpkg->setDestinationDir( item->destination->getDestinationPath() );
+ pIpkg->setPackage( item->packageName );
+
+ tmpFlags |= FORCE_REINSTALL;
+ if ( item->destination->linkToRoot() && item->recreateLinks )
+ tmpFlags |= MAKE_LINKS;
+ }
+ pIpkg->setFlags( tmpFlags, infoLevel );
+ pIpkg->runIpkg();
+ }
+ else
+ {
+ btnOptions->setEnabled( true );
+ btnInstall->setText( tr( "Close" ) );
+ btnInstall->setIconSet( Resource::loadPixmap( "enter" ) );
+
+ btnOptions->setText( tr( "Save output" ) );
+ btnOptions->setIconSet( Resource::loadPixmap( "save" ) );
+
+ if ( destination && destination->currentText() != 0 && destination->currentText() != "" )
+ displayAvailableSpace( destination->currentText() );
+ }
}
diff --git a/noncore/settings/aqpkg/ipkg.cpp b/noncore/settings/aqpkg/ipkg.cpp
index 2a9c576..3761b67 100644
--- a/noncore/settings/aqpkg/ipkg.cpp
+++ b/noncore/settings/aqpkg/ipkg.cpp
@@ -29,2 +29,4 @@
+#include <opie2/oprocess.h>
+
#ifdef QWS
@@ -38,4 +40,2 @@
-#include <opie/oprocess.h>
-
#include "utils.h"
@@ -366,3 +366,3 @@ void Ipkg::processFinished()
- emit ipkgFinished();
+ emit ipkgFinished();
}
diff --git a/noncore/settings/aqpkg/ipkg.h b/noncore/settings/aqpkg/ipkg.h
index 8f254f9..f892038 100644
--- a/noncore/settings/aqpkg/ipkg.h
+++ b/noncore/settings/aqpkg/ipkg.h
@@ -2,3 +2,3 @@
                This file is part of the OPIE Project
-
+
=. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
@@ -57,4 +57,4 @@ public:
~Ipkg();
- void runIpkg();
- void createSymLinks();
+ void runIpkg();
+ void createSymLinks();
@@ -69,3 +69,3 @@ signals:
void outputText( const QString &text );
- void ipkgFinished();
+ void ipkgFinished();
@@ -77,3 +77,3 @@ public slots:
-
+
private:
@@ -93,3 +93,3 @@ private:
QList<QString> *dependantPackages;
-
+
int executeIpkgCommand( QStringList &cmd, const QString option );
@@ -100,3 +100,3 @@ private:
void processLinkDir( const QString &file, const QString &baseDir, const QString &destDir );
-
+
};
diff --git a/noncore/settings/aqpkg/main.cpp b/noncore/settings/aqpkg/main.cpp
index 179f8b7..b391714 100644
--- a/noncore/settings/aqpkg/main.cpp
+++ b/noncore/settings/aqpkg/main.cpp
@@ -31,3 +31,3 @@
-#include <opie/oapplicationfactory.h>
+#include <opie2/oapplicationfactory.h>
diff --git a/noncore/settings/aqpkg/opie-aqpkg.control b/noncore/settings/aqpkg/opie-aqpkg.control
index b9e143f..2edb794 100644
--- a/noncore/settings/aqpkg/opie-aqpkg.control
+++ b/noncore/settings/aqpkg/opie-aqpkg.control
@@ -4,3 +4,3 @@ Priority: optional
Section: opie/settings
-Depends: task-opie-minimal
+Depends: task-opie-minimal, libopiecore2, libopieui2
Replaces: aqpkg
diff --git a/noncore/settings/aqpkg/settingsimpl.cpp b/noncore/settings/aqpkg/settingsimpl.cpp
index 9fdf31e..6e9dd99 100644
--- a/noncore/settings/aqpkg/settingsimpl.cpp
+++ b/noncore/settings/aqpkg/settingsimpl.cpp
@@ -2,3 +2,3 @@
                This file is part of the OPIE Project
-
+
=. Copyright (c) 2002 Andy Qua <andy.qua@blueyonder.co.uk>
@@ -26,3 +26,3 @@
Boston, MA 02111-1307, USA.
-
+
*/
@@ -33,3 +33,3 @@
/* OPIE */
-#include <opie/otabwidget.h>
+#include <opie2/otabwidget.h>
#ifdef QWS
@@ -65,3 +65,3 @@ SettingsImpl :: SettingsImpl( DataManager *dataManager, QWidget * parent, const
// Setup tabs for all info
- OTabWidget *tabwidget = new OTabWidget( this );
+ Opie::OTabWidget *tabwidget = new Opie::OTabWidget( this );
layout->addWidget( tabwidget );