
#ifndef UTILS_H
#define UTILS_H

#include <qvaluelist.h>
#include <qstring.h>

class Utils
{

public:
	// Structure to store the paths to the different tools.
	struct toolsPaths {
		toolsPaths ()	{ bPresent = false; };
//		toolsPaths &operator = (toolsPaths &theOther)
//		{
//			qsExecutableName = theOther.qsExecutableName;
//			qsFullPath  = theOther.qsFullPath;
//			bPresent = theOther.bPresent;
//			return *this;
//		}
		QString qsExecutableName; 
		QString qsFullPath; 
		bool bPresent;
	};

	 Utils ();
	~Utils ();
	
	QString iso639 (QString, bool b=false);
	QString checkForExe(QString);
	QString getToolsDisplayName (QString);
	int getIndexFromToolName    (QString);
	QString getToolByIndex      (uint);
	QValueList<Utils::toolsPaths *> scanSystem ();

	static int iTest;
	static void Test ();
};

#endif  // UTILS_H
