Diffstat (limited to 'noncore/settings/aqpkg/instoptionsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/instoptionsimpl.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/instoptionsimpl.cpp b/noncore/settings/aqpkg/instoptionsimpl.cpp index dd996e0..3a37eec 100644 --- a/noncore/settings/aqpkg/instoptionsimpl.cpp +++ b/noncore/settings/aqpkg/instoptionsimpl.cpp | |||
@@ -38,4 +38,6 @@ InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const | |||
38 | if ( flags & FORCE_OVERWRITE ) | 38 | if ( flags & FORCE_OVERWRITE ) |
39 | forceOverwrite->setChecked( true ); | 39 | forceOverwrite->setChecked( true ); |
40 | if ( flags & VERBOSE_WGET ) | ||
41 | verboseWget->setChecked( true ); | ||
40 | // if ( flags & MAKE_LINKS ) | 42 | // if ( flags & MAKE_LINKS ) |
41 | // makeLinks->setChecked( true ); | 43 | // makeLinks->setChecked( true ); |
@@ -48,2 +50,21 @@ InstallOptionsDlgImpl::~InstallOptionsDlgImpl() | |||
48 | { | 50 | { |
49 | } | 51 | } |
52 | |||
53 | |||
54 | int InstallOptionsDlgImpl :: getFlags() | ||
55 | { | ||
56 | int flags = 0; | ||
57 | |||
58 | if ( forceDepends->isChecked() ) | ||
59 | flags |= FORCE_DEPENDS; | ||
60 | if ( forceReinstall->isChecked() ) | ||
61 | flags |= FORCE_REINSTALL; | ||
62 | if ( forceRemove->isChecked() ) | ||
63 | flags |= FORCE_REMOVE; | ||
64 | if ( forceOverwrite->isChecked() ) | ||
65 | flags |= FORCE_OVERWRITE; | ||
66 | if ( verboseWget->isChecked() ) | ||
67 | flags |= VERBOSE_WGET; | ||
68 | |||
69 | return flags; | ||
70 | } \ No newline at end of file | ||