kjsembed
Go to the documentation of this file.
26 #include <kdemacros.h>
29 # if (defined(KJSEMBED_DLL) && defined(KJSEMBED_MAKE_DLL)) || defined(MAKE_KJSEMBED_LIB)
30 # define KJSEMBED_EXPORT KDE_EXPORT
32 # define KJSEMBED_EXPORT KDE_IMPORT
35 # define KJSEMBED_EXPORT KDE_EXPORT
38 #if !defined(Q_OS_WIN)
46 #include <QtCore/QTextStream>
53 #include <kjs/ustring.h>
54 #include <kjs/identifier.h>
55 #include <kjs/value.h>
68 return KJS::UString((KJS::UChar*)qs.
data(), qs.
size());
100 #define i18n(x) QString(x)
107 template <
typename A1>
108 inline QString i18n (
const char *
text,
const A1 &a1)
110 return i18n(text).
arg(a1);
112 template <
typename A1,
typename A2>
113 inline QString i18n (
const char *text,
const A1 &a1,
const A2 &a2)
115 return i18n(text).
arg(a1).
arg(a2);
117 template <
typename A1,
typename A2,
typename A3>
118 inline QString i18n (
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3)
120 return i18n(text).
arg(a1).
arg(a2).
arg(a3);
122 template <
typename A1,
typename A2,
typename A3,
typename A4>
123 inline QString i18n (
const char *text,
const A1 &a1,
const A2 &a2,
const A3 &a3,
const A4 &a4)
130 #endif // KJSEGLOBAL_H
KJSEMBED_EXPORT QTextStream * conin()
KJSEMBED_EXPORT QTextStream * conout()
KJS::JSCell * jsString(const QString &s)
KJS::UString toUString(const QString &qs)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
KJSEMBED_EXPORT QTextStream * conerr()
QString toQString(const KJS::UString &u)
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:22:53 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.