A Main Class of Integral Inequalities with Applications