Diffstat (limited to 'noncore/unsupported/oipkg/pksettings.cpp') (more/less context) (show 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 | |||
@@ -466,22 +466,46 @@ QStringList PackageManagerSettings::getActiveServers() | |||
466 | { | 466 | { |
467 | if ( activeServers->isSelected(i) ) | 467 | if ( activeServers->isSelected(i) ) |
468 | sl += activeServers->text(i); | 468 | sl += activeServers->text(i); |
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 | { |
475 | QStringList sl; | 476 | QStringList sl; |
476 | for (int i=0; i<(int)destinations->count(); i++) | 477 | for (int i=0; i<(int)destinations->count(); i++) |
477 | { | 478 | { |
478 | sl += *destinationurlDic[i]; | 479 | sl += *destinationurlDic[i]; |
479 | } | 480 | } |
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; |
486 | activeLinkDestination->setEnabled( b ); | 510 | activeLinkDestination->setEnabled( b ); |
487 | } | 511 | } |