# Namespace global

Module | kdecore
Namespace | global

### classes

KCoreConfigSkeleton::ItemEnum.Choice | KCmdLineArgs | KPluginLoader
KProtocolInfo.ExtraField | KCmdLineOptions | KProcess
I18nTypeCheck | KComponentData | KProtocolInfo
I18nTypeCheck | KCompositeJob | KRandomSequence
KCoreConfigSkeleton.ItemBool | KConfig | KSaveFile
KCoreConfigSkeleton.ItemDateTime | KConfigBase | KService
KCoreConfigSkeleton.ItemDouble | KConfigGroup | KServiceAction
KCoreConfigSkeleton.ItemEnum | KConfigSkeletonGenericItem | KServiceGroup
KCoreConfigSkeleton.ItemInt | KConfigSkeletonItem | KServiceType
KCoreConfigSkeleton.ItemIntList | KCoreConfigSkeleton | KServiceTypeTrader
KCoreConfigSkeleton.ItemLongLong | KDEDModule | KSharedConfig
KCoreConfigSkeleton.ItemPassword | KDEPluginVerificationData | KStandardDirs
KCoreConfigSkeleton.ItemPath | KDateTime | KSycoca
KCoreConfigSkeleton.ItemPathList | KDesktopFile | KSycocaEntry
KCoreConfigSkeleton.ItemPoint | KEncodingDetector | KSycocaFactory
KCoreConfigSkeleton.ItemProperty | KFilterBase | KSycocaFactoryList
KCoreConfigSkeleton.ItemRect | KFilterDev | KTempDir
KCoreConfigSkeleton.ItemSize | KJob | KTemporaryFile
KCoreConfigSkeleton.ItemString | KJobTrackerInterface | KTimeZone
KCoreConfigSkeleton.ItemStringList | KJobUiDelegate | KTimeZoneBackend
KCoreConfigSkeleton.ItemUInt | KLibLoader | KTimeZoneData
KCoreConfigSkeleton.ItemULongLong | KLibrary | KTimeZoneSource
KCoreConfigSkeleton.ItemUrl | KLocalSocket | KTimeZones
KCoreConfigSkeleton.ItemUrlList | KLocalSocketServer | KToolInvocation
KAboutData | KLocale | KUrl
KAboutLicense | KLocalizedString | KUser
KAboutPerson | KLockFile | KUserGroup
KAutoSaveFile | KMacroExpanderBase | KWordMacroExpander
KAutostart | KMessageHandler | KTimeZone.LeapSeconds
KCalendarSystem | KMimeType | KUrl.List
KCharMacroExpander | KMimeTypeTrader | KTimeZone.Phase
KCharsets | KPluginFactory | KDateTime.Spec
KCleanUpGlobalStatic | KPluginInfo | KTimeZone.Transition

### enums

- KSycocaFactoryId { KST_KServiceFactory, KST_KServiceTypeFactory, KST_KServiceGroupFactory, KST_KImageIO, KST_KProtocolInfoFactory, KST_KMimeTypeFactory, KST_CTimeInfo }
- KSycocaType { KST_KSycocaEntry, KST_KService, KST_KServiceType, KST_KMimeType, KST_KFolderMimeType, KST_KDEDesktopMimeType, KST_KServiceGroup, KST_KImageIOFormat, KST_KProtocolInfo, KST_KServiceSeparator, KST_KCustom }

enum details

### methods

- i18n (text)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  text | char |

- i18nc (ctxt, text)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  ctxt | char |
  text | char |

  Returns a localized version of a string and a context.

  ctxt - context of the string

  text - string to be localized Returns localized string

- kAsciiToLower (str)

  returns char

  Argument | Type | Default
  --- | --- | ---
  str | char |

  Locale-independent function to convert ASCII strings to lower case ASCII strings. This means that it affects only the ASCII characters A-Z.

  str - pointer to the string which should be converted to lower case Returns pointer to the converted string (same as str)

- kAsciiToUpper (str)

  returns char

  Argument | Type | Default
  --- | --- | ---
  str | char |

  Locale-independent function to convert ASCII strings to upper case ASCII strings. This means that it affects only the ASCII characters a-z.

  str - pointer to the string which should be converted to upper case Returns pointer to the converted string (same as str)

- kasciistricmp (str1, str2)

  returns int

  Argument | Type | Default
  --- | --- | ---
  str1 | char |
  str2 | char |

  Locale-independent qstricmp. Use this for comparing ascii keywords in a case-insensitive way. qstricmp fails with e.g. the Turkish locale where 'I'.toLower() != 'i'

- ki18n (msg)

  returns KLocalizedString

  Argument | Type | Default
  --- | --- | ---
  msg | char |

