summaryrefslogtreecommitdiff
path: root/noncore/unsupported/oipkg/pksettings.cpp
authortille <tille>2002-04-27 13:06:45 (UTC)
committer tille <tille>2002-04-27 13:06:45 (UTC)
commitdb90999f6298c1107888f062f2c25cb8817b528a (patch) (unidiff)
tree020ebe65beb9286f3c63e4329fc3a0f298d34460 /noncore/unsupported/oipkg/pksettings.cpp
parente2f3288d468508f2cf7c0a327044963ca4b1b54a (diff)
downloadopie-db90999f6298c1107888f062f2c25cb8817b528a.zip
opie-db90999f6298c1107888f062f2c25cb8817b528a.tar.gz
opie-db90999f6298c1107888f062f2c25cb8817b528a.tar.bz2
added popup menu to choose inst dest (and more...)
Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/unsupported/oipkg/pksettings.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/noncore/unsupported/oipkg/pksettings.cpp b/noncore/unsupported/oipkg/pksettings.cpp
index 32224b5..f84a9c4 100644
--- a/noncore/unsupported/oipkg/pksettings.cpp
+++ b/noncore/unsupported/oipkg/pksettings.cpp
@@ -469,6 +469,7 @@ QStringList PackageManagerSettings::getActiveServers()
469 } 469 }
470 return sl; 470 return sl;
471} 471}
472
472/** returns the destination listed in ipkg.conf */ 473/** returns the destination listed in ipkg.conf */
473QStringList PackageManagerSettings::getDestinationUrls() 474QStringList PackageManagerSettings::getDestinationUrls()
474{ 475{
@@ -480,6 +481,29 @@ QStringList PackageManagerSettings::getDestinationUrls()
480 return sl; 481 return sl;
481} 482}
482 483
484/** returns the destination listed in ipkg.conf */
485QString PackageManagerSettings::getDestinationUrlByName(QString n)
486{
487 QStringList sl;
488 for (int i=0; i<(int)destinations->count(); i++)
489 {
490 if ( n == destinations->text(i)) return*destinationurlDic[i];
491 }
492 return "";
493}
494
495/** returns the destination listed in ipkg.conf */
496QStringList PackageManagerSettings::getDestinationNames()
497{
498 QStringList sl;
499 for (int i=0; i<(int)destinations->count(); i++)
500 {
501 sl += destinations->text(i);
502 }
503 return sl;
504}
505
506
483void PackageManagerSettings::linkEnabled( bool b ) 507void PackageManagerSettings::linkEnabled( bool b )
484{ 508{
485 changed = true; 509 changed = true;