# class KCodecAction

###

Module | kdeui
Namespace |
Class | KCodecAction
Inherits | KSelectAction

Action for selecting one of several QTextCodec.

This action shows up a submenu with a list of the available codecs on the system.

### methods

- KCodecAction (parent, showAutoOptions)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  parent | QObject |
  showAutoOptions | bool | 0

- KCodecAction (text, parent, showAutoOptions)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  parent | QObject |
  showAutoOptions | bool | 0

- KCodecAction (icon, text, parent, showAutoOptions)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  icon | KIcon |
  text | QString |
  parent | QObject |
  showAutoOptions | bool | 0

- KCodecAction (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QObject |
  a1 | bool | 0

- actionTriggered (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QAction |

- codecForMib (mib)

  returns QTextCodec

  Argument | Type | Default
  --- | --- | ---
  mib | int |

- currentAutoDetectScript ( )

  returns KEncodingDetector.AutoDetectScript

  Applicable only if showAutoOptions in c'tor was true

  Returns KEncodingDetector.None if specific encoding is selected, not autodetection, otherwise... you know it!

- currentCodec ( )

  returns QTextCodec

- currentCodecMib ( )

  returns int

- currentCodecName ( )

  returns QString

- defaultItemTriggered ( )

  returns Nothing
  SIGNAL ("defaultItemTriggered ()")

  If showAutoOptions==true, then better handle triggered(KEncodingDetector.AutoDetectScript) signal

- mibForName (codecName)

  returns int, bool (ok)

  Argument | Type | Default
  --- | --- | ---
  codecName | QString |

- setCurrentAutoDetectScript (a0)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  a0 | KEncodingDetector.AutoDetectScript |

  Applicable only if showAutoOptions in c'tor was true

  KEncodingDetector.SemiautomaticDetection means 'Default' item

- setCurrentCodec (codec)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  codec | QTextCodec |

- setCurrentCodec (codecName)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  codecName | QString |

- setCurrentCodec (mib)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  mib | int |

- triggered (codec)

  returns Nothing
  SIGNAL ("triggered (QTextCodec*)")

  Argument | Type | Default
  --- | --- | ---
  codec | QTextCodec |

  Specific (proper) codec was selected

- triggered (a0)

  returns Nothing
  SIGNAL ("triggered (const QString&)")

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

  Specific (proper) codec was selected

  Returns codec name

- triggered (a0)

  returns Nothing
  SIGNAL ("triggered (AutoDetectScript)")

  Argument | Type | Default
  --- | --- | ---
  a0 | KEncodingDetector.AutoDetectScript |

  Autodetection has been selected. emits KEncodingDetector.SemiautomaticDetection if Default was selected.

  Applicable only if showAutoOptions in c'tor was true