KVIrc  4.9.2
DeveloperAPIs
Macros
KviDefaultScript.cpp File Reference
#include "KviDefaultScript.h"
#include "KviApplication.h"
#include "KviKvs.h"
#include "KviConfigurationFile.h"
#include "KviLocale.h"
#include "KviMiscUtils.h"
#include "KviActionManager.h"
#include "KviIconManager.h"
#include "KviCustomToolBarManager.h"
#include <QFile>
#include <QDate>
#include <QGroupBox>
#include <QCheckBox>
#include <QPushButton>
#include <QMessageBox>

Macros

#define CHECK(__name, __global, __local)
 
#define IS_EMPTY(__var, __default)
 

Macro Definition Documentation

#define CHECK (   __name,
  __global,
  __local 
)
Value:
if(KviMiscUtils::compareVersions(__global, __local) == 1) \
{ \
if(pszError) \
*pszError = __tr2qs("There's something wrong in your personal data: my '%1' is %2, while yours is %3").arg(__name, __global, __local); \
return false; \
}
#define __tr2qs(__text__)
Definition: KviLocale.h:224
if(m_pFile) delete m_pFile
int compareVersions(const QString &szVersion1, const QString &szVersion2)
Compares two x.y.z... version strings The function behaves like strcmp: it returns 0 when the version...
Definition: KviMiscUtils.cpp:31

Referenced by KviDefaultScriptManager::compareVersions().

#define IS_EMPTY (   __var,
  __default 
)
Value:
if(__var.isEmpty()) \
__var = __default;

Referenced by KviDefaultScriptManager::loadInternal().