- ki18nc (ctxt, msg)

  returns KLocalizedString

  Argument | Type | Default
  --- | --- | ---
  ctxt | char |
  msg | char |

  Creates localized string from a given message, with added context. Context is only for disambiguation purposes (both for lookup and for translators), it is not part of the message. Normaly you should use i18nc() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

  ctxt - context text

  msg - message text Returns created KLocalizedString

- ki18ncp (ctxt, singular, plural)

  returns KLocalizedString

  Argument | Type | Default
  --- | --- | ---
  ctxt | char |
  singular | char |
  plural | char |

  Creates localized string from a given plural and singular form, with added context. Context is only for disambiguation purposes (both for lookup and for translators), it is not part of the message. Normaly you should use i18ncp() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

  ctxt - context text

  singular - message text in singular

  plural - message text in plural Returns created KLocalizedString

- ki18np (singular, plural)

  returns KLocalizedString

  Argument | Type | Default
  --- | --- | ---
  singular | char |
  plural | char |

  Creates localized string from a given plural and singular form. Normaly you should use i18np() templates instead, as you need real KLocalizedString object only in special cases. All text arguments must be UTF-8 encoded and must not be empty or NULL.

  singular - message text in singular

  plural - message text in plural Returns created KLocalizedString

- pykde_version ( )

  returns unsigned int

- pykde_versionMajor ( )

  returns unsigned int

- pykde_versionMinor ( )

  returns unsigned int

- pykde_versionRelease ( )

  returns unsigned int

- pykde_versionString ( )

  returns char

- qHash (key)

  returns uint

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- qHash (kurl)

  returns uint

  Argument | Type | Default
  --- | --- | ---
  kurl | KUrl |

- qHash (a0)

  returns uint

  Argument | Type | Default
  --- | --- | ---
  a0 | KPluginInfo |

- tr2i18n (message, comment)

  returns QString

  Argument | Type | Default
  --- | --- | ---
  message | char |
  comment | char | 0

  Qt's uic generated translation calls go through numerous indirections unnecessary in our case. So we use uic -tr tr2i18n to redirect them to our i18n API.

- urlcmp (_url1, _url2)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  _url1 | QString |
  _url2 | QString |

  \relates KUrl Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.

- urlcmp (_url1, _url2, options)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  _url1 | QString |
  _url2 | QString |
  options | KUrl.EqualsOptions |

  \relates KUrl Compares URLs. They are parsed, split and compared. Two malformed URLs with the same string representation are nevertheless considered to be unequal. That means no malformed URL equals anything else.

  _url1 - A reference URL

  _url2 - A URL that will be compared with the reference URL

  options - a set of KUrl.EqualsOption flags

- version ( )

  returns unsigned int

- versionMajor ( )

  returns unsigned int

- versionMinor ( )

  returns unsigned int

- versionRelease ( )

  returns unsigned int

- versionString ( )

  returns char

### enums - detail

- KSycocaFactoryId { KST_KServiceFactory, KST_KServiceTypeFactory, KST_KServiceGroupFactory, KST_KImageIO, KST_KProtocolInfoFactory, KST_KMimeTypeFactory, KST_CTimeInfo }

  \relates KSycocaFactory A KSycocaFactoryId is a code (out of the KSycocaFactoryId enum) assigned to each class type derived from KSycocaFactory. To use it, call the macro K_SYCOCAFACTORY( your_factory_id ) at the top of your class definition.

  | KST_KServiceFactory | - 1 | - |
  | KST_KServiceTypeFactory | - 2 | - |
  | KST_KServiceGroupFactory | - 3 | - |
  | KST_KImageIO | - 4 | - |
  | KST_KProtocolInfoFactory | - 5 | - |
  | KST_KMimeTypeFactory | - 6 | - |
  | KST_CTimeInfo | - 100 | - |

- KSycocaType { KST_KSycocaEntry, KST_KService, KST_KServiceType, KST_KMimeType, KST_KFolderMimeType, KST_KDEDesktopMimeType, KST_KServiceGroup, KST_KImageIOFormat, KST_KProtocolInfo, KST_KServiceSeparator, KST_KCustom }

  \relates KSycocaEntry A KSycocaType is a code (out of the KSycocaType enum) assigned to each class type derived from KSycocaEntry . To use it, call the macro K_SYCOCATYPE( your_typecode, parent_class ) at the top of your class definition.

  | KST_KSycocaEntry | - 0 | - |
  | KST_KService | - 1 | - |
  | KST_KServiceType | - 2 | - |
  | KST_KMimeType | - 3 | - |
  | KST_KFolderMimeType | - 4 | - |
  | KST_KDEDesktopMimeType | - 5 | - |
  | KST_KServiceGroup | - 7 | - |
  | KST_KImageIOFormat | - 8 | - |
  | KST_KProtocolInfo | - 9 | - |
  | KST_KServiceSeparator | - 10 | - |
  | KST_KCustom | - 1000 | - |