void QuickStartWizard::updateFlags(bool b) { std::cerr << "Updating flags (b=" << b << ") !!!" << std::endl ; std::list<SharedDirInfo>::iterator it; std::list<SharedDirInfo> dirs; rsFiles->getSharedDirectories(dirs); int row=0 ; for(it = dirs.begin(); it != dirs.end(); ++it,++row) { std::cerr << "Looking for row=" << row << ", file=" << (*it).filename << ", flags=" << (*it).shareflags << std::endl ; FileStorageFlags current_flags(0u) ; current_flags |= (dynamic_cast<QCheckBox*>(ui.shareddirList->cellWidget(row,1)))->isChecked()? DIR_FLAGS_NETWORK_WIDE_OTHERS:(FileStorageFlags)0u ; current_flags |= (dynamic_cast<QCheckBox*>(ui.shareddirList->cellWidget(row,2)))->isChecked()? DIR_FLAGS_BROWSABLE_OTHERS :(FileStorageFlags)0u ; if( ((*it).shareflags ^ current_flags).toUInt32() ) { (*it).shareflags = current_flags ; rsFiles->updateShareFlags(*it) ; // modifies the flags std::cout << "Updating share flags for directory " << (*it).filename << std::endl ; } } }
Path Translator::stdlib_path() const { if (not current_flags().stdlib.empty()) return current_flags().stdlib; return LIZ_SYSTEM_DIRECTORY + Path("/stdlib"); }
bool Translator::enabled(debug::Verbosity v) const { return debug::has(current_flags().verbosity, v); }