Solar flare spectral diagnosis: Present and future