class KEmoticons |
|
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 themeit can also be used to set the emoticon theme and the parse mode in the config file Author Carlo Segato (brandon.ml@gmail.com) |
|
Default constructor |
|
Retrieve the current emoticon theme name |
|
Install all themes inside the archive archiveName
archiveName - path to the archive Returns a list of installed themes |
|
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 |
|
Returns the current parse mode |
|
Set the parse mode to mode |
|
Set theme as the current theme
theme - a pointer to a KEmoticonsTheme object |
|
Set theme as the current theme
theme - the name of a theme |
|
Retrieve the current emoticons theme Returns the current KEmoticonsTheme |
|
Retrieve the theme with name name
name - name of the theme Returns the KEmoticonsTheme name |
|
Returns a list of installed theme |