Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/oipkg/pksettings.cpp | 24 |
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 */ |
473 | QStringList PackageManagerSettings::getDestinationUrls() | 474 | QStringList 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 */ | ||
485 | QString 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 */ | ||
496 | QStringList 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 | |||
483 | void PackageManagerSettings::linkEnabled( bool b ) | 507 | void PackageManagerSettings::linkEnabled( bool b ) |
484 | { | 508 | { |
485 | changed = true; | 509 | changed = true; |