# class KEmoticons

###

Module | kutils
Namespace |
Class | KEmoticons
Inherits | QObject

This class can be used to retrieve, install, create emoticons theme. For example if you want to get the current emoticon theme

    KEmoticons ke;
    KEmoticonsTheme et = ke.theme();
    //do whatever you want with the theme

it can also be used to set the emoticon theme and the parse mode in the config file Author Carlo Segato (brandon.ml@gmail.com)

### methods

- KEmoticons ( )

  returns ctor

  Default constructor

- currentThemeName ( )

  returns QString
  static

  Retrieve the current emoticon theme name

- installTheme (archiveName)

  returns QStringList

  Argument | Type | Default
  --- | --- | ---
  archiveName | QString |

  Install all themes inside the archive archiveName

  archiveName - path to the archive Returns a list of installed themes

- newTheme (name, service)

  returns KEmoticonsTheme

  Argument | Type | Default
  --- | --- | ---
  name | QString |
  service | KService.Ptr |

  Create a new emoticons theme

      KEmoticonsTheme theme;
      KService.List srv = KServiceTypeTrader.self()->query("KEmoticons");
      for (int i = 0; i < srv.size(); ++i) {
      // we want to create a kde emoticons theme
      if (srv.at(i)->property("X-KDE-EmoticonsFileName").toString() == "emoticons.xml") {
      theme = KEmoticons().newTheme("test", srv.at(i));
      }
      }

  name - the name of the new emoticons theme

  service - the kind of emoticon theme to create

- parseMode ( )

  returns KEmoticonsTheme.ParseMode
  static

  Returns the current parse mode

- setParseMode (mode)

  returns Nothing
  static

  Argument | Type | Default
  --- | --- | ---
  mode | KEmoticonsTheme.ParseMode |

  Set the parse mode to mode

- setTheme (theme)

  returns Nothing
  static

  Argument | Type | Default
  --- | --- | ---
  theme | KEmoticonsTheme |

  Set theme as the current theme

  theme - a pointer to a KEmoticonsTheme object

- setTheme (theme)

  returns Nothing
  static

  Argument | Type | Default
  --- | --- | ---
  theme | QString |

  Set theme as the current theme

  theme - the name of a theme

- theme ( )

  returns KEmoticonsTheme

  Retrieve the current emoticons theme Returns the current KEmoticonsTheme

- theme (name)

  returns KEmoticonsTheme

  Argument | Type | Default
  --- | --- | ---
  name | QString |

  Retrieve the theme with name name

  name - name of the theme Returns the KEmoticonsTheme name

- themeList ( )

  returns QStringList
  static

  Returns a list of installed theme