summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/instoptionsimpl.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/instoptionsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/instoptionsimpl.cpp21
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
@@ -34,16 +34,37 @@ InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const
34 if ( flags & FORCE_REINSTALL ) 34 if ( flags & FORCE_REINSTALL )
35 forceReinstall->setChecked( true ); 35 forceReinstall->setChecked( true );
36 if ( flags & FORCE_REMOVE ) 36 if ( flags & FORCE_REMOVE )
37 forceRemove->setChecked( true ); 37 forceRemove->setChecked( true );
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 );
42 44
43 showMaximized(); 45 showMaximized();
44 46
45} 47}
46 48
47InstallOptionsDlgImpl::~InstallOptionsDlgImpl() 49InstallOptionsDlgImpl::~InstallOptionsDlgImpl()
48{ 50{
49} 51}
52
53
54int 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