Fix symbol leakage.
Fix symbol leakage.

The location module includes this header twice, resulting in multiply
defined symbols for the "DirChecker" class.

Change it so that more of the code is just embedded in the main function,
and use an inline function to avoid generating symbols.

Reviewed-by: Chris Adams

kaltsi/qt-mobility,enthought/qt-mobility,KDE/android-qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,enthought/qt-mobility,enthought/qt-mobility,enthought/qt-mobility,tmcguire/qt-mobility,KDE/android-qt-mobility,tmcguire/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,qtproject/qt-mobility,tmcguire/qt-mobility,KDE/android-qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility,kaltsi/qt-mobility,tmcguire/qt-mobility,KDE/android-qt-mobility,enthought/qt-mobility,kaltsi/qt-mobility,qtproject/qt-mobility