[shellprocess] Make CommandList chroot-aware

This is prep-work for moving commandlist to libcalamares, where
it can be re-used by more modules.
main
Adriaan de Groot 7 years ago
parent 8bd40fdcd5
commit e48767eaa6

@ -37,12 +37,13 @@ static QStringList get_variant_stringlist(const QVariantList& l)
return retl;
}
CommandList::CommandList()
CommandList::CommandList( bool doChroot )
: m_doChroot( doChroot )
{
}
CommandList::CommandList::CommandList(const QVariant& v)
: CommandList()
CommandList::CommandList::CommandList( const QVariant& v, bool doChroot )
: CommandList( doChroot )
{
if ( v.type() == QVariant::List )
{

@ -25,15 +25,20 @@
class CommandList : protected QStringList
{
public:
CommandList();
CommandList(const QVariant& v);
CommandList( bool doChroot = true );
CommandList( const QVariant& v, bool doChroot = true );
~CommandList();
bool doChroot() const { return m_doChroot; }
using QStringList::isEmpty;
using QStringList::count;
using QStringList::cbegin;
using QStringList::cend;
using QStringList::const_iterator;
private:
bool m_doChroot;
} ;
#endif // COMMANDLIST_H

Loading…
Cancel
Save