2013-09-12 03:13:17 +05:30
|
|
|
#include "OpSys.h"
|
|
|
|
|
|
|
|
OpSys OpSys_fromString(QString name)
|
|
|
|
{
|
|
|
|
if(name == "linux")
|
|
|
|
return Os_Linux;
|
|
|
|
if(name == "windows")
|
|
|
|
return Os_Windows;
|
|
|
|
if(name == "osx")
|
|
|
|
return Os_OSX;
|
|
|
|
return Os_Other;
|
2013-09-22 07:51:36 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
QString OpSys_toString(OpSys name)
|
|
|
|
{
|
|
|
|
switch(name)
|
|
|
|
{
|
|
|
|
case Os_Linux: return "linux";
|
|
|
|
case Os_OSX: return "osx";
|
|
|
|
case Os_Windows: return "windows";
|
|
|
|
default: return "other";
|
|
|
|
}
|
2013-09-12 03:13:17 +05:30
|
|
|
}
|