65 #include "private/qt_x11_p.h" 76 #include "AknInputLanguageInfo.h" 79 #include "private/qfactoryloader_p.h" 139 #if defined(Q_WS_X11) && !defined(QT_NO_XIM) 144 #if defined(Q_WS_WIN) 149 #if defined(Q_WS_MAC) 154 #if defined(Q_WS_S60) 163 qobject_cast<QInputContextFactoryInterface*>(loader()->instance(key))) {
164 result = factory->create(key);
187 #if defined(Q_WS_X11) && !defined(QT_NO_XIM) 190 #if defined(Q_WS_WIN) && !defined(QT_NO_XIM) 193 #if defined(Q_WS_MAC) 196 #if defined(Q_WS_S60) 199 #ifndef QT_NO_LIBRARY 200 result += loader()->keys();
201 #endif // QT_NO_LIBRARY 205 #if defined(Q_WS_S60) 216 static CAknInputLanguageList* s60LangListL()
218 CAknInputLanguageInfo *langInfo = AknInputLanguageInfoFactory::CreateInputLanguageInfoL();
219 CleanupStack::PushL(langInfo);
221 CAknInputLanguageList *langList =
new (ELeave) CAknInputLanguageList(7);
222 CleanupStack::PushL(langList);
223 langInfo->AppendAvailableLanguagesL(langList);
224 CleanupStack::Pop(langList);
225 CleanupStack::PopAndDestroy(langInfo);
238 static CAknInputLanguageList* s60LangList()
240 CAknInputLanguageList *langList = NULL;
241 TRAP_IGNORE(langList = s60LangListL());
264 #if defined(Q_WS_X11) && !defined(QT_NO_XIM) 268 #if defined(Q_WS_WIN) 272 #if defined(Q_WS_MAC) 276 #if defined(Q_WS_S60) 279 CAknInputLanguageList *langList = s60LangList();
280 int count = langList->Count();
281 for (
int i = 0; i < count; ++i)
283 result.
append(
QString(qt_symbianLocaleName(langList->At(i)->LanguageCode())));
288 #if defined(QT_NO_LIBRARY) || defined(QT_NO_SETTINGS) 292 qobject_cast<QInputContextFactoryInterface*>(loader()->instance(key)))
293 result = factory->languages(key);
294 #endif // QT_NO_LIBRARY 308 #if defined(Q_WS_X11) && !defined(QT_NO_XIM) 316 #if defined(QT_NO_LIBRARY) || defined(QT_NO_SETTINGS) 320 qobject_cast<QInputContextFactoryInterface*>(loader()->instance(key)))
321 return factory->displayName(key);
322 #endif // QT_NO_LIBRARY 335 #if defined(Q_WS_X11) && !defined(QT_NO_XIM) 339 #if defined(Q_WS_WIN) && !defined(QT_NO_XIM) 343 #if defined(Q_WS_MAC) 347 #if defined(Q_WS_S60) 351 #if defined(QT_NO_LIBRARY) || defined(QT_NO_SETTINGS) 355 qobject_cast<QInputContextFactoryInterface*>(loader()->instance(key)))
356 return factory->description(key);
357 #endif // QT_NO_LIBRARY
static QInputContext * create(const QString &key, QObject *parent)
#define QT_END_NAMESPACE
This macro expands to.
static QString displayName(const QString &key)
Returns a user friendly internationalized name of the QInputContext object specified by key...
static QString tr(const char *sourceText, const char *comment=0, int n=-1)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
void setParent(QObject *)
Makes the object a child of parent.
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
static QStringList keys()
Returns the list of keys this factory can create input contexts for.
#define QInputContextFactoryInterface_iid
static QStringList languages(const QString &key)
Returns the languages supported by the QInputContext object specified by key.
The QInputContext class abstracts the input method dependent data and composing state.
static QString description(const QString &key)
Returns an internationalized brief description of the QInputContext object specified by key...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
#define Q_GLOBAL_STATIC_WITH_ARGS(TYPE, NAME, ARGS)
Declares a global static variable with the specified type and name.