LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dynamicssettings.cpp File Reference
#include "Common.h"
#include "dynamicssettings.h"
#include <QString>
Include dependency graph for dynamicssettings.cpp:

Macros

#define KEY_UINTEGER(cat, name, var)
 
#define KEY_DOUBLE(cat, name, var)
 
#define KEY_QREAL(cat, name, var)
 
#define KEY_CURVE(cat, name, var)
 
#define KEY_BOOLEAN(cat, name, var)
 
#define KEY_QSTRING(cat, name, var)
 

Macro Definition Documentation

#define KEY_BOOLEAN (   cat,
  name,
  var 
)
Value:
{\
gboolean _vb;\
GError* _error = 0;\
_vb=g_key_file_get_boolean(keyfile,cat,name,&_error);\
if( !_error ) { var=_vb; }\
else g_error_free(_error); \
}
#define KEY_CURVE (   cat,
  name,
  var 
)
Value:
{ \
GError* _error = 0; \
_v=(QEasingCurve::Type)g_key_file_get_integer(keyfile,cat,name,&_error); \
if( !_error ) { var=_v; } \
else { g_error_free(_error); } \
}
#define KEY_DOUBLE (   cat,
  name,
  var 
)
Value:
{\
double _v;\
GError* _error = 0;\
_v=g_key_file_get_double(keyfile,cat,name,&_error);\
if( !_error ) { var=_v; }\
else g_error_free(_error); \
}
#define KEY_QREAL (   cat,
  name,
  var 
)
Value:
{\
qreal _v;\
GError* _error = 0;\
_v=(qreal)g_key_file_get_double(keyfile,cat,name,&_error);\
if( !_error ) { var=_v; }\
else g_error_free(_error); \
}
#define KEY_QSTRING (   cat,
  name,
  var 
)
Value:
{\
gchar* _vs;\
GError* _error = 0;\
_vs=g_key_file_get_string(keyfile,cat,name,&_error);\
if( !_error && _vs ) { var=QString((const char*)_vs); g_free(_vs); }\
else g_error_free(_error); \
}
#define KEY_UINTEGER (   cat,
  name,
  var 
)
Value:
{\
quint32 _v;\
GError* _error = 0;\
_v=(quint32)g_key_file_get_integer(keyfile,cat,name,&_error);\
if( !_error ) { var=_v; }\
else { g_error_free(_error); }\
